mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 15:19:12 +08:00
Update doc for SPC f / (#3935)
This commit is contained in:
parent
ae0f4f3b6f
commit
f1bff22dd4
@ -1266,7 +1266,7 @@ SpaceVim 选项 `window_leader` 的值来设为其它按键:
|
||||
|
||||
| 快捷键 | 功能描述 |
|
||||
| -------------------- | ------------------------------------------------------ |
|
||||
| `SPC f /` | 使用 `find` 命令查找文件,支持参数提示 |
|
||||
| `SPC f /` | 使用 `find` 或者 `fd` 命令查找文件,支持参数提示 |
|
||||
| `SPC f b` | 跳至文件书签 |
|
||||
| `SPC f c` | copy current file to a different location(TODO) |
|
||||
| `SPC f C d` | 修改文件编码 unix -> dos |
|
||||
@ -1291,6 +1291,12 @@ SpaceVim 选项 `window_leader` 的值来设为其它按键:
|
||||
如果是使用 [scoop](https://github.com/lukesampson/scoop) 安装的这些工具,系统默认的 `C:\WINDOWS\system32` 中的命令会覆盖掉用户定义的 `$PATH`,
|
||||
解决方案是将 scoop 默认的可执行文件所在的文件夹放置在系统环境变量 `$PATH` 内 `C:\WINDOWS\system32` 的前方。
|
||||
|
||||
|
||||
按下 `SPC f /` 快捷键之后,会弹出搜索输入窗口,输入内容后回车,异步执行 `find` 或者 `fd` 命令,
|
||||
默认使用的是 `find` 命令,可以使用快捷键 `ctrl-e` 在不同工具之间切换。
|
||||
|
||||

|
||||
|
||||
#### Vim 和 SpaceVim 相关文件
|
||||
|
||||
SpaceVim 相关的快捷键均以 `SPC f v` 为前缀,这便于快速访问 SpaceVim 的配置文件:
|
||||
|
@ -829,8 +829,8 @@ If only one file buffer is opened, a file is opened in the active window, otherw
|
||||
| Key Bindings | Descriptions |
|
||||
| --------------- | ----------------------------------------- |
|
||||
| `l` / `<Enter>` | open file in one window |
|
||||
| `s g` | open file in an vertically split window |
|
||||
| `s v` | open file in an horizontally split window |
|
||||
| `s g` | open file in an vertically split window |
|
||||
| `s v` | open file in an horizontally split window |
|
||||
|
||||
## General usage
|
||||
|
||||
@ -1316,38 +1316,45 @@ Buffer manipulation commands (start with `b`):
|
||||
|
||||
#### Special Buffers
|
||||
|
||||
In SpaceVim, there are many special buffers, these buffers are created by plugins or SpaceVim itself. And these buffers are not listed.
|
||||
In SpaceVim, there are many special buffers,
|
||||
these buffers are created by plugins or SpaceVim itself.
|
||||
And these buffers are not listed.
|
||||
|
||||
#### Files manipulations key bindings
|
||||
|
||||
Files manipulation commands (start with f):
|
||||
|
||||
| Key Bindings | Descriptions |
|
||||
| ------------ | --------------------------------------------------------- |
|
||||
| `SPC f /` | Find files with `find` command |
|
||||
| `SPC f b` | go to file bookmarks |
|
||||
| `SPC f c` | copy current file to a different location(TODO) |
|
||||
| `SPC f C d` | convert file from unix to dos encoding |
|
||||
| `SPC f C u` | convert file from dos to unix encoding |
|
||||
| `SPC f D` | delete a file and the associated buffer with confirmation |
|
||||
| `SPC f E` | open a file with elevated privileges (sudo layer) (TODO) |
|
||||
| `SPC f W` | save a file with elevated privileges (sudo layer) |
|
||||
| `SPC f f` | open file |
|
||||
| `SPC f F` | try to open the file under point |
|
||||
| `SPC f o` | Find current file in file tree |
|
||||
| `SPC f R` | rename the current file(TODO) |
|
||||
| `SPC f s` | save a file |
|
||||
| `SPC f S` | save all files |
|
||||
| `SPC f r` | open a recent file |
|
||||
| `SPC f t` | toggle file tree side bar |
|
||||
| `SPC f T` | show file tree side bar |
|
||||
| `SPC f d` | toggle disk manager in Windows OS |
|
||||
| `SPC f y` | show and copy current file absolute path in the cmdline |
|
||||
| Key Bindings | Descriptions |
|
||||
| ------------ | ----------------------------------------------------------------------- |
|
||||
| `SPC f /` | Find files with `find` or [`fd`](https://github.com/sharkdp/fd) command |
|
||||
| `SPC f b` | go to file bookmarks |
|
||||
| `SPC f c` | copy current file to a different location(TODO) |
|
||||
| `SPC f C d` | convert file from unix to dos encoding |
|
||||
| `SPC f C u` | convert file from dos to unix encoding |
|
||||
| `SPC f D` | delete a file and the associated buffer with confirmation |
|
||||
| `SPC f E` | open a file with elevated privileges (sudo layer) (TODO) |
|
||||
| `SPC f W` | save a file with elevated privileges (sudo layer) |
|
||||
| `SPC f f` | open file |
|
||||
| `SPC f F` | try to open the file under point |
|
||||
| `SPC f o` | Find current file in file tree |
|
||||
| `SPC f R` | rename the current file(TODO) |
|
||||
| `SPC f s` | save a file |
|
||||
| `SPC f S` | save all files |
|
||||
| `SPC f r` | open a recent file |
|
||||
| `SPC f t` | toggle file tree side bar |
|
||||
| `SPC f T` | show file tree side bar |
|
||||
| `SPC f d` | toggle disk manager in Windows OS |
|
||||
| `SPC f y` | show and copy current file absolute path in the cmdline |
|
||||
|
||||
**NOTE:** If you are using window, you need to install [findutils](https://www.gnu.org/software/findutils/) or [fd](https://github.com/sharkdp/fd).
|
||||
If you are using [scoop](https://github.com/lukesampson/scoop) to install packages, the commands in `C:\WINDOWS\system32` will override User path.
|
||||
so you need to put the scoop binary PATH before all the windows `C:\WINDOWS\system32` PATH.
|
||||
|
||||
After pressing `SPC f /`, the find window will be opened. It is going to run `find` or `fd` command asynchronously.
|
||||
By default, `find` is the default tool, you can use `ctrl-e` to switch tools.
|
||||
|
||||

|
||||
|
||||
#### Vim and SpaceVim files
|
||||
|
||||
Convenient key bindings are located under the prefix `SPC f v` to quickly navigate between Vim and SpaceVim specific files.
|
||||
@ -1401,17 +1408,17 @@ The above key bindings are only part of fuzzy finder layers, please read the lay
|
||||
|
||||
| Feature | denite | unite | leaderf | ctrlp | fzf |
|
||||
| ------------------ | :----: | :---: | :-----: | :---: | --- |
|
||||
| CustomKeyMaps menu | yes | yes | yes | no | no |
|
||||
| AddedPlugins menu | yes | yes | yes | no | no |
|
||||
| register | yes | yes | yes | yes | yes |
|
||||
| CustomKeyMaps menu | yes | yes | yes | no | no |
|
||||
| AddedPlugins menu | yes | yes | yes | no | no |
|
||||
| register | yes | yes | yes | yes | yes |
|
||||
| file | yes | yes | yes | yes | yes |
|
||||
| yank history | yes | yes | yes | no | yes |
|
||||
| jump | yes | yes | yes | yes | yes |
|
||||
| location list | yes | yes | yes | no | yes |
|
||||
| yank history | yes | yes | yes | no | yes |
|
||||
| jump | yes | yes | yes | yes | yes |
|
||||
| location list | yes | yes | yes | no | yes |
|
||||
| outline | yes | yes | yes | yes | yes |
|
||||
| message | yes | yes | yes | no | yes |
|
||||
| quickfix list | yes | yes | yes | yes | yes |
|
||||
| resume windows | yes | yes | yes | no | no |
|
||||
| message | yes | yes | yes | no | yes |
|
||||
| quickfix list | yes | yes | yes | yes | yes |
|
||||
| resume windows | yes | yes | yes | no | no |
|
||||
|
||||
**Key bindings within fuzzy finder buffer**
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user