From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15600 invoked by alias); 3 Nov 2016 07:24:45 -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: 22079 Received: (qmail 14483 invoked from network); 3 Nov 2016 07:24:45 -0000 X-Qmail-Scanner-Diagnostics: from li268-139.members.linode.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(178.79.148.139):SA:0(0.0/5.0):. Processed in 0.451232 secs); 03 Nov 2016 07:24:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: ml@kybu.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at kybu.org does not designate permitted sender hosts) Date: Thu, 3 Nov 2016 07:17:06 +0000 From: ml@kybu.org To: Zsh Users Subject: Menu completion on empty line Message-ID: <20161103071706.GA24640@kybu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) 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