mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:20:03 +08:00
add(core): add key binding to toggle auto parens mode
Problem: there is no key binding to toggle auto parens mode Solution: add `SPC t P` to toggle auto parens mode close https://github.com/SpaceVim/SpaceVim/issues/4312
This commit is contained in:
parent
483e3c0e29
commit
a319735129
@ -260,7 +260,9 @@ function! SpaceVim#layers#ui#config() abort
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'p'],
|
||||
\ 'call SpaceVim#layers#core#statusline#toggle_mode("paste-mode")',
|
||||
\ 'toggle-paste-mode', 1)
|
||||
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'P'],
|
||||
\ 'DelimitMateSwitch',
|
||||
\ 'toggle-auto-parens-mode', 1)
|
||||
|
||||
call SpaceVim#mapping#space#def('nnoremap', ['t', 'l'], 'setlocal list!',
|
||||
\ 'toggle-hidden-listchars', 1)
|
||||
|
@ -516,6 +516,7 @@ SpaceVim 在终端下默认使用了真色,因此使用之前需要确认下
|
||||
| `SPC t b` | 切换背景色 |
|
||||
| `SPC t c` | 切换 conceal 模式 |
|
||||
| `SPC t p` | 切换 paste 模式 |
|
||||
| `SPC t P` | 切换 auto parens 模式 |
|
||||
| `SPC t t` | 打开 Tab 管理器 |
|
||||
| `SPC T ~` | 显示/隐藏 Buffer 结尾空行行首的 `~` |
|
||||
| `SPC T F` | 切换全屏(TODO) |
|
||||
|
@ -570,6 +570,7 @@ Some UI indicators can be toggled on and off (toggles start with t and T):
|
||||
| `SPC t b` | toggle background |
|
||||
| `SPC t c` | toggle conceal |
|
||||
| `SPC t p` | toggle paste mode |
|
||||
| `SPC t P` | toggle auto parens mode |
|
||||
| `SPC t t` | open tabs manager |
|
||||
| `SPC T ~` | display ~ in the fringe on empty lines |
|
||||
| `SPC T F` | toggle frame fullscreen |
|
||||
|
Loading…
Reference in New Issue
Block a user