mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-08 16:50:59 +00:00
Bind Ctrl-/ (CtrlUnderscore) in comment plugin
This commit is contained in:
parent
f5dc0a51ba
commit
891b117a33
3 changed files with 13 additions and 10 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue