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

+4
View File
@@ -214,6 +214,10 @@ func max(a, b int) int {
return b
}
func mod(a, b int) int {
return (a % b + b) % b
}
// We don't need no generic code
// We don't need no type control
// No dark templates in compiler