From: ml@kybu.org
To: Zsh Users <zsh-users@zsh.org>
Subject: Menu completion on empty line
Date: Thu, 3 Nov 2016 07:17:06 +0000 [thread overview]
Message-ID: <20161103071706.GA24640@kybu.org> (raw)
Hi gyus,
I was thinking having a kind of an action menu for a build directory of a c++ project.
If I press the tab key on an empty line and I am in a build directory, which can be
detected by a presence of, let's say the makefile file, it would be useful to get a menu
with items: clean build rebuild. I could use the tab key to move around these items.
If I choose one, it would expand to a particular command, like 'make clean'.
Setting anything like that is beyond my current knowledge of zsh. Any help / pointers as to
how to do that are appreciated.
Thanks,
kybu
next reply other threads:[~2016-11-03 7:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-03 7:17 ml [this message]
2016-11-06 2:01 ` Bart Schaefer
2016-11-07 6:22 ` ml
[not found] ` <161105190150.ZM1605__20581.2434120618$1478397817$gmane$org@torch.brasslantern.com>
2016-11-06 3:15 ` Daniel Shahaf
2016-11-06 3:41 ` 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=20161103071706.GA24640@kybu.org \
--to=ml@kybu.org \
--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).