Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: complete paths after non-space

Apparently setopt magicequalsubst doesn't work by itself -- so I infer
I'm not using compinit.  How do I make sure I use it?

Also for in-line ^r, bash's behavior is quite normal -- the command
appears at the prompt.  zsh shows the pattern under the line as well.
I don't need that down-and-up, as I can see the pattern right in the
line.  Perhaps I'm overoptimistic, but if zsh is the superheroes'
shell, it should be anything bash can be and beyond!  If some people
can't remember two-three chars they just typed in, and they're in
denial of their ADHD, perhaps the pattern can be highlighted.  Same
goes for opening a bunch of stuff for completion under the line -- the
'feel' discomfort coming from bash is that you have "stuff" under the
prompt line, like a wet basement, and in bash you pretty much feel the
solid cement floor of the prompt.  It's not jerking up-and-down
suddenly.  I'm using zsh in a quake-prone area, and it shows :-)...


On 8/3/05, Peter Stephenson <pws@xxxxxxx> wrote:
> Deliverable Mail wrote:
> > I'm migrating to zsh and find it differs subtly from bash.  Three
> > immediate look-'n-feel diffs I'd really need to reset to
> > bash-compatible behavior...
> >
> > 1.  completing path names with leading non-space
> >
> > I often want to complete filenames in options where you have things
> > like --file=/wrong/path/name, whereby you go back and fix it, or enter
> > new things after the non-space-starting pathname sequence
> >
> > Bash happily completed it while in my current zsh setup I have to
> > insert/delete a space prior to the pathname.  An easy way to make it
> > the same?
> If you're using the new completion system (compinit), turn on the option
> magicequalsubst.
>  setopt magicequalsubst
> (It's just possible it works with the old completion system, too.)
> > 2.  in-place ^r search
> >
> > -- zsh offers an underline, and I don't want it
> You just have to ignore it.   It's unusual enough not to want to see
> what your searching for that there's no option.
> > 3.  completion offers must go away faster
> >
> > -- zsh lists them in the underline(s) and they seem to linger there
> > longer than in bash, can I banish them faster?
> It's possible you can do something with zle -R in one of the completion
> functions, which redisplays the stuff below the line using the string
> you specify (which might be empty), but I've never played around with this.
> You can force the shell to reprint the line below all completion
> displays by
>  unsetopt alwayslastprompt
> --
> Peter Stephenson <pws@xxxxxxx> [...]

Messages sorted by: Reverse Date, Date, Thread, Author