From: Death Jester <d3ath.jest3r@gmail.com>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-users@zsh.org
Subject: Re: How to add a 'non-escaped' tilde to the completion list
Date: Mon, 10 Nov 2014 16:32:22 +0100 [thread overview]
Message-ID: <1415633542.1260.10.camel@gmail.com> (raw)
In-Reply-To: <15435.1415627852@thecus.kiddle.eu>
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
next prev parent reply other threads:[~2014-11-10 15:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-10 11:07 Death Jester
2014-11-10 11:31 ` Peter Stephenson
2014-11-10 12:18 ` Peter Stephenson
2014-11-10 13:21 ` Death Jester
2014-11-10 13:42 ` Peter Stephenson
2014-11-10 13:57 ` Oliver Kiddle
2014-11-10 15:32 ` Death Jester [this message]
2014-11-10 21:03 ` Oliver Kiddle
2014-11-11 10:17 ` Death Jester
2014-11-11 21:40 ` Jan Larres
2014-11-10 12:54 ` Death Jester
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=1415633542.1260.10.camel@gmail.com \
--to=d3ath.jest3r@gmail.com \
--cc=okiddle@yahoo.co.uk \
--cc=zsh-users@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).