iam4x / zsh-iterm-touchbar

Display feedback of terminal in the 🍏 Touchbar
MIT License
689 stars 75 forks source link

CD Shortcuts don't escape spaces in path #31

Open vasilescur opened 6 years ago

vasilescur commented 6 years ago

When I click the leftmost button in the touch bar and then attempt to tap on a folder name to CD into it, the path does not include escaped spaces and thus fails. My folder names contain spaces, and thus the CD command thinks there are "too many arguments" when I simple use the touchbar button from this plugin.

Suggested fix: When preparing the CD command, the plugin should append a \ before every space in the target path.