zsh-workers
 help / color / mirror / code / Atom feed
From: Timo <timoreg@tutanota.com>
To: zsh-workers@zsh.org
Subject: Menu selection by number
Date: Thu, 24 Jun 2021 20:57:57 +0200 (CEST)	[thread overview]
Message-ID: <MczNgTL--7-2@tutanota.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1210 bytes --]

Hello there,

I'd like to pose the following suggestion: 

Display menu options prepended with a selection number which can be used by user to select option by typing the number.
Motivation: I am using voice programming and numbers are a great visual aid in quickly selecting options. Anyone who wants to type even less could make good use of it.

It could behave this way:
The autocompletion menu lists some options
The options should be prepended by a uniquely identifiable number each (for the current menu display)
If the user types further and the menu changes, the options' numbers are reassigned to the newly displayed options.
Numbers should be displayed in a sorted manner.


Example:

> ls
test_file1 testfile1  testfile_1 testfile_2 testfile_3 testfile_4 testfile_5

# Press tab opens auto completion menu 
# without numbers
> ls test
test_file1  testfile1   testfile_1  testfile_2  testfile_3  testfile_4  testfile_5

# with numbers
> ls test
1: test_file1  2: testfile1   3: testfile_1  4: testfile_2  5: testfile_3  6: testfile_4  7: testfile_5
# typing 3 (or for example ALT+3) would complete with `testfile_1`.


What's your opinion on this?




[-- Attachment #2: Type: text/html, Size: 2184 bytes --]

             reply	other threads:[~2021-06-24 18:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-24 18:57 Timo [this message]
2021-06-24 19:33 ` Daniel Shahaf

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=MczNgTL--7-2@tutanota.com \
    --to=timoreg@tutanota.com \
    --cc=zsh-workers@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).