From: Adam Spiers <adam@thelonious.new.ox.ac.uk>
To: zsh users mailing list <zsh-users@sunsite.auc.dk>
Subject: Re: simulation of dabbrev-expand
Date: Thu, 16 Sep 1999 17:34:09 +0100 [thread overview]
Message-ID: <19990916173409.A17932@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <990909171104.ZM15814@candle.brasslantern.com>
Bart Schaefer (schaefer@candle.brasslantern.com) wrote:
> On Sep 9, 1:39pm, Adam Spiers wrote:
> } Subject: simulation of dabbrev-expand
> }
> } It appears to always work fine when grabbing words from history added
> } by the current shell, but either doesn't work at all, or very
> } unreliably when you want to grab a word from the saved history.
>
> Can you perhaps give a more specific example? I'm not having any trouble
> with this at all.
% history 1 | grep ' /' | wc -l
650
% zle -l | grep hist
_history_complete_word -C .complete-word _history_complete_word
_reverse_history_complete_word -C reverse-menu-complete _history_complete_word
% _history_complete_word () {
local expl
compstate[list]=list
compstate[insert]=menu
_description -V expl 'history word'
compgen -V 'history words' -Q -H 0 ''
}
% bindkey ^[/
"^[/" _history_complete_word
% less /<>
% less /usr/share/zsh/functions/_man
zsh: do you wish to see all 51 possibilities?
Where did all the others go? For example, a very old entry in my
history (I save large histories):
114 cp /share/software/redhat/updates-6.0/i386/netscape-* .
but when I try do
% ls /s<meta-/>
nothing happens. The newer entries work fine. This problem has
exhibited itself in exactly the same way across zsh-3.1.6-pws-* :-(
> What history-related options do you have set?
% setopt | grep hist
cshjunkiehistory
extendedhistory
histallowclobber
histexpiredupsfirst
histignorealldups
histignoredups
histignorespace
histreduceblanks
histverify
incappendhistory
Adam
prev parent reply other threads:[~1999-09-16 16:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-09 12:39 Adam Spiers
[not found] ` <990909171104.ZM15814@candle.brasslantern.com>
1999-09-16 16:34 ` Adam Spiers [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=19990916173409.A17932@thelonious.new.ox.ac.uk \
--to=adam@thelonious.new.ox.ac.uk \
--cc=adam@spiers.net \
--cc=zsh-users@sunsite.auc.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).