From cd5ac21256d5feee4ab1eda89c3a1e4196eed4b2 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Wed, 27 Feb 2019 08:13:00 -0600 Subject: [PATCH] Update file tree key binding (#2630) * Update file tree key binding * Update doc --- config/plugins/vimfiler.vim | 2 +- doc/SpaceVim.txt | 8 ++++++++ docs/cn/documentation.md | 17 +++++++++-------- docs/documentation.md | 1 + 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/config/plugins/vimfiler.vim b/config/plugins/vimfiler.vim index 93e9447a8..07802c920 100644 --- a/config/plugins/vimfiler.vim +++ b/config/plugins/vimfiler.vim @@ -103,7 +103,7 @@ function! s:vimfilerinit() nmap V (vimfiler_clear_mark_all_lines) nmap i (vimfiler_switch_to_history_directory) nmap (vimfiler_switch_to_other_window) - nmap (vimfiler_redraw_screen) + nmap (vimfiler_redraw_screen) nmap (vimfiler_smart_h) nmap (vimfiler_smart_l) nmap <2-LeftMouse> (vimfiler_expand_or_edit) diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 6063e4ac2..cdd2baf11 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -1162,6 +1162,14 @@ MAPPINGS normal SPC l m R run one maven goal normal SPC l m t run maven test + Gradle key bindings: + + Mode Key Function + ------------------------------------------------------------- + normal SPC l g b run gradle clean build + normal SPC l g B run gradle build + normal SPC l g t run gradle test + Jump key bindings: Mode Key Function diff --git a/docs/cn/documentation.md b/docs/cn/documentation.md index 9fb041e98..13bbfa861 100644 --- a/docs/cn/documentation.md +++ b/docs/cn/documentation.md @@ -1120,18 +1120,19 @@ SpaceVim 的文件树提供了版本控制信息的接口,但是这一特性 | `` / `j` | 向下移动光标 | | `` / `k` | 向上移动光标 | | `` / `l` | 展开目录,或打开文件 | -| `Ctrl-j` | 未使用 | -| `Ctrl-l` | 未使用 | -| `E` | 未使用 | +| `N` | 在光标位置新建文件 | +| `y y` | 复制光标下文件路径至系统剪切板 | +| `y Y` | 复制光标下文件至系统剪切板 | +| `P` | 在光标位置黏贴文件 | | `.` | 切换显示隐藏文件 | -| `sv` | 分屏编辑该文件 | -| `sg` | 垂直分屏编辑该文件 | +| `s v` | 分屏编辑该文件 | +| `s g` | 垂直分屏编辑该文件 | | `p` | 预览文件 | | `i` | 切换至文件夹历史 | | `v` | 快速查看 | -| `gx` | 使用相关程序执行该文件(TODO) | -| `'` | 切换标签 | -| `V` | 标记该文件 | +| `g x` | 使用相关程序执行该文件 | +| `'` | 标记光标下的文件(夹) | +| `V` | 清除所有标记 | | `Ctrl`+`r` | 刷新页面 | ##### 文件树中打开文件 diff --git a/docs/documentation.md b/docs/documentation.md index 1784c524c..9ccae452e 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -1155,6 +1155,7 @@ Navigation is centered on the `hjkl` keys with the hope of providing a fast navi | Key Bindings | Descriptions | | ------------------ | ------------------------------------------------- | | `` / `SPC f t` | Toggle file explorer | +| **with in file tree** | | | `` / `h` | go to parent node and collapse expanded directory | | `` / `j` | select next file or directory | | `` / `k` | select previous file or directory |