sainnhe / tmux-fzf

Use fzf to manage your tmux work environment!
MIT License
990 stars 52 forks source link

Fix spaces in session/window names being passed incorrectly through xargs #65

Closed BSteffaniak closed 1 year ago

BSteffaniak commented 1 year ago

To reproduce the error that this fixes:

  1. Create a session with a space in the name: tmux new-session -t "test name"
  2. Switch to another session
  3. Attempt to fuzzy switch back to that session and be greeted with error message resembling '~/.config/tmux/plugins/tmux-fzf/scripts/window.sh switch' returned 123

This PR fixes that issue.

sainnhe commented 1 year ago

Thanks!