neovim-qt icon indicating copy to clipboard operation
neovim-qt copied to clipboard

Feature request: option to show previously opened files on start

Open manid2 opened this issue 5 months ago • 3 comments

Hi all I want to add an option to show previously opened files on starting neovim-qt gui.

This will help me to always open the same set of files I had kept open in previous sessions.

I am not sure if this is already existing I will explore the source code and make the initial patch.

But before I make any changes I wanted to create this issue to discuss this feature here.

So let us discuss about this feature if any existing interests and to list of pros and cons.

manid2 avatar Jan 31 '24 18:01 manid2

Hi @manid2

This is best addressed by existing Neovim features. I think what you are describing is already covered by :mksession.

equalsraf avatar Feb 05 '24 14:02 equalsraf

Hi @equalsraf

I am aware of :mksession and it is a vim/neovim feature. I don't want this. I want to see previously opened files every time I start neovim-qt and I want this only in gui not in neovim.

This is because I want to get rid of Geany IDE https://github.com/geany/geany and use vim or neovim exclusively.

Maybe this is something only I want so I will try to add this feature on my own and give a demo when I get time for this.

manid2 avatar Feb 05 '24 14:02 manid2

Ok let me know when you have a clear picture of how this would work.

I want to see previously opened files every time I start neovim-qt and I want this only in gui not in neovim.

For the gui vs non gui behaviour you can add callbacks to the UIEnter autocommand, that way it is only executed for the GUI.

equalsraf avatar Feb 05 '24 16:02 equalsraf