Skip to content

v2.8.0

Latest
Compare
Choose a tag to compare
@joshmedeski joshmedeski released this 07 Jan 05:20
0c3480c

Preview support for sesh is here! πŸ–ΌοΈ πŸŽ‰

Thanks to @danitrap for contributing (#203)

image

How to use

You can add --preview 'sesh preview {}' to your fzf configuration:

bind-key "T" run-shell "sesh connect \"$(
  sesh list --icons | fzf-tmux -p 80%,70% \
    --preview 'sesh preview {}'
)\""

The full fzf example can be seen on the project's README.md

How to configure

You can also customize the preview behavior by adding preview_command to your configurations. For example, you may want to list a directories files with eza or preview a file with bat.

[default_session]
preview_command = "lsd  --group-dirs first -A {path_to_directory}"

[[session]]
name = "tmux config"
path = "~/c/dotfiles/.config/tmux"
startup_command = "nvim tmux.conf"
preview_command = "bat ~/c/dotfiles/.config/tmux/tmux.conf"

Please test it out and let me know how you like it! Please submit an issue if you run into any issues.