Add visual-mode (#2021)

- Add functionality for visually selecting files
- Add keymap for Visual mode, and supporting `nmap` and `vmap` commands
- Add mode column for `maps` command, also add `nmaps` and `vmaps` commands
- Add `visualfmt` option for configuring appearance for the visual selection
- Add `%m/%M` placeholders for displaying the mode
- Add marker indicating the number of visually selected files in the ruler
- Add `visual` as an identifier when exporting `lf_mode`
- Remove experimental `invert-below` command
This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-07-05 11:33:45 +10:00
1 parent bf314a32f4
commit cb8026d627
15 files changed
+619 -239

No files matched your search

+1 -1
View File
@@ -335,7 +335,7 @@ func getFileExtension(file fs.FileInfo) string {
var (
reModKey = regexp.MustCompile(`<(c|s|a)-(.+)>`)
reRulerSub = regexp.MustCompile(`%[apmcsfithPd]|%\{[^}]+\}`)
reRulerSub = regexp.MustCompile(`%[apmcsvfithPd]|%\{[^}]+\}`)
reSixelSize = regexp.MustCompile(`"1;1;(\d+);(\d+)`)
)