Bind Ctrl-/ (CtrlUnderscore) in comment plugin

This commit is contained in:
Zachary Yedidia
2020-06-18 17:18:34 -04:00
parent f5dc0a51ba
commit 891b117a33
3 changed files with 13 additions and 10 deletions

View File

@@ -143,5 +143,6 @@ end
function init()
config.MakeCommand("comment", comment, config.NoComplete)
config.TryBindKey("Alt-/", "lua:comment.comment", false)
config.TryBindKey("CtrlUnderscore", "lua:comment.comment", false)
config.AddRuntimeFile("comment", config.RTHelp, "help/comment.md")
end

View File

@@ -1,8 +1,10 @@
# Comment Plugin
The comment plugin provides auto commenting/uncommenting.
The default binding to comment/uncomment a line is `Alt-/`,
but you can easily modify that in your `bindings.json` file:
The default binding to comment/uncomment a line is `Alt-/`
and `CtrlUnderscore`, which is equivalent in most terminals
to `Ctrl-/`. You can easily modify that in your `bindings.json`
file:
```json
{