VSCodeVim / VSCodeVim/Vim

change property using vim.normalModeKeyBindingsNonRecursiv

Open
#7,997 0 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.