Comment by notpublic

3 months ago

Indeed! I just found out about tmux display-popup recently.

  # ~/.tmux.conf 
  bind-key C-g display-popup -E -d "#{pane_current_path}" -xC -yC -w 80% -h 75% "lazygit"

Then, in tmux:

  ctrl-b ctrl-g will open a popup window with lazygit
  q to quit

Pretty much my config exactly. I make mine a bit bigger tho:

   bind-key -n C-g display-popup -E -w 90% -h 80% -T "LazyGit" -d "#{pane_current_path}" "lazygit"