export files and options for previewer and cleaner

cc #626
This commit is contained in:
Gokcehan committed 2022-01-27 22:08:13 +03:00
1 parent 1bb7a17c81
commit 18fb632efa
2 files changed
+15 -12

No files matched your search

+1 -12
View File
@@ -448,17 +448,6 @@ func (app *app) loop() {
}
}
func (app *app) exportFiles() {
var currFile string
if curr, err := app.nav.currFile(); err == nil {
currFile = curr.path
}
currSelections := app.nav.currSelections()
exportFiles(currFile, currSelections, app.nav.currDir().path)
}
// This function is used to run a shell command. Modes are as follows:
//
// Prefix Wait Async Stdin Stdout Stderr UI action
@@ -467,7 +456,7 @@ func (app *app) exportFiles() {
// ! Yes No Yes Yes Yes Pause and then resume
// & No Yes No No No Do nothing
func (app *app) runShell(s string, args []string, prefix string) {
app.exportFiles()
app.nav.exportFiles()
exportOpts()
cmd := shellCommand(s, args)