Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug: history-search-backward ignores search text after first space character?
- X-seq: zsh-workers 35858
- From: Sridhar Sarnobat <sridhar.sarnobat@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Bug: history-search-backward ignores search text after first space character?
- Date: Wed, 22 Jul 2015 12:56:24 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=LPBY3ZP5yCa6HQovouBbgjXMdeiN2g/WzbFxoOzLG5o=; b=nk+ACHPR3iIqgsXECK4v11NBPomkWCOR6BMtNbBczerdEHoemnLx/GLYW0qT8xVlE/ KM6/QooISnNeFTUXzysT10nz6lFsDkbPEs+HGOr95zofb0NozldcvVCRAmaKTrPnjM8d tAXQd/i9I/zfdjTxt3qHpz6Q1azScOSFbRp3Tsp3yCl0YWuO+zjIQJI1N6KI5/CrYrJB o8/Prs2dqqVKd6cHlrWkA+wsaHf0JhcuOBizv7FuReOu1Sc52MgPA9BqQj41plm3StRr gu3Hi1UgIIGwkwg01sVID4ySUJkebSaWhbNNnAKiLJ6ePtdQNKlWLzQ3vh1BfY5tACsp T1wA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: sarnobat.hotmail@xxxxxxxxx
(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