zsh-workers
 help / color / mirror / code / Atom feed
From: "Krzysztof Słonka" <krzysztofslonka@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Implementing search / reverse search in vi mode on input
Date: Mon, 18 Jan 2016 18:45:08 +0100	[thread overview]
Message-ID: <CAHGkLJj2M=s6jM3A63ZMURYqyBxCXQLOwVSXSPXO9D=B3kRKDw@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7YS=zrnGBj1zTKyX=tjHdm=L3hCXv6HtfAsVAVM-keGuQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1282 bytes --]

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@brasslantern.com>:

> On Mon, Jan 18, 2016 at 12:26 AM, Krzysztof Słonka
> <krzysztofslonka@gmail.com> 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.
>

  reply	other threads:[~2016-01-18 17:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-18  8:26 Krzysztof Słonka
2016-01-18 17:29 ` Bart Schaefer
2016-01-18 17:45   ` Krzysztof Słonka [this message]
2016-01-18 19:29     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHGkLJj2M=s6jM3A63ZMURYqyBxCXQLOwVSXSPXO9D=B3kRKDw@mail.gmail.com' \
    --to=krzysztofslonka@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).