fix default commands on windows

This commit is contained in:
Gokcehan committed 2018-04-28 18:34:24 +03:00
1 parent 6b235beb39
commit 0855507298
3 files changed
+13 -13

No files matched your search

+5 -5
View File
@@ -124,8 +124,8 @@ The following keybindings to applications are provided by default on unix:
The following keybindings to applications are provided by default on windows:
map e $notepad "%f%"
map i $more "%f%"
map e $notepad %f%
map i $more %f%
map w $cmd
Configuration
@@ -465,9 +465,9 @@ You may want to use either file extensions or mime types from 'file' command:
Following commands are provided by default:
cmd open-file &start "" "%f%" # windows
cmd open-file &open "$f" # mac
cmd open-file &xdg-open "$f" # others
cmd open-file &start %f% # windows
cmd open-file &open "$f" # mac
cmd open-file &xdg-open "$f" # others
You may also use any other existing file openers as you like. Possible options
are 'libfile-mimeinfo-perl' (executable name is 'mimeopen'), 'rifle' (ranger's
+5 -5
View File
@@ -129,8 +129,8 @@ The following keybindings to applications are provided by default on unix:
The following keybindings to applications are provided by default on
windows:
map e $notepad "%f%"
map i $more "%f%"
map e $notepad %f%
map i $more %f%
map w $cmd
@@ -491,9 +491,9 @@ command:
Following commands are provided by default:
cmd open-file &start "" "%f%" # windows
cmd open-file &open "$f" # mac
cmd open-file &xdg-open "$f" # others
cmd open-file &start %f% # windows
cmd open-file &open "$f" # mac
cmd open-file &xdg-open "$f" # others
You may also use any other existing file openers as you like. Possible
options are 'libfile-mimeinfo-perl' (executable name is 'mimeopen'), 'rifle'
+3 -3
View File
@@ -70,10 +70,10 @@ func putCommand(list []string, dir *dir, copy bool) *exec.Cmd {
}
func setDefaults() {
gOpts.keys["e"] = &execExpr{"$", `notepad "%f%"`}
gOpts.keys["i"] = &execExpr{"$", `more "%f%"`}
gOpts.keys["e"] = &execExpr{"$", `notepad %f%`}
gOpts.keys["i"] = &execExpr{"$", `more %f%`}
gOpts.keys["w"] = &execExpr{"$", "cmd"}
gOpts.cmds["open-file"] = &execExpr{"&", `start "" "%f%"`}
gOpts.cmds["open-file"] = &execExpr{"&", `start %f%`}
}
func moveCursor(y, x int) {