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
b4c4a642
Commit
b4c4a642
authored
8 years ago
by
Junegunn Choi
Browse files
Options
Downloads
Patches
Plain Diff
Update README
Close #560, #561
parent
02316178
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
+20
-19
20 additions, 19 deletions
README.md
with
20 additions
and
19 deletions
README.md
+
20
−
19
View file @
b4c4a642
...
...
@@ -151,6 +151,25 @@ Many useful examples can be found on [the wiki
page
](
https://github.com/junegunn/fzf/wiki/examples
)
. Feel free to add your
own as well.
`fzf-tmux` script
-----------------
[
fzf-tmux
](
bin/fzf-tmux
)
is a bash script that opens fzf in a tmux pane.
```
sh
# usage: fzf-tmux [-u|-d [HEIGHT[%]]] [-l|-r [WIDTH[%]]] [--] [FZF OPTIONS]
# (-[udlr]: up/down/left/right)
# select git branches in horizontal split below (15 lines)
git branch | fzf-tmux
-d
15
# select multiple words in vertical split on the left (20% of screen width)
cat
/usr/share/dict/words | fzf-tmux
-l
20%
--multi
--reverse
```
It will still work even when you're not on tmux, silently ignoring
`-[udlr]`
options, so you can invariably use
`fzf-tmux`
in your scripts.
Key bindings for command line
-----------------------------
...
...
@@ -163,6 +182,7 @@ fish.
-
Sort is disabled by default to respect chronological ordering
-
Press
`CTRL-R`
again to toggle sort
-
`ALT-C`
- cd into the selected directory
-
Set
`FZF_ALT_C_COMMAND`
to override the default command
If you're on a tmux session, fzf will start in a split pane. You may disable
this tmux integration by setting
`FZF_TMUX`
to 0, or change the height of the
...
...
@@ -172,25 +192,6 @@ If you use vi mode on bash, you need to add `set -o vi` *before* `source
~/.fzf.bash`
in your .bashrc, so that it correctly sets up key bindings for vi
mode.
`fzf-tmux` script
-----------------
[
fzf-tmux
](
bin/fzf-tmux
)
is a bash script that opens fzf in a tmux pane.
```
sh
# usage: fzf-tmux [-u|-d [HEIGHT[%]]] [-l|-r [WIDTH[%]]] [--] [FZF OPTIONS]
# (-[udlr]: up/down/left/right)
# select git branches in horizontal split below (15 lines)
git branch | fzf-tmux
-d
15
# select multiple words in vertical split on the left (20% of screen width)
cat
/usr/share/dict/words | fzf-tmux
-l
20%
--multi
--reverse
```
It will still work even when you're not on tmux, silently ignoring
`-[udlr]`
options, so you can invariably use
`fzf-tmux`
in your scripts.
Fuzzy completion for bash and zsh
---------------------------------
...
...
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