Implement files query to export files in the current directory as (#1949)
presented in lf (including filter/sorting) `lf -remote "query $id files"` This version updates `files` list only before running shell commands.
This commit is contained in:
1 parent
3fdd991040
commit
1878faa942
5 files changed
+23
-1
No files matched your search
@@ -552,6 +552,7 @@ func (app *app) runShell(s string, args []string, prefix string) {
|
||||
gState.data["cmds"] = listCmds()
|
||||
gState.data["jumps"] = listJumps(app.nav.jumpList, app.nav.jumpListInd)
|
||||
gState.data["history"] = listHistory(app.cmdHistory)
|
||||
gState.data["files"] = listFilesInCurrDir(app.nav)
|
||||
gState.mutex.Unlock()
|
||||
|
||||
cmd := shellCommand(s, args)
|
||||
|
||||
Reference in new issue
Block a user