gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Allow opening files from gitui from within the parent process rather than spawning a new one with vim

Open piersolenski opened this issue 1 year ago • 1 comments

A common work flow is to use gitui from within vim, using via a floating terminal window, or dedicated plugin, such as https://github.com/is0n/fm-nvim.

When opening files from within gitui, it would be great if it could use the parent instance of vim could be used, rather than spawning a new instance of vim within the window.

This is something lazygit supports via the nvim-remote setting, so it would be awesome to have feature parity.

https://github.com/kdheepak/lazygit.nvim/issues/22

piersolenski avatar Apr 13 '24 06:04 piersolenski

so its basically about adding a configuration of what program is spawned when triggering an edit?

extrawurst avatar Apr 13 '24 09:04 extrawurst

Yes, then it would work in the same manner that Lazygit does it 👌

piersolenski avatar Jul 21 '24 18:07 piersolenski

In the end I achieved this with https://github.com/willothy/flatten.nvim

piersolenski avatar Jul 21 '24 19:07 piersolenski