neovim-qt
neovim-qt copied to clipboard
Feature request: option to show previously opened files on start
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.
Hi @manid2
This is best addressed by existing Neovim features. I think what you are describing is already covered by :mksession
.
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.
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.