Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fzf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
fzf
Commits
d5e72bf5
Unverified
Commit
d5e72bf5
authored
7 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Patches
Plain Diff
Update README-VIM: options as list (#896)
parent
5677e5e1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README-VIM.md
+10
-1
10 additions, 1 deletion
README-VIM.md
doc/fzf.txt
+9
-2
9 additions, 2 deletions
doc/fzf.txt
with
19 additions
and
3 deletions
README-VIM.md
+
10
−
1
View file @
d5e72bf5
...
...
@@ -99,13 +99,22 @@ following options.
|
`sink`
| string | Vim command to handle the selected item (e.g.
`e`
,
`tabe`
) |
|
`sink`
| funcref | Reference to function to process each selected item |
|
`sink*`
| funcref | Similar to
`sink`
, but takes the list of output lines at once |
|
`options`
| string
| Options to fzf |
|
`options`
| string
/list
| Options to fzf |
|
`dir`
| string | Working directory |
|
`up`
/
`down`
/
`left`
/
`right`
| number/string | Use tmux pane with the given size (e.g.
`20`
,
`50%`
) |
|
`window`
(
*Neovim only*
) | string | Command to open fzf window (e.g.
`vertical aboveleft 30new`
) |
|
`launcher`
| string | External terminal emulator to start fzf with (GVim only) |
|
`launcher`
| funcref | Function for generating
`launcher`
string (GVim only) |
`options`
entry can be either a string or a list. For simple cases, string
should suffice, but prefer to use list type if you're concerned about escaping
issues on different platforms.
```
vim
call
fzf#run
({
'options'
:
'--reverse --prompt "C:\\Program Files\\"'
})
call
fzf#run
({
'options'
:
[
'--reverse'
,
'--prompt'
,
'C:\Program Files\'
]})
```
`fzf#wrap`
----------
...
...
This diff is collapsed.
Click to expand it.
doc/fzf.txt
+
9
−
2
View file @
d5e72bf5
fzf.txt fzf Last change: April
1
2017
fzf.txt fzf Last change: April
28
2017
FZF - TABLE OF CONTENTS *fzf* *fzf-toc*
==============================================================================
...
...
@@ -125,7 +125,7 @@ following options.
`sink` | string | Vim command to handle the selected item (e.g. `e` , `tabe` )
`sink` | funcref | Reference to function to process each selected item
`sink*` | funcref | Similar to `sink` , but takes the list of output lines at once
`options` | string
| Options to fzf
`options` | string
/list
| Options to fzf
`dir` | string | Working directory
`up` / `down` / `left` / `right` | number/string | Use tmux pane with the given size (e.g. `20` , `50%` )
`window` (Neovim only) | string | Command to open fzf window (e.g. `vertical aboveleft 30new` )
...
...
@@ -133,6 +133,13 @@ following options.
`launcher` | funcref | Function for generating `launcher` string (GVim only)
---------------------------+---------------+--------------------------------------------------------------
`options` entry can be either a string or a list. For simple cases, string
should suffice, but prefer to use list type if you're concerned about escaping
issues on different platforms.
>
call fzf#run({'options': '--reverse --prompt "C:\\Program Files\\"'})
call fzf#run({'options': ['--reverse', '--prompt', 'C:\Program Files\']})
<
FZF#WRAP *fzf#wrap*
==============================================================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment