Closed ajaymahar closed 4 months ago
This is a limitation with sesh right now (doesn't support spaces in session names). Unfortunately it's not a quick fix, so I will have to dedicate some effort to it!
A lot of it has to do with parsing the tmux list.
Sure, one more thing i observed when I use icons in my session and zoxide dir names, name return by fzf is with icon so if we do something like delete session with ^d tmux does not find session bcoz name contains the icon too. Highlighted here bcoz it might be similar issue like space.
Since fzf only accepts strings then the script would have to be updated significantly to support features like that.
Let me know if you have any ideas, it's getting pretty complicated trying to add icon support.
@ajaymahar I added space support for both session paths and names, download v0.14.0
of sesh and let me know if you have any issues.
What happened?
When I , I expected but _ happened! When I try to switch session with on of my zoxide path, (which have space in dir name). I expected to get into new session but sesh existed. I tried to replicate it manually below are the steps to reproduce the issue.
Step-1: create some dir with space in name Step-2: z into that dir so zoxide will have entry for it Step-3: try `sesh connect fails.
Example:
Execute below cmd to get all the session list and zoxide
Try to select any dir which have space in name for me it was, see
Notes Workspace
have spaceError: ➜ sesh connect ~/Library/Mobile Documents/iCloud~md~obsidian/Documents/Notes Workspace 2024/02/24 10:16:20 unable to connect to "/Users/ajay/Library/Mobile": failed to add "/Users/ajay/Library/Mobile" to zoxide: exit status 1
Hack/Workaround (manually) I use single quote ' ' when i tried to connect with sesh and it worked. ➜ sesh connect '~/Library/Mobile Documents/iCloud~md~obsidian/Documents/Notes Workspace'
Version
sesh version 0.13.0
Relevant log output
Error: ➜ sesh connect ~/Library/Mobile Documents/iCloud~md~obsidian/Documents/Notes Workspace 2024/02/24 10:16:20 unable to connect to "/Users/ajay/Library/Mobile": failed to add "/Users/ajay/Library/Mobile" to zoxide: exit status 1
Reviewed