From: "Barton E. Schaefer" <schaefer@z-code.ncd.com>
To: <kazda@vnet.ibm.com> (Mike Kazda), hniksic@public.srce.hr
Cc: zsh-workers@math.gatech.edu
Subject: Re: kill-word & friends in ZLE
Date: Thu, 16 May 1996 10:09:44 -0700 [thread overview]
Message-ID: <960516100944.ZM27581@zyrcon.z-code.com> (raw)
In-Reply-To: Hrvoje.Niksic@public.srce.hr (Hrvoje Niksic) "Re: kill-word & friends in ZLE" (May 16, 2:00pm)
In-Reply-To: <kazda@vnet.ibm.com> (Mike Kazda) "Re: kill-word & friends in ZLE" (May 16, 10:56am)
On May 16, 2:00pm, Hrvoje Niksic wrote:
} Subject: Re: kill-word & friends in ZLE
}
} In your mail, you said:
} [...]
} > Another satisifactory option would be something like "yank-word", so I
} > could yank back the most-recently-killed word, rather the whole line,
}
} Why don't you use C-y? This works for me:
} fly% ls foo bar[Esc-Backspace][C-y]
} erases and returns bar on the line.
Yes, but:
% ls foo bar[esc-backspace][esc-backspace][c-y]
erases and then returns "foo bar". What I want to do is erase "foo bar"
and then return only "foo". "Undo" is the closest approximation.
} Furthermore, all the kills enter the
} kill-ring and are reaccessible.
Doesn't help, because "foo" isn't in the kill ring all by itself, it's
in the same kill-ring entry with "bar".
On May 16, 10:56am, (Mike Kazda) wrote:
} Subject: Re: kill-word & friends in ZLE
}
} I tried setting the following in zsh (beta17) and it had no effect:
}
} WORDCHARS='*?_-.[]~=/&;!#$%^(){}<>'
}
} Do you have any hints?
WORDCHARS has always bugged me because it does NOT specify characters that
are word *breaks*, it specifies characters *in addition to alphabetics and
numerals* that are *included* in words.
So you need to *remove* characters from WORDCHARS to get them to be taken
as word breaks. That's why this thread started with a patch to default
WORDCHARS to nothing at all.
--
Bart Schaefer Vice President, Technology, Z-Code Software
schaefer@z-code.com Division of NCD Software Corporation
http://www.well.com/www/barts http://www.ncdsoft.com/ZMail/
next prev parent reply other threads:[~1996-05-16 17:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-15 23:02 Hrvoje Niksic
1996-05-15 23:18 ` Zefram
1996-05-16 14:56 ` Mike Kazda
1996-05-16 17:09 ` Barton E. Schaefer [this message]
1996-05-15 23:47 ` Bart Schaefer
1996-05-16 1:12 ` Wayne Davison
[not found] ` <wayne@clari.net>
1996-05-16 0:49 ` Bart Schaefer
1996-05-16 22:17 ` Wayne Davison
1996-05-16 12:00 ` Hrvoje Niksic
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=960516100944.ZM27581@zyrcon.z-code.com \
--to=schaefer@z-code.ncd.com \
--cc=hniksic@public.srce.hr \
--cc=kazda@vnet.ibm.com \
--cc=zsh-workers@math.gatech.edu \
/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).