From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25909 invoked by alias); 10 Nov 2014 15:32:47 -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: 19364 Received: (qmail 2423 invoked from network); 10 Nov 2014 15:32:34 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=D3ZZkfjtyZyGthF83EBJdD0GEj82Dn6nLVo4mvwXJ9k=; b=cH4Y590jCfePm9lPxYSRVc3juLyC3R/+iQUUxT+mgWmBA7JljBR2JwSV47YeUhuGlU s9jTdEVVf9JhPsNlE9OLIbT2Y2m3KDpCrQAP/RQ77MVdNfqJhZJDC6uC8FCIXOYpGbTK JGKiFEM6QjlHVRH6MLhi1kctvPzz+h/og6/9/wQXdB1FUBzkOy0/EGy9Hgup7ogWdNuZ C/m/voYggZWbXljjQgsY9/VfZx84da8JTxKK3y41V+NOWDW6u8lBqQzaX71AzinSOBKD eigWo9R1y2ytsYuS9J3it3Ind5918jtpxgYv/BHq57OcK8w0zGTmN5FQ0hpnJPkGIEgJ IQSw== X-Received: by 10.181.13.20 with SMTP id eu20mr31148236wid.36.1415633546916; Mon, 10 Nov 2014 07:32:26 -0800 (PST) Message-ID: <1415633542.1260.10.camel@gmail.com> Subject: Re: How to add a 'non-escaped' tilde to the completion list From: Death Jester To: Oliver Kiddle Cc: zsh-users@zsh.org Date: Mon, 10 Nov 2014 16:32:22 +0100 In-Reply-To: <15435.1415627852@thecus.kiddle.eu> References: <1415617649.1260.4.camel@gmail.com> <20141110113136.34766361@pwslap01u.europe.root.pri> <20141110121802.6f9434c4@pwslap01u.europe.root.pri> <1415625666.1260.8.camel@gmail.com> <15435.1415627852@thecus.kiddle.eu> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.7-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Thank you Oliver, you are right. It was related to the 'zle ...' command. The binding however was not the problem, but the type of completion. Now I fixed it. You can now hit CTRL+v to get the list of folders and afterwards hit Tab to cycle through the list: function _term_list(){ local -a w for SESSION in $(pidof zsh); do w+=${(D)$(readlink -n /proc/${SESSION}/cwd)} done compadd -aQ w } zle -C term_list menu-complete _generic bindkey "^v" term_list zstyle ':completion:term_list:*' completer _term_list Btw, I'm not sure if "advertisement" is allowed here. I have submitted the plugin to the oh-my-zsh project. But without any testers, they don't want to merge it in to the mainline project. So if anybody is interested you can test it... =) Cheers, Jester On Mon, 2014-11-10 at 14:57 +0100, Oliver Kiddle wrote: > Death Jester wrote: > > zle -C term_list complete-word _generic > > _generic, or more specifically _main_complete, is the source of some of > the problems with this. Try using _term_list directly. > > Very nice idea by the way. If you get it working fully, please post it > so I can steal it for my setup. > > Oliver