From: "Bart Schaefer" <schaefer@z-code.com>
To: 476tjl@ptsmail.ptsem.edu, funa@aa.cs.keio.ac.jp,
zsh-users@math.gatech.edu
Subject: Re: I have a question about zsh's bindkey.
Date: Sun, 17 Sep 1995 11:36:05 -0700 [thread overview]
Message-ID: <9509171136.ZM3753@zipx1.z-code.com> (raw)
In-Reply-To: "Timothy J. Luoma" <z-code!cedman.remote.Princeton.EDU!luomat> "Re: I have a question about zsh's bindkey." (Sep 17, 1:45pm)
On Sep 17, 1:45pm, Timothy J. Luoma wrote:
} Subject: Re: I have a question about zsh's bindkey.
}
} Add this to one of your zsh dotfiles (.zshrc or .zshenv I guess):
}
} # Leave =/&; out of WORDCHARS so ^W acts more nicely
} # -- still not ideal
} WORDCHARS='*?_-.[]~\!#$%^(){}<>|`@#$%^*()+:?'
}
} I'm not sure how this works, because the "/" isn't even listed in the
} WORDCHAR, but it does work.
WORDCHARS is funny.
It means "the characters IN ADDITION to [A-Z][a-z][0-9] that should be
treated as PART OF a word". So to get word-motions to stop at a new
character, you REMOVE that character from WORDCHARS.
} It doesn't seem to stop at the characters as I think it should (it
} doesn't stop at a "." in the middle of a word) but it will stop at the
} "/" as you described
To stop at ".", change the definition to leave "." out:
WORDCHARS='*?_-.[]~\!#$%^(){}<>|`@#$%^*()+:?'
(I'm not sure why some characters are in there twice ... seems to me it
should work to just use
WORDCHARS='*?_-.[]~\!#$%^(){}<>|`@+:'
with or without ".". Yes, I realize I probably sent the original value
to this list with repeated characters a while back.)
--
Bart Schaefer Vice President, Technology
schaefer@z-code.com Z-Code / NCD Software Inc.
What quantity of engineers is required to rotationally reconfigure an
electronically-actuated filament-enabled photon-wave generator?
prev parent reply other threads:[~1995-09-17 19:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-09-17 16:57 Akira Funahashi / 舟橋啓
1995-09-17 17:45 ` Timothy J. Luoma
[not found] ` <z-code!cedman.remote.Princeton.EDU!luomat>
1995-09-17 18:36 ` Bart Schaefer [this message]
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=9509171136.ZM3753@zipx1.z-code.com \
--to=schaefer@z-code.com \
--cc=476tjl@ptsmail.ptsem.edu \
--cc=funa@aa.cs.keio.ac.jp \
--cc=zsh-users@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).