SuperBo / fugit2.nvim

Neovim git GUI powered by libgit2
MIT License
352 stars 7 forks source link

bug: when accidentally switching out of fugit2Graph you cannot get back #18

Closed sboesebeck closed 1 month ago

sboesebeck commented 4 months ago

Did you check docs and existing issues?

Neovim version (nvim -v)

NVIM v0.9.5

Operating system/version

MacOS14.3.1

Describe the bug

when a Fugit2 dialog is open and you switch to another window or open neotree for example, you cannot get back to the neogit2 dialog. If you type in <CMD>Fugit2Graph for example again, you'd get a second dialog, you can use on top of the existing one (instead of reusing the already opened one). If you close that, the dialog stays open

Steps To Reproduce

  1. open a file in a git repository
  2. open fugit2Graph dialog, e.g. <CMD>Fugit2Graph
  3. open neotree or go to "next window"
  4. try to close the dialog

Expected Behavior

there might be two "solutions" to this:

Update: It only happens with Fugit2Graph and the CTRL-W CTRL-W gets the focus back...

SuperBo commented 4 months ago

Hi @sboesebeck, can you help me confirm the same issue happens with "Fugit2" main diaglog or just with "Fugit2Graph". I remembered implemented a dedup mechanism for main Fugit2 dialog, but not for Fugit2Graph.

Tips: you can use keys "Ctrl-W Ctrl-W" to go back to top popup without trigger the command again.

sboesebeck commented 4 months ago

I just tried it - you're right, it does not happen with "Fugit2" itself!

And the Ctrl-W Ctrl-W - keybinding works. Thanks.

SuperBo commented 1 month ago

@sboesebeck, please check again :D, I fixed it