tmux-plugins / tmux-open

Tmux key bindings for quick opening of a highlighted file or url
MIT License
620 stars 63 forks source link

Bug when opening a file with spaces with <Ctrl-o> #3

Closed bruno- closed 9 years ago

bruno- commented 9 years ago

Thanks to David Melech for reporting this issue.

Here are the steps to reproduce the issue:

bruno- commented 9 years ago

This core of the issue falls back how tmux send-keys command works. It can be reproduced like this:

tmux send-keys foo bar
# output (bad): "foobar"

When arguments are quoted:

tmux send-keys 'foo bar'
# output (good): "foo bar"

In short, arguments need to be quoted.