mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
Added a simple recipe for searching through man pages.
11
Examples.md
11
Examples.md
@@ -48,6 +48,7 @@ Table of Contents
|
||||
* [Docker](#docker)
|
||||
* [buku](#buku)
|
||||
* [i3](#i3)
|
||||
* [man pages](#man-pages)
|
||||
|
||||
|
||||
|
||||
@@ -1214,4 +1215,14 @@ Display in a floating window. Add this to your i3 config file (this example uses
|
||||
```
|
||||
bindsym $mod+d exec --no-startup-id termite -t 'fzf-menu' -e 'i3-dmenu-desktop --dmenu=fzf'
|
||||
for_window [title="fzf-menu"] floating enable
|
||||
```
|
||||
|
||||
### Man pages
|
||||
Quickly display a man page using fzf and fd. `MANPATH` has to be set to a single directory (usually `/usr/share/man`).
|
||||
Accepts an optional argument for the manual section (defaults to 1).
|
||||
|
||||
```sh
|
||||
man-find() {
|
||||
f=$(fd . $MANPATH/man${1:-1} -t f -x echo {/.} | fzf) && man $f
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user