mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +08:00
feat(markdown): add a new key binding for RemoveToc
This commit is contained in:
parent
2c8ebf9c40
commit
b1a3c0510c
@ -149,6 +149,7 @@ function! s:mappings() abort
|
||||
\ . string(function('s:run_code_in_block'))
|
||||
\ . ', [])', 'run code in block', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','c'], 'GenTocGFM', 'create content at cursor', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','C'], 'RemoveToc', 'remove content', 1)
|
||||
call SpaceVim#mapping#space#langSPC('nmap', ['l','u'], 'UpdateToc', 'update content', 1)
|
||||
endfunction
|
||||
|
||||
|
@ -96,7 +96,9 @@ npm install --global prettier
|
||||
| --------- | ------------- | --------------------------------------- |
|
||||
| `SPC b f` | Normal | 格式化当前文件 |
|
||||
| `SPC l c` | Normal/Visual | 在光标处创建目录 |
|
||||
| `SPC l C` | Normal/Visual | 删除目录 |
|
||||
| `SPC l k` | Normal/Visual | 为光标下的单词或者选中文本增加 URL 链接 |
|
||||
| `SPC l K` | Normal/Visual | 为光标下的单词或者选中文本增加图片链接 |
|
||||
| `SPC l r` | Normal/Visual | 运行区块中的代码 |
|
||||
| `SPC l u` | Normal/Visual | 更新目录 |
|
||||
| `SPC l p` | Normal | 通过浏览器实时预览当前文件 |
|
||||
|
@ -96,7 +96,9 @@ If you don't want to install php, you can use [mdctags](https://github.com/wsdje
|
||||
| ------------ | ------------- | ------------------------------------------------------ |
|
||||
| `SPC b f` | Normal | Format current buffer |
|
||||
| `SPC l c` | Normal/Visual | Create content at cursor |
|
||||
| `SPC l C` | Normal/Visual | Remove content |
|
||||
| `SPC l k` | Normal/Visual | Add URL link for word under cursor or slected word |
|
||||
| `SPC l K` | Normal/Visual | Add picture link for word under cursor or slected word |
|
||||
| `SPC l r` | Normal/Visual | Run code in block |
|
||||
| `SPC l u` | Normal/Visual | Update content |
|
||||
| `SPC l p` | Normal | Real-time markdown preview |
|
||||
|
Loading…
Reference in New Issue
Block a user