Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: option to show previously opened files on start #1091

Open
manid2 opened this issue Jan 31, 2024 · 3 comments
Open

Feature request: option to show previously opened files on start #1091

manid2 opened this issue Jan 31, 2024 · 3 comments

Comments

@manid2
Copy link

manid2 commented Jan 31, 2024

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.

@equalsraf
Copy link
Owner

Hi @manid2

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

@manid2
Copy link
Author

manid2 commented Feb 5, 2024

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.

@equalsraf
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants