mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-10 06:21:54 +08:00
50
README.md
50
README.md
@@ -48,31 +48,31 @@ Plug 'junegunn/fzf.vim'
|
|||||||
Commands
|
Commands
|
||||||
--------
|
--------
|
||||||
|
|
||||||
| Command | List |
|
| Command | List |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `Files [PATH]` | Files (similar to `:FZF`) |
|
| `Files [PATH]` | Files (similar to `:FZF`) |
|
||||||
| `GitFiles` | Git files (git ls-files) |
|
| `GitFiles [OPTS]` | Git files (git ls-files) |
|
||||||
| `GitFiles?` | Git files (git status) |
|
| `GitFiles?` | Git files (git status) |
|
||||||
| `Buffers` | Open buffers |
|
| `Buffers` | Open buffers |
|
||||||
| `Colors` | Color schemes |
|
| `Colors` | Color schemes |
|
||||||
| `Ag [PATTERN]` | [ag][ag] search result (`ALT-A` to select all, `ALT-D` to deselect all) |
|
| `Ag [PATTERN]` | [ag][ag] search result (`ALT-A` to select all, `ALT-D` to deselect all) |
|
||||||
| `Lines [QUERY]` | Lines in loaded buffers |
|
| `Lines [QUERY]` | Lines in loaded buffers |
|
||||||
| `BLines [QUERY]` | Lines in the current buffer |
|
| `BLines [QUERY]` | Lines in the current buffer |
|
||||||
| `Tags [QUERY]` | Tags in the project (`ctags -R`) |
|
| `Tags [QUERY]` | Tags in the project (`ctags -R`) |
|
||||||
| `BTags [QUERY]` | Tags in the current buffer |
|
| `BTags [QUERY]` | Tags in the current buffer |
|
||||||
| `Marks` | Marks |
|
| `Marks` | Marks |
|
||||||
| `Windows` | Windows |
|
| `Windows` | Windows |
|
||||||
| `Locate PATTERN` | `locate` command output |
|
| `Locate PATTERN` | `locate` command output |
|
||||||
| `History` | `v:oldfiles` and open buffers |
|
| `History` | `v:oldfiles` and open buffers |
|
||||||
| `History:` | Command history |
|
| `History:` | Command history |
|
||||||
| `History/` | Search history |
|
| `History/` | Search history |
|
||||||
| `Snippets` | Snippets ([UltiSnips][us]) |
|
| `Snippets` | Snippets ([UltiSnips][us]) |
|
||||||
| `Commits` | Git commits (requires [fugitive.vim][f]) |
|
| `Commits` | Git commits (requires [fugitive.vim][f]) |
|
||||||
| `BCommits` | Git commits for the current buffer |
|
| `BCommits` | Git commits for the current buffer |
|
||||||
| `Commands` | Commands |
|
| `Commands` | Commands |
|
||||||
| `Maps` | Normal mode mappings |
|
| `Maps` | Normal mode mappings |
|
||||||
| `Helptags` | Help tags <sup id="a1">[1](#helptags)</sup> |
|
| `Helptags` | Help tags <sup id="a1">[1](#helptags)</sup> |
|
||||||
| `Filetypes` | File types
|
| `Filetypes` | File types
|
||||||
|
|
||||||
- Most commands support `CTRL-T` / `CTRL-X` / `CTRL-V` key
|
- Most commands support `CTRL-T` / `CTRL-X` / `CTRL-V` key
|
||||||
bindings to open in a new tab, a new split, or in a new vertical split
|
bindings to open in a new tab, a new split, or in a new vertical split
|
||||||
|
|||||||
@@ -409,9 +409,9 @@ function! fzf#vim#gitfiles(args, ...)
|
|||||||
if v:shell_error
|
if v:shell_error
|
||||||
return s:warn('Not in git repo')
|
return s:warn('Not in git repo')
|
||||||
endif
|
endif
|
||||||
if a:args !~ '^?'
|
if a:args != '?'
|
||||||
return s:fzf(fzf#vim#wrap({
|
return s:fzf(fzf#vim#wrap({
|
||||||
\ 'source': 'git ls-files',
|
\ 'source': 'git ls-files '.a:args,
|
||||||
\ 'dir': root,
|
\ 'dir': root,
|
||||||
\ 'options': '-m --prompt "GitFiles> "'
|
\ 'options': '-m --prompt "GitFiles> "'
|
||||||
\}), a:000)
|
\}), a:000)
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ COMMANDS *fzf-vim-commands*
|
|||||||
Command | List ~
|
Command | List ~
|
||||||
-----------------+-------------------------------------------------------------------
|
-----------------+-------------------------------------------------------------------
|
||||||
`Files [PATH]` | Files (similar to `:FZF` )
|
`Files [PATH]` | Files (similar to `:FZF` )
|
||||||
`GitFiles` | Git files (git ls-files)
|
`GitFiles [OPTS]` | Git files (git ls-files)
|
||||||
`GitFiles?` | Git files (git status)
|
`GitFiles?` | Git files (git status)
|
||||||
`Buffers` | Open buffers
|
`Buffers` | Open buffers
|
||||||
`Colors` | Color schemes
|
`Colors` | Color schemes
|
||||||
|
|||||||
Reference in New Issue
Block a user