Add -print-last-dir and -print-selection flags (#1402)

* Add `-print-last-dir` and `-print-selection` flags

* Add shell completions

* Update `lfcd.sh` example to use new flag
This commit is contained in:
Joe Lim authored and GitHub committed 2023-08-31 10:10:31 +10:00
1 parent 63d21b5a3e
commit 6aa3d2aa18
10 files changed
+50 -26

No files matched your search

+1 -1
View File
@@ -1446,7 +1446,7 @@ func (e *callExpr) eval(app *app, args []string) {
return
}
if gSelectionPath != "" {
if gSelectionPath != "" || gPrintSelection {
app.selectionOut, _ = app.nav.currFileOrSelections()
app.quitChan <- struct{}{}
return