Skip to content

Commit 505196e

Browse files
author
Bruno Sutic
committed
"open" command can now open files that have spaces
1 parent 952fc5a commit 505196e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### master
44
- 'open editor' command can now open files that have spaces
5+
- system open command can now open files that have spaces
56

67
### v1.0.0, Aug 03, 2014
78
- if $EDITOR env var is not set, provide fallback

open.tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ get_editor_from_the_env_var() {
3232

3333
command_generator() {
3434
local command_string="$1"
35-
echo "xargs -I {} tmux run-shell 'cd #{pane_current_path}; $command_string {} > /dev/null'"
35+
echo "xargs -I {} tmux run-shell 'cd #{pane_current_path}; $command_string \"{}\" > /dev/null'"
3636
}
3737

3838
generate_open_command() {

0 commit comments

Comments
 (0)