Additions to visual-mode (#2035)

* Add `visual-unselect` command

* Add `fv` environment variable
This commit is contained in:
CatsDeservePets authored and GitHub committed 2025-07-08 08:46:26 +10:00
1 parent c2049e05c2
commit f40c626c4d
6 files changed
+70 -19

No files matched your search

+7
View File
@@ -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 {