Change color on entering/leaving modes
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Is your feature request related to a problem? Please describe.
I asked this question on SO, but did not get any answers, so thought I'd try my luck here.
Describe the solution you'd like
I want to make it visually OBVIOUS what mode I am presently in by programmatically changing color theme whenever I change modes (in particular normal <-> insert). If it's possible already then I'd appreciate an outline of the solution. If it's not possible, then please consider adding required functionality.
Describe alternatives you've considered
As described in the link, in normal vim I can change colors by listening to events with the following sort of syntax:
autocmd InsertEnter * colorscheme industry | set cursorline | highlight CursorLine guibg=darkgrey ctermbg=darkgrey
autocmd InsertLeave * colorscheme torte
However, I don't think that these sorts of features are available in vscode vim. I'd also looked into using VSCode features BUT (i) I don't know if I can trigger a generic action on the event of vscode vim changeing modes, and (ii) even if I could, I cannot find a vscode action to programmatically change the theme (the closest I can find is "command":"workbench.action.selectTheme", but that just opens the menu to select a theme, and I want the theme switched automatically.
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 by checking how VSCodeVim exposes or handles mode-change events, then investigate whether VS Code provides an API for automatic theme changes beyond the mentioned workbench.action.selectTheme command. Done means establishing whether normal-to-insert transitions can reliably trigger a theme change, or documenting the limitation if they cannot.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100