martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 260 forks source link

Command completion with tab key #1173

Open MaxGyver83 opened 3 months ago

MaxGyver83 commented 3 months ago

In the command prompt, press <tab> to get a list of all available commands and pick one (using vis-menu). This works also after typing the first letters of a command (p.e. :la<tab>).

vis-command-completion

Implements #1167 (and #100 more or less).

I'm aware that @martanne wants to avoid this feature. But I want to share it anyway for those who want to apply this patch to their local vis build.

mcepl commented 3 months ago

See also https://lists.sr.ht/~martanne/devel/%3C20240324225636.9318-1-mcepl@cepl.eu%3E for a discussion how to remove a warning caused by this patch.