Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Implementing search / reverse search in vi mode on input
- X-seq: zsh-workers 37679
- From: Krzysztof Słonka <krzysztofslonka@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Implementing search / reverse search in vi mode on input
- Date: Mon, 18 Jan 2016 18:45:08 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=d9NnnL5WXRLP2gQcZnP89NEWMjSYgCCGv+KjV1xEH/g=; b=YpI9he4kMqDO3A++dQCKLc8O96nVYGeFTQRgddvI4VfYOrGBf+69EUITOKaAdvTldj dFbNTGNOZBbhYzVZcvoXpgyfg0+rmeh8AiOnrsMhP7JJG+1S85NVjJuh75/7xpY2z1N2 TtZU+9JUwkgUg+U6Wchmdn1QCxtE3x6RvJW2QTrKaHGY4uUr7Bd5as4lCIns4nsXyRBq Y8BE2qNEzcNyKe9lNprEK84E94cIAIZD68I6bKG+Zxz9dQj+U5tTqmbLQXmkJmPM81Fb 5HLnkw/QQFm5wL+hKHCWprgVzvYCl6kz+5sx+InKXv69uD6fHpMmCkGWHMPF5UPseFRw SFdQ==
- In-reply-to: <CAH+w=7YS=zrnGBj1zTKyX=tjHdm=L3hCXv6HtfAsVAVM-keGuQ@mail.gmail.com>
- 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
- References: <CAHGkLJigG0kTiuhh6gevtb81gzy3DB90GzR7wtnCh2JQgD+JiA@mail.gmail.com> <CAH+w=7YS=zrnGBj1zTKyX=tjHdm=L3hCXv6HtfAsVAVM-keGuQ@mail.gmail.com>
The same way I can jump between words (normal mode + w, see:
http://vim.wikia.com/wiki/Moving_around) I would like to jump to search
phrase (normal mode + / word). Example ('_' indicates the cursor position):
ls -la /usr/local/bin/_
(When I type, ctrl + [ B , I will get)
ls -la _/usr/local/bin/
I would like to implement a feature that I can jump to the beginning of the
search phrase. Example:
ls -la /usr/local/bin/_
( ctrl + [ / ocal )
ls -la /usr/l_oacl/bin/
So basically this: http://vim.wikia.com/wiki/Searching inside vi mode of zsh
Best regards
2016-01-18 18:29 GMT+01:00 Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>:
> On Mon, Jan 18, 2016 at 12:26 AM, Krzysztof Słonka
> <krzysztofslonka@xxxxxxxxx> wrote:
> >
> > I know that by using ctrl ] + / you can search through history, but I
> would
> > like to implement searching inside command input (the same way you can
> > search in vim, / for forward search and ? for backward).
>
> Could you explain in more detail what you mean by "command input"?
> And exactly when do you want to search it, relative to the execution
> of the command?
>
> I suspect you believe the shell is involved in a part of the process
> where it really is not, but I can't be sure.
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author