change property using vim.normalModeKeyBindingsNonRecursiv
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Would be nice to use a command with leader key to change settings property.
Describe the solution you'd like
For instance, I would like to configure a way to toggle the property vim.useCtrlKeys with something like that:
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["<leader>", "c", "d"],
"settings": [{name: "vim.useCtrlKeys", value: true}]
"statusMessage": "vim.useCtrlKeys is true"
},
{
"before": ["<leader>", "c", "u"],
"settings": [{name: "vim.useCtrlKeys", value: false}]
"statusMessage": "vim.useCtrlKeys is false"
},
]
The statusMessage would be an option attribute and the message it self would appear in the status bar for a brief period of time.
I think that would provide whole new level of control.
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 tracing how vim.normalModeKeyBindingsNonRecursive settings are parsed and executed. Define the requested settings actions and statusMessage behavior, then verify that the example bindings can toggle vim.useCtrlKeys and display the resulting message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100