tmux-plugins / tmux-open

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

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

Closed bruno- closed 10 years ago

bruno- commented 10 years ago

Thanks to David Melech for reporting this issue.

Here are the steps to reproduce the issue:

bruno- commented 10 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.