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:
1 parent
bf314a32f4
commit
cb8026d627
15 files changed
+619
-239
No files matched your search
@@ -294,6 +294,18 @@ var gEvalTests = []struct {
|
||||
[]expr{&mapExpr{"gh", &listExpr{[]expr{&callExpr{"cd", []string{"~"}, 1}}, 1}}},
|
||||
},
|
||||
|
||||
{
|
||||
"nmap <space> :toggle; down",
|
||||
[]string{"nmap", "<space>", ":", "toggle", ";", "down", "\n", "\n"},
|
||||
[]expr{&nmapExpr{"<space>", &listExpr{[]expr{&callExpr{"toggle", nil, 1}, &callExpr{"down", nil, 1}}, 1}}},
|
||||
},
|
||||
|
||||
{
|
||||
"vmap <esc> visual-accept",
|
||||
[]string{"vmap", "<esc>", "visual-accept", "\n"},
|
||||
[]expr{&vmapExpr{"<esc>", &callExpr{"visual-accept", nil, 1}}},
|
||||
},
|
||||
|
||||
{
|
||||
"cmap <c-g> cmd-escape",
|
||||
[]string{"cmap", "<c-g>", "cmd-escape", "\n"},
|
||||
|
||||
Reference in new issue
Block a user