From: Peter Stephenson <pws@csr.com>
To: zsh-users@sunsite.dk (Zsh users list)
Subject: Re: backward kill
Date: Thu, 15 Nov 2001 15:40:02 +0000 [thread overview]
Message-ID: <15648.1005838802@csr.com> (raw)
In-Reply-To: "Mads Martin Joergensen"'s message of "Thu, 15 Nov 2001 16:34:40 +0100." <20011115163440.N14280@staudinger.suse.de>
Mads Martin Joergensen wrote:
> * Peter Stephenson <pws@csr.com> [Nov 15. 2001 16:22]:
> > > with the prompt at the end, and I press alt-backspace, the whole path is
> > > wiped out. I would like it to just remove backwards to the last (first
> > > from the end) slash. How could I accomplish this?
> >
> > Use the bash-backward-kill-word widget, supplied with 4.0 and 4.1. (The
> > other bash-* variants are only supplied with 4.1).
>
> Cannot seem to get that working, and the manpage mentions nothing
> about it?
It's documented in zshcontrib(1), but only in 4.1. I think I'll copy the
remainder of the bash-* stuff to the 4.0 branch.
The file tells you what to do. Make sure the directory is in your autoload
path --- zsh should have been set up so that it is --- and autoload it like
any other function.
# This implements a bash-style backward-kill-word.
# To use,
# zle -N bash-backward-kill-word
# bindkey '...' bash-backward-kill-word
# or if you wish to replace existing backward-kill-word bindings,
# zle -N backward-kill-word bash-backward-kill-word
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
next prev parent reply other threads:[~2001-11-15 15:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-15 15:05 Jesper Holmberg
2001-11-15 15:21 ` Peter Stephenson
2001-11-15 15:34 ` Mads Martin Joergensen
2001-11-15 15:40 ` Peter Stephenson [this message]
2001-11-15 15:46 ` Jesper Holmberg
2001-11-15 17:01 ` Will Yardley
2001-11-15 18:43 ` Jesper Holmberg
-- strict thread matches above, loose matches on Subject: below --
2001-11-15 15:02 Jesper Holmberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15648.1005838802@csr.com \
--to=pws@csr.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).