1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:20:06 +08:00

Add SPC l c and SPC l u for lang#markdown layer #4163

This commit is contained in:
Lin Kun 2021-04-05 14:47:46 +08:00 committed by GitHub
parent 7ab985d96a
commit f56854c5d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -103,6 +103,8 @@ function! s:mappings() abort
\ 'call call('
\ . 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','u'], 'UpdateToc', 'update content', 1)
endfunction
function! s:generate_remarkrc() abort

View File

@ -95,6 +95,8 @@ npm install --global prettier
| 快捷键 | 模式 | 按键描述 |
| --------- | ------------- | --------------------------------------- |
| `SPC b f` | Normal | 格式化当前文件 |
| `SPC l c` | Normal/Visual | 在光标处创建目录 |
| `SPC l k` | Normal/Visual | 为光标下的单词或者选中文本增加 URL 链接 |
| `SPC l K` | Normal/Visual | 为光标下的单词或者选中文本增加图片链接 |
| `SPC l u` | Normal/Visual | 更新目录 |
| `SPC l p` | Normal | 通过浏览器实时预览当前文件 |

View File

@ -95,6 +95,8 @@ If you don't want to install php, you can use [mdctags](https://github.com/wsdje
| Key bindings | mode | Descriptions |
| ------------ | ------------- | ------------------------------------------------------ |
| `SPC b f` | Normal | Format current buffer |
| `SPC l c` | Normal/Visual | Create content at cursor |
| `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 u` | Normal/Visual | Update content |
| `SPC l p` | Normal | Real-time markdown preview |