Skip to content
Myr

fix(README.md): as-tree is unmaintained, fixes #1040

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

authored by sonke · committed by sonke · parent fc240f7 · Browse files · 1 file+11 added−9 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+11 added−9 removed

  • other:+11 added−9 removed

1 file+11 added−9 removed

modified:README.md+11 added-9 removed
486 unmodified lines
487`M-x find-file-in-project` to list all available files in the project.488489### Printing the output as a tree490491To format the output of `fd` similar to the `tree` command, install [`as-tree`] and pipe the output492of `fd` to `as-tree`:491To format the output of `fd` as a file-tree you can use the `tree` command with492`--fromfile`:493```bash494fd | as-tree494❯ fd | tree --fromfile495```496497This can be more useful than running `tree` by itself because `tree` does not ignore any files by498default, nor does it support as rich a set of options as `fd` does to control what to print:497This can be more useful than running `tree` by itself because `tree` does not498ignore any files by default, nor does it support as rich a set of options as499`fd` does to control what to print:500```bash500❯ fd --extension rs | as-tree501❯ fd --extension rs | tree --fromfile502.503├── build.rs504└── src505 ├── app.rs506 └── error.rs507```508508For more information about `as-tree`, see [the `as-tree` README][`as-tree`].509On bash and similar you can simply create an alias:510```bash511❯ alias as-tree='tree --fromfile'512```513510[`as-tree`]: https://github.com/jez/as-tree511514### Using fd with `xargs` or `parallel`515516Note that `fd` has a builtin feature for [command execution](#command-execution) with517its `-x`/`--exec` and `-X`/`--exec-batch` options. If you prefer, you can still use
197 unmodified lines