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

Bug: history-search-backward ignores search text after first space character?



(copied from
http://superuser.com/questions/943993/history-search-backward-ignores-search-text-after-first-space-character
)

 use a lot of git commands and since they are mostly 2-word command names,
matching doesn't find the closest match. For example:

# type in some commands
git checkout -
git status
mvn test
# try to autocomplete based on the history. I want "git checkout -" to
be filled in, but instead "git status" is filled in.
git c<history-search-backward>
git status

Notice the space and c that I typed in are ignored in the autocomplete.

I assume this is some shortcoming of the zsh completion system. Is this
true? Or am I misunderstanding the functionality?


Sridhar Sarnobat
San Jose, CA 95128 | USA
Phone: +1 (650) 260-3851 | ss533@xxxxxxxxxxx
SMS me via email: 6073395366@xxxxxxxxxxx
Google Chat: sarnobat.hotmail@xxxxxxxxx
http://www.facebook.com/sridhar.sarnobat
http://www.linkedin.com/in/sarnobat
http://github.com/sarnobat


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