Skip to content

v0.9.0 Local keybinding for specific file type (apply if name contains substr)

Compare
Choose a tag to compare
@LintaoAmons LintaoAmons released this 06 Aug 15:35
· 124 commits to main since this release
  "localKeys": [ // local keymapping for specific type of file
    {
      "filenameContains": ["gp"],
      "LocalKeys": [
        {
          "cmd": "<CMD>GpChatRespond<CR>",
          "key": "<C-k>k",
          "modes": ["n", "i", "v"]
        }
      ]
    }
  ]

New .localKeys section to create local only keymapping

My usecase is when I create file named gp.md, gp4.md, eng-trans.md, eng-prov.md,
I will bind GpChatRespond to the current buffer