tpope / tpope/vim-obsession

Saving colorscheme to session file on exit

Open
#85 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.