mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 20:20:05 +08:00
Update file tree key binding (#2630)
* Update file tree key binding * Update doc
This commit is contained in:
parent
32585019ca
commit
cd5ac21256
@ -103,7 +103,7 @@ function! s:vimfilerinit()
|
||||
nmap <buffer> V <Plug>(vimfiler_clear_mark_all_lines)
|
||||
nmap <buffer> i <Plug>(vimfiler_switch_to_history_directory)
|
||||
nmap <buffer> <Tab> <Plug>(vimfiler_switch_to_other_window)
|
||||
nmap <buffer> <C-r> <Plug>(vimfiler_redraw_screen)
|
||||
nmap <buffer> <C-l> <Plug>(vimfiler_redraw_screen)
|
||||
nmap <buffer> <Left> <Plug>(vimfiler_smart_h)
|
||||
nmap <buffer> <Right> <Plug>(vimfiler_smart_l)
|
||||
nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_expand_or_edit)
|
||||
|
@ -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
|
||||
|
@ -1120,18 +1120,19 @@ SpaceVim 的文件树提供了版本控制信息的接口,但是这一特性
|
||||
| `<Down>` / `j` | 向下移动光标 |
|
||||
| `<Up>` / `k` | 向上移动光标 |
|
||||
| `<Right>` / `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` | 刷新页面 |
|
||||
|
||||
##### 文件树中打开文件
|
||||
|
@ -1155,6 +1155,7 @@ Navigation is centered on the `hjkl` keys with the hope of providing a fast navi
|
||||
| Key Bindings | Descriptions |
|
||||
| ------------------ | ------------------------------------------------- |
|
||||
| `<F3>` / `SPC f t` | Toggle file explorer |
|
||||
| **with in file tree** | |
|
||||
| `<Left>` / `h` | go to parent node and collapse expanded directory |
|
||||
| `<Down>` / `j` | select next file or directory |
|
||||
| `<Up>` / `k` | select previous file or directory |
|
||||
|
Loading…
Reference in New Issue
Block a user