⛔ problem with this solution:
-
vim editors not opening
-
better solution =
leader-gg
inside vim (runsFloatermNew 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)
- If you haven’t already, install lazygit (link to my other post about why/how to use it to speed up your git workflow)
- 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)
- In
tmux.conf
, add this keybinding (or similar):
bind g run 'tmux popup -EE -h 100% -w 100% "lazygit"'
- From anywhere inside a
tmux
session, type Prefix + g to openlazygit
- Resources for learning
lazygit
- Resources for learning about
tmux
popups
Further reading
- Lazygit | GitHub repo
- display-popup command | Tmux manual
- Floating scratch terminal in tmux | Abin Simon
- Tmux Pop size | Waylon Walker