Skip to content

Conversation

@fleesk
Copy link
Contributor

@fleesk fleesk commented Jan 17, 2025

Added the option load_include_current, which defaults to false, to allow the currently opened session to be included in the load_session selection.

Use Case

This use case may be very specific to me. I often find myself straying from the files in the initial sesssion, such as changing something in my config while in a session specific to another project, and I end up doing entirely different things in buffers unrelated to the original project session.

Solution

  • The previously loaded session appears in the load_session UI if the new config option, load_include_current (should probably be renamed to something more succinct)
  • When re-loading the same session, it is not saved before reloading (as is usually the case when switching sessions), so I get back to where I started

Copy link
Owner

@Shatur Shatur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Left a few nitpicks.

Co-authored-by: Hennadii Chernyshchyk <[email protected]>
@fleesk
Copy link
Contributor Author

fleesk commented Jan 19, 2025

Thanks, I integrated your changes

@Shatur Shatur merged commit 270e235 into Shatur:master Jan 19, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants