this post was submitted on 13 Jun 2023
9 points (100.0% liked)

Shell Scripting

120 readers
3 users here now

From Ash, Bash and Csh to Xonsh, Ysh and Zsh; all shell languages are welcome here!

Rules:
  1. Follow Lemmy rules!
  2. Posts must relate to shell scripting. (See bottom of sidebar for more information.)
  3. Only make helpful replies to questions. This is not the place for low effort joke answers.
  4. No discussion about piracy or hacking.
  5. If you find a solution to your problem by other means, please take your time to write down the steps you used to solve your problem in the original post. You can potentially help others having the same problem!
  6. These rules will change as the community grows.

Keep posts about shell scripting! Here are some guidelines to help:


In general, if your submission text is primarily shell code, then it is welcome here!

founded 1 year ago
MODERATORS
 

I found this post really helpful to anyone who is using tmux

top 7 comments
sorted by: hot top controversial new old
[–] gelert 5 points 1 year ago (1 children)

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

[–] [email protected] 1 points 1 year ago (1 children)

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

[–] gelert 2 points 1 year ago (1 children)

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.

[–] [email protected] 1 points 1 year ago

nice, I'll check it out

[–] [email protected] 2 points 1 year ago

I don't know how I missed this. Ty!

[–] [email protected] 2 points 1 year ago (1 children)

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 {}'.

[–] [email protected] 2 points 1 year ago

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