akiyosi / goneovim

A GUI frontend for neovim.
MIT License
2.37k stars 62 forks source link

Option to disable "diff file dropped" popup #545

Closed idbrii closed 1 month ago

idbrii commented 1 month ago

When I drag a file onto goneovim (v0.6.3), it shows this popup:

image

How can I make it always edit the file instead of asking to diff?

I did :help goneovim and searched for 'drop' and 'drag' and 'diff' but didn't find any relevant settings. Is there an option to disable this popup?

While, yes, I'm using my mouse to drag and drop, I don't want to mouse down to this popup to dismiss it. The popup can't be closed with Esc.


NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068

akiyosi commented 1 month ago

@idbrii Hi :) I've added a new option called ShowDiffDialogOnDrop which controls whether a diff dialog is displayed when dragging and dropping a file. Please test this new feature and let me know if there are any issues or improvements needed.

https://github.com/akiyosi/goneovim/actions/runs/10096339880

idbrii commented 1 month ago

I tested the Windows build and it works great. I also tested turning it back on:

[Editor]
ShowDiffDialogOnDrop = true

All works well.

It seems the default value of ShowDiffDialogOnDrop is false which changes existing goneovim behaviour. That seems preferable to me, but may not be intentional?

Regardless, thanks for the quick fix!

akiyosi commented 1 month ago

Thanks for confirming. Yes, that default is intentional.