Skip to main content

Using tmux pop-ups as temporary terminal windows

⛔ problem with this solution:

  • vim editors not opening

  • better solution = leader-gg inside vim (runs FloatermNew lazygit) + g in terminal

  • find a non-lazygit example?

  • Sometimes you want to quickly commit a change without switching windows/apps or spending so much time that you lose your train of thought

  • Lazygit (super fast git operations) + a tmux popup (whether in vim or the shell, same quick shortcut to open it)

  1. If you haven’t already, install lazygit (link to my other post about why/how to use it to speed up your git workflow)
  2. If you haven’t already, install tmux (link to my other post about why/how to use it to make working with the terminal quicker and easier by saving your sessions)
  3. In tmux.conf, add this keybinding (or similar):
bind g run 'tmux popup -EE -h 100% -w 100% "lazygit"'
  1. From anywhere inside a tmux session, type Prefix + g to open lazygit
  • Resources for learning lazygit
  • Resources for learning about tmux popups

Further reading

Inbox