From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29521 invoked by alias); 18 Jan 2016 17:45:13 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37679 Received: (qmail 16611 invoked from network); 18 Jan 2016 17:45:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=d9NnnL5WXRLP2gQcZnP89NEWMjSYgCCGv+KjV1xEH/g=; b=GXIHbahl6rDsgGaUjFzcfj0KVUW5O1uoHeXjfQXk5ioz7G62RM6t99aIn22jsSFBcq UW/WZqGA9Mz75jcujWpWolTEtYy9+th+u0TSFU8vWE5p5bvuWXCxOH3yrNAv1JW1RpGS Z/EfPyeTcemECDI3Kbo4sME6RwpxLP1Ih4W6LfCH4ynkDlkcZ+HfZn9N/i1tKFAXMKOz 0qk+aX+0wQp3x20glmGdy9q33k72S3ii18IThNlblCfwDO4xifIQH1nJZ4yc4HfwGcsU 2h/87WpuaoVriXX2NZaCjDxdoa0MpdWMxAlEZ7LKGmS6bgMSMTB/L6sPIziGybyi+nJT u+tQ== X-Gm-Message-State: ALoCoQlh4/ZAibDkiROem9JSNLSZQuMXt5hUQhSFqRVpw8LvZA/1xlzVUbPWmQzmLkLRo98QizGK9UKAU/U3mTJq1+s3vFIqpQ== MIME-Version: 1.0 X-Received: by 10.37.59.72 with SMTP id i69mr5476933yba.30.1453139108968; Mon, 18 Jan 2016 09:45:08 -0800 (PST) In-Reply-To: References: Date: Mon, 18 Jan 2016 18:45:08 +0100 Message-ID: Subject: Re: Implementing search / reverse search in vi mode on input From: =?UTF-8?Q?Krzysztof_S=C5=82onka?= To: Bart Schaefer Cc: Zsh hackers list Content-Type: multipart/alternative; boundary=001a114f5b6e6643d405299f50ca --001a114f5b6e6643d405299f50ca Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 zs= h Best regards 2016-01-18 18:29 GMT+01:00 Bart Schaefer : > On Mon, Jan 18, 2016 at 12:26 AM, Krzysztof S=C5=82onka > 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. > --001a114f5b6e6643d405299f50ca--