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
@@ -751,8 +751,15 @@ func (nav *nav) exportFiles() {
|
||||
}
|
||||
currSelections := strings.Join(selections, gOpts.filesep)
|
||||
|
||||
var vSelections []string
|
||||
for _, selection := range nav.currDir().visualSelections() {
|
||||
vSelections = append(vSelections, quoteString(selection))
|
||||
}
|
||||
currVSelections := strings.Join(vSelections, gOpts.filesep)
|
||||
|
||||
os.Setenv("f", currFile)
|
||||
os.Setenv("fs", currSelections)
|
||||
os.Setenv("fv", currVSelections)
|
||||
os.Setenv("PWD", quoteString(nav.currDir().path))
|
||||
|
||||
if len(selections) == 0 {
|
||||
|
||||
Reference in new issue
Block a user