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

Limit number of sessions with LoadSession #120

Open
NoahTheDuke opened this issue May 17, 2024 · 1 comment
Open

Limit number of sessions with LoadSession #120

NoahTheDuke opened this issue May 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@NoahTheDuke
Copy link

Describe the problem or limitation you are having
When I use "Load Session" from :SessionManager, it lists all of my saved sessions. I currently have 57 of them on my machine, which means I can't input a session number until I've scrolled to the end of the list. This means if the session I'm looking for is one of first, I have to remember to look for it before scrolling to the end. This is cumbersome and leads to errors when I forget about the scrolling behavior.

Describe the solution you'd like
I'd like to have a config option for setting a display limit of sessions. Maybe the most recent 10 or 20 or whatever. It could default to nil aka all of them, but having some method of limiting would be helpful for me.

Describe alternatives you've considered

  1. Do nothing. The current behavior is good actually, and I should get over it.
  2. Change the way the sessions are displayed so scrolling isn't so annoying (in a new buffer, pop up window, etc).
  3. Add a new option for "Load Latest Sessions" that only displays N most recent sessions.

Additional context
Screen Shot 2024-05-17 at 10 38 08 AM
Screen Shot 2024-05-17 at 10 38 32 AM

@NoahTheDuke NoahTheDuke added the enhancement New feature or request label May 17, 2024
@Shatur
Copy link
Owner

Shatur commented May 17, 2024

I agree with the suggestion. Maybe we should even delete oldest sessions.

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

No branches or pull requests

2 participants