stevearc / resession.nvim

A replacement for mksession with a better API
MIT License
175 stars 13 forks source link

feature request: separate session "key" and name #50

Closed willothy closed 4 months ago

willothy commented 4 months ago

Did you check existing requests?

Describe the feature

I think it would be great to have the displayed session name separate from the "key" that keeps track of the session when it's stored. Currently, if I have multiple directories with the same name, their sessions will clobber each other. A workaround for this is to use full paths for sessions, but then all sessions show as _home_willothy_path_to_project which is not ideal. I think that sessions should be tracked by working directory by default instead of by name, with the option to customize that "key" via a config option or hook to add things like git branch.

Edit: a custom format handler for ui-select would probably accomplish the same goal in a simpler way lol

Provide background

No response

What is the significance of this feature?

nice to have

Additional details

Happy to work on a PR for this, just figured I'd open an issue first to discuss.

willothy commented 4 months ago

I don't think this is necessary, I ended up just writing a custom select function in my config.