Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on programming.dev

7 replies

lemmy.world

If you're using Neovim as well as tmux, telescope-tmux is pretty awesome for switching sessions, windows and more.

5
Howard Doreply
programming.dev

Very nice, thanks. But I'm not always inside neovim to use this plugin tho

1
gelertreply
lemmy.world

You don't have to already be inside of Neovim.

Tmux 3.2's new display-popup command is a neat way to access the telescope picker when you are outside of Neovim.

source: https://github.com/camgraff/telescope-tmux.nvim#use-with-tmux-display-popup

You can just set up a keybinding, and a new instance of Neovim will start in a popup window inside of Tmux.

There's a fractional delay while Neovim starts up, but I find it well within tolerance, personally.

2
programming.dev

I've only used the builtin choose-session, and haven't had the need for anything more (I usually only have one session, maybe 3 at most) but this gives me ideas to iterate over all open panes with previews given by fzf --preview 'tmux capture-pane -p -t {}'.

2

Yeah, whatever fits you, I usually open each repo in seperated session with tmux-sessionizer so fuzzy find session is useful

2

You reached the end

Fuzzy-switching sesssion in tmux script | Spyke