Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
searching through "last words"
- X-seq: zsh-users 24666
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: searching through "last words"
- Date: Fri, 24 Jan 2020 19:09:16 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: dominik.vogt@xxxxxx
I'd like to enhance Alt-. = insert-last-word a bit:
- If at the beginning of a word, just work like insert-last-word
(i.e. if pressed multiple times, replace the word by older last
words).
- If there is already something on the command line, work like
above, but match only words that begin with the present string.
Example history:
... bar
... foo
... baz
... foobar
Then type
$ ... <Alt-.>
$ ... foobar<Alt-.>
$ ... baz<Alt-.>
$ ... bar<Alt-.>
etc.
But
$ ... b<Alt-.>
$ ... baz<Alt-.>
$ ... bar<Alt-.>
Is there a simple way to do that, short of programming a new widget?
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author