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: Open session on new tab #19

Open
caenrique opened this issue Oct 21, 2021 · 2 comments
Open

Feature: Open session on new tab #19

caenrique opened this issue Oct 21, 2021 · 2 comments

Comments

@caenrique
Copy link

I usually want to open another project without leaving the current one, and I do that with tabs.
I thought that using the built-in mappings of Telescope for opening in new tab would work, but it did open the session file instead of loading it 😅
Instead I have to create a new tab and then call :SearchSession or :Telescope session-lens search_session
It would be nice to have a mapping for that in the picker :)

@caenrique
Copy link
Author

I noticed that this doesn't respect sessionoptions because I don't have tabpages included and RestoreSession works as expected, loading without affecting the other tabs, but SearchSession removes all other buffers and tabs I have open

@rmagatti
Copy link
Owner

rmagatti commented Nov 4, 2021

Hey @caenrique it is actually that session-lens was not really built to consider tabs as something other than just tabs in the same project. If you check the code it actually does a vim.cmd[[%bd!]] to close all buffers so it can load the new session cleanly.

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