Skip to content
Myr

Re-org fzf part. Doc on using fd with Emacs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Chen Bin · committed by David Peter · parent 2a1ee0b · Browse files · 1 file+15 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−1 removed

  • other:+15 added−1 removed

1 file+15 added−1 removed

modified:README.md+15 added-1 removed
389 unmodified lines
390```391Here, the `-0` option tells *fd* to separate search results by the NULL character (instead of392newlines). In the same way, the `-0` option of `xargs` tells it to read the input in this way.393394### Using fd with `fzf`394### Integration with other programs395396#### Using fd with `fzf`397398You can use *fd* to generate input for the command-line fuzzy finder [fzf](https://github.com/junegunn/fzf):399``` bash400export FZF_DEFAULT_COMMAND='fd --type file'401export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
12 unmodified lines
414export FZF_DEFAULT_OPTS="--ansi"415```416417For more details, see the [Tips section](https://github.com/junegunn/fzf#tips) of the fzf README.418419#### Using fd with `emacs`420421Emacs package [find-file-in-project](https://github.com/technomancy/find-file-in-project) can use *fd* to find files in project.422423Setup in simple. After installing `find-file-in-project`, you only insert one line `(setq ffip-use-rust-fd t)` into `~/.emacs` or `~/.emacs.d/init.el`.424425No further setup is required and it should work out of box on Window/Linux/Mac.426427In Emacs, please run `M-x find-file-in-project-by-selected` to find files matching glob pattern.428429Or run `M-x find-file-in-project` to list all available file in project.