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
797f42ec
Commit
797f42ec
authored
10 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Patches
Plain Diff
Update README
parent
8385a55b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+13
-13
13 additions, 13 deletions
README.md
with
13 additions
and
13 deletions
README.md
+
13
−
13
View file @
797f42ec
<img src="https://raw.githubusercontent.com/junegunn/i/master/fzf.png" height="170" alt="fzf - a command-line fuzzy finder"> [](https://travis-ci.org/junegunn/fzf)
<img src="https://raw.githubusercontent.com/junegunn/i/master/fzf.png" height="170" alt="fzf - a command-line fuzzy finder"> [](https://travis-ci.org/junegunn/fzf)
<a href="http://flattr.com/thing/3115381/junegunnfzf-on-GitHub" target="_blank"><img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a>
===
fzf is a general-purpose command-line fuzzy finder.
...
...
@@ -16,7 +16,7 @@ Pros
-
The most comprehensive feature set
-
Try
`fzf --help`
and be surprised
-
Batteries included
-
Vim plugin, key bindings and fuzzy auto-completion
-
Vim
/Neovim
plugin, key bindings and fuzzy auto-completion
Installation
------------
...
...
@@ -89,7 +89,7 @@ while. Please follow the instruction below depending on the installation
method.
-
git:
`cd ~/.fzf && git pull && ./install`
-
brew:
`brew
update && brew upgrade fzf && $(brew info fzf | grep /install)
`
-
brew:
`brew
reinstall --HEAD fzf
`
-
vim-plug:
`:PlugUpdate fzf`
Usage
...
...
@@ -153,7 +153,8 @@ fish.
-
`CTRL-T`
- Paste the selected file path(s) into the command line
-
`CTRL-R`
- Paste the selected command from history into the command line
-
Sort is disabled by default. Press
`CTRL-R`
again to toggle sort.
-
Sort is disabled by default to respect chronological ordering
-
Press
`CTRL-R`
again to toggle sort
-
`ALT-C`
- cd into the selected directory
If you're on a tmux session,
`CTRL-T`
will launch fzf in a new split-window. You
...
...
@@ -301,9 +302,8 @@ let g:fzf_launcher = 'urxvt -geometry 120x30 -e sh -c %s'
If you're running MacVim on OSX, I recommend you to use iTerm2 as the launcher.
Refer to the
[
this wiki
page
](
https://github.com/junegunn/fzf/wiki/On-MacVim-with-iTerm2
)
to see
how to set up.
page
](
https://github.com/junegunn/fzf/wiki/On-MacVim-with-iTerm2
)
to see how
to set up.
#### `fzf#run([options])`
...
...
@@ -364,22 +364,22 @@ handy mapping that selects an open buffer.
```
vim
" List of buffers
function
!
B
uf
L
ist
()
function
!
s:b
uf
l
ist
()
redir
=>
ls
silent
ls
redir
END
return
split
(
ls
,
'\n'
)
endfunction
function
!
B
uf
O
pen
(
e
)
execute
'buffer
'
.
matchstr
(
a:e
,
'^[ 0-9]*'
)
function
!
s:b
uf
o
pen
(
e
)
execute
'buffer
'
matchstr
(
a:e
,
'^[ 0-9]*'
)
endfunction
nnoremap
<
silent
>
<
Leader
><
Enter
>
:
call
fzf#run
({
\
'source'
:
reverse
(
B
uf
L
ist
()),
\
'sink'
:
function
(
'
B
uf
O
pen'
),
\
'source'
:
reverse
(
<
sid
>
b
uf
l
ist
()),
\
'sink'
:
function
(
'
<sid>b
uf
o
pen'
),
\
'options'
:
'+m'
,
\
'down'
:
'40%'
\
'down'
:
len
(<
sid
>
buflist
())
+
2
\
})<
CR
>
```
...
...
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