Completition menu cycling #72 (#482)

* utility modulus function

* ui adapt for tab menu cycle

* refactor(listMatches) for tab menu cycle

* refactor(draw) handle tab menu selection highlight

* refactor(eval) cmd-complete cycle + reset handles

* feat: added backtab counter-cycle in the completition menu

* cleanup

* docs changes

* refactor: make tab cycle own commands

* docs: tab cycle documentation

* bug: the matches list was not complete because index +2 after row end

* refactor(tab cycle): handle the complete menu command print

* refactor(tab cycle): make the cmdTmp varibale mymic cmdAccLeft + check for partial commands

* refactor(tab cycle): fix how to handle the menu completiton from different events

* fix(tab cycle): fix cmd-complete so that it works with new tab cycle commands

* style: changed puprle to reverse

* cleaned up cycle logic + reverted listMatches

* cleaned up eval logic for cycle feat.

* cleanup

Co-authored-by: 2pac <tarasyarema@pm.me>
This commit is contained in:
2pacand2pac authored and GitHub committed 2020-10-14 19:42:44 +03:00
1 parent 228a20ffd1
commit 17ed724e67
5 files changed
+275 -41

No files matched your search

+12
View File
@@ -71,6 +71,8 @@ The following command line commands are provided by lf:
cmd-escape (default '<esc>')
cmd-complete (default '<tab>')
cmd-menu-complete
cmd-menu-complete-back
cmd-enter (default '<c-j>' and '<enter>')
cmd-interrupt (default '<c-c>')
cmd-history-next (default '<c-n>')
@@ -402,6 +404,16 @@ Quit command line mode and return to normal mode.
Autocomplete the current word.
cmd-menu-complete
Autocomplete the current word, then you can press the binded key/s
again to cycle completition options.
cmd-menu-complete-back
Autocomplete the current word, then you can press the binded key/s
again to cycle completition options backwards.
cmd-enter (default '<c-j>' and '<enter>')
Execute the current line.