Saving colorscheme to session file on exit
Nobody has claimed this yet.
- Dominant language
- Vim Script
- Stars
- 1.9k
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
Is there a way you could recommend that I save my current colorscheme to the session file before exiting vim? With regular old :mksession I can do it pretty easily with an autocmd that triggers on SessionWritePost where I write an extra line to the session file. This doesn't seem to work with vim-obsession.
I noticed there's an g:obsession_append variable in the plugin source, but I don't think it will work for something dynamic like the current colorscheme.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the plugin source where g:obsession_append and session updates are handled, then compare that flow with Vim's SessionWritePost behavior and :mksession. Confirm how the current colorscheme could be represented dynamically; done when a session written on exit preserves the colorscheme without relying on a fixed append value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100