Additions to visual-mode (#2035)
* Add `visual-unselect` command * Add `fv` environment variable
This commit is contained in:
1 parent
c2049e05c2
commit
f40c626c4d
6 files changed
+70
-19
No files matched your search
@@ -2346,6 +2346,19 @@ func (e *callExpr) eval(app *app, args []string) {
|
||||
// allows us to use visual mode inside search, find etc.
|
||||
dir.visualAnchor = -1
|
||||
normal(app)
|
||||
case "visual-unselect":
|
||||
if !app.nav.init {
|
||||
return
|
||||
}
|
||||
dir := app.nav.currDir()
|
||||
for _, path := range dir.visualSelections() {
|
||||
delete(app.nav.selections, path)
|
||||
}
|
||||
if len(app.nav.selections) == 0 {
|
||||
app.nav.selectionInd = 0
|
||||
}
|
||||
dir.visualAnchor = -1
|
||||
normal(app)
|
||||
case "visual-discard":
|
||||
if !app.nav.init {
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user