zsh-users
 help / color / mirror / code / Atom feed
* Reinsertion of file prefix for accepted completion?
@ 2003-01-03  4:33 James Devenish
  2003-01-03  5:56 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: James Devenish @ 2003-01-03  4:33 UTC (permalink / raw)
  To: zsh-users

Hi,

Is there some way (that isn't too outrageous, but perhaps involves the
calling of a 'fixup' function) to reinsert a compadd -W file prefix when
the completion is accepted? For example, pretend that arguments for 'echo'
are paths, being matched using -W "( . /not/current/directory )":

% ls /not/current/directory<Enter>
a1 a2 b1 c1
% ls<Enter>
d1 d2 e1
% echo a<Tab>
a1 a2
% echo a1<Tab><Enter>
/not/current/directory/a1
% echo b<Tab><Enter>
/not/current/directory/b1
% echo e<Tab><Enter>
e1

Or at worst:

% echo e<Tab><Enter>
./e1

(The above notation is probably a bit ambiguous, but hopefully my first
paragraph helps explain what I mean.)



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-03  6:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-03  4:33 Reinsertion of file prefix for accepted completion? James Devenish
2003-01-03  5:56 ` Bart Schaefer
2003-01-03  6:35   ` James Devenish

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).