Skip to content

sesh connect {dir} not working #289

@ItzTas

Description

@ItzTas

What happened?

When I tried to execute sesh connect into a directory, I expected to create a tmux session to that directory but an error code returned and nothing happened!

here is what it appears when I try to sesh connect into a directory:

[#]  sesh connect  ~/Downloads

   ERROR 

  Failed to establish connection: exit status 128.

 talinux on  ~/Downloads                                                                                                          20:39:40 
[] 

but this also happens on the tmux bind, I have it configured like this:


bind-key "T" run-shell "sesh connect \"$(
  sesh list --icons | fzf-tmux -p 80%,70% \
    --no-sort --ansi --border-label ' sesh ' --prompt '⚡  ' \
    --header '  ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
    --bind 'tab:down,btab:up' \
    --bind 'ctrl-a:change-prompt(⚡  )+reload(sesh list --icons)' \
    --bind 'ctrl-t:change-prompt(🪟  )+reload(sesh list -t --icons)' \
    --bind 'ctrl-g:change-prompt(⚙️  )+reload(sesh list -c --icons)' \
    --bind 'ctrl-x:change-prompt(📁  )+reload(sesh list -z --icons)' \
    --bind 'ctrl-f:change-prompt(🔎  )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
    --bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡  )+reload(sesh list --icons)' \
    --preview-window 'right:55%' \
    --preview 'sesh preview {}'
)\""


then it shows this:

'sesh connect "$(
sesh list --icons | fzf-tmux -p 80%,70%     --no-sort --ansi --border-label ' sesh ' --prompt ''     --header '  ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find'     --bind 'tab:down,btab:up'     --bind 'ctrl-a:change-prompt(⚡  )+reload(sesh list --icons)'     --bind 'ctrl-t:change-prompt(🪟  )+reload(sesh list -t --icons)'     --bind 'ctrl-g:change-prompt(⚙️  )+reload(sesh list -c --icons)'     --bind 'ctrl-x:change-prompt(📁  )+reload(sesh list -z --icons)'     --bind 'ctrl-f:change-prompt(🔎  )+reload(fd -H -d 2 -t d -E .Trash . ~)'     --bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡  )+reload(sesh list --icons)'     --preview-window 'right:55%'     --preview 'sesh preview {}'
)"' returned 1

Version

2.18.0

Relevant log output

No response

Reviewed

  • Reviewed existing issues and made sure this bug has not already been submitted.
  • I have read the documentation and understand how sesh works before submitting this bug

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions