Improvements for command line completion (#2071)
- Refactor of the completion module, primarily to have the `match...` functions return the result for each possible match, so that they can be displayed when the user cycles through the completions using `cmd-menu-complete`/`cmd-menu-complete-back` - Add support for completing list options (e.g. `set info user:group:size:time`) - Provide different implementations for escaping/unescaping for `lfrc` command syntax, Unix and Windows. It is a bit hacky, but for now I want to keep `lf` as shell-agnostic as possible which means minimizing the logic based on `gOpts.shell` - Fix alignment bug in the completion menu when displaying filenames with fullwidth characters
This commit is contained in:
1 parent
88a599643d
commit
42b36fd52c
10 files changed
+444
-341