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:
Joe Lim authored and GitHub committed 2025-08-07 15:14:25 +10:00
1 parent 88a599643d
commit 42b36fd52c
10 files changed
+444 -341

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
cmap <a-j> cmd-menu-complete
cmap <a-k> cmd-menu-complete-back