* 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>
Fix colour construction issue
This also has a test to mitigate it in the future
Remove `colormode` option
The original issue it was trying to solve is no longer present with
tcell (it being a holdover from `color256` on termbox) so it is not
needed.
retire gitter channel in favor of irc/matrix
Export options as environment variables (#448)
* Export options as environment variables
Any options from gOpts are available via lf_OPTION environment
variables. For now it works only on booleans, integers and strings (no
array support)
* Do not export some of the options
* Add support for arrays and fix numbers
* Fix comments
* Replace 1 and 0 with true and false
* Export hidden,reverse,dirfirst and sortby options
* Fix comments
* Little fix
* Simplify boolean conversion
log readlink errors instead of fail
Related #447 and #374
* Add truncatechar option
* Add ability to set truncatechar via `set` command
* Add completion for truncatechar option
* Actually use truncatechar option when truncating
* Add truncatechar option to docs
* 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.
The path has to start with the home directory to be shortened to `~`.
Previously a user named `user` would see `/media/backup~/files` when
browsing `/media/backup/home/user/files`.
- Add access time and change time as sort by types. This is
powered by github.com/djherbis/times.
- Fall back to modification time if access time and change time
cannot be determined.
- Add `sa` and `sc` as default bindings for sort by access time and
sort by change time respectively.
- Add access time and change time to info types allowing them to be
displayed by the file list in the ui