* Fix some multibyte character completion bugs
- matchLongest now operates on runes instead of bytes so we don't
complete part of a multibyte character.
- Fix some places that mixed string and rune slice indices.
* Fix wrong menu completion for subdirectories
When selecting a menu completion for a file in a subdirectory, the
entire filename would be appended to the command line, even if you had
already typed part of it.
* Escape file completions in menu completion
* Minor refactors and typo fixes
* Fix cmd-menu-complete-back bug
The first use of cmd-menu-complete-back after opening the completion
menu was incorrectly selecting the before-last completion instead of the
last completion.
* Allow completing broken symlinks
Also skip files with stat errors instead of returning.
* Add command to accept current menu selection
This is useful when completing filenames. For example
cmap <c-y> :cmd-menu-accept; cmd-menu-complete
can be used to accept the selected directory completion, then complete
files in the directory.
* Complete command names for map and cmap
* 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>
* Fixed issue #346 and changed the format of numbers when both relativenumber and number are set.
* Fixed issue #349 (incorrect replacement of '~' with user's home direcotry).
* Changed where appropriate so that tilde replacements happens correctly.
* Added a function to replace tilde with user's home directory, only when it should.
* Renamed ReplaceTilde to replaceTilde so that it won't get exported and removed some ';' at the end of some lines.