diff --git a/doc.go b/doc.go index 0a6495b4..5dbb6380 100644 --- a/doc.go +++ b/doc.go @@ -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 diff --git a/docstring.go b/docstring.go index 5d4f56a2..51f47891 100644 --- a/docstring.go +++ b/docstring.go @@ -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' diff --git a/os_windows.go b/os_windows.go index f9fb9b67..09e9dace 100644 --- a/os_windows.go +++ b/os_windows.go @@ -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) {