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
27e26bd1
Commit
27e26bd1
authored
9 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Patches
Plain Diff
[vim] Add g:Fzf_launcher for funcrefs (#212)
parent
305ec3b3
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.md
+2
-1
2 additions, 1 deletion
README.md
plugin/fzf.vim
+3
-2
3 additions, 2 deletions
plugin/fzf.vim
with
5 additions
and
3 deletions
README.md
+
2
−
1
View file @
27e26bd1
...
...
@@ -294,7 +294,8 @@ of the selected items.
|
`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 (Only used in GVim) |
|
`launcher`
| string | External terminal emulator to start fzf with (GVim only) |
|
`launcher`
| funcref | Function for generating
`launcher`
string (GVim only) |
_However on Neovim
`fzf#run`
is asynchronous and does not return values so you
should use
`sink`
or
`sink*`
to process the output from fzf._
...
...
This diff is collapsed.
Click to expand it.
plugin/fzf.vim
+
3
−
2
View file @
27e26bd1
...
...
@@ -206,8 +206,9 @@ function! s:execute(dict, command, temps)
call
s:pushd
(
a:dict
)
silent
!
!
clear
2
>
/dev/
null
if
has
(
'gui_running'
)
let
launcher
=
get
(
a:dict
,
'launcher'
,
get
(
g
:,
'fzf_launcher'
,
s:launcher
))
let
command
=
printf
(
launcher
,
"'"
.
substitute
(
a:command
,
"'"
,
"'\"'\"'"
,
'g'
).
"'"
)
let
Launcher
=
get
(
a:dict
,
'launcher'
,
get
(
g
:,
'Fzf_launcher'
,
get
(
g
:,
'fzf_launcher'
,
s:launcher
)))
let
fmt
=
type
(
Launcher
)
==
2
?
call
(
Launcher
,
[])
:
Launcher
let
command
=
printf
(
fmt
,
"'"
.
substitute
(
a:command
,
"'"
,
"'\"'\"'"
,
'g'
).
"'"
)
else
let
command
=
a:command
endif
...
...
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