From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24149 invoked by alias); 3 Apr 2015 06:16:40 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20075 Received: (qmail 21225 invoked from network); 3 Apr 2015 06:16:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Date: Fri, 3 Apr 2015 14:16:21 +0800 From: Han Pingtian To: zsh-user Subject: _history_complete_word and history word begin with quote Message-ID: <20150403061621.GF2805@localhost.localdomain> Mail-Followup-To: zsh-user MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15040306-0029-0000-0000-0000025CFA8C Hi, Looks like if a history word begins with quote, _history_complete_word cannot complete it? localhost% autoload -U compinit localhost% compinit localhost% print hello world hello world localhost% print "foo bar" foo bar localhost% echo "foo<\e,> I pressed <\e,> but cannot get "foo bar". There is nothing being listed And if I tried to complete after ", then all history word being listed: localhost% echo "<\e,> "foo bar" print world hello print compinit -U autoload if continue press <\e,>, then every history words get inserted there within double-quotes: localhost% echo ""foo bar"" "foo bar" print world hello print compinit -U autoload How should we use _history_complete_word to complete such a word? Thanks.