Comments (6)
I'd also love to have the -u
/ -uu
as in ripgrep – it's annoying enough the first time you don't find something because it's in .gitignore, so it'd be nice if the UI to turn it off were consistent with other "modern unix tools" you're likely to have :-)
from fd.
Let's consider all of fd's current command-line options:
-
-a
/--absolute-path
=> not related to ripgrep -
-s
,--sensitive
=> ripgrep uses-s
,--case-sensitive
=> change to ripgrep's format -
-f
,--follow
=> ripgrep also uses--follow
, but uses-L
for the short flag (likefind
) => change to ripgrep's format -
-p
,--full-path
=> not related to ripgrep -
-H
,--hidden
=> ripgrep also uses--hidden
, there is no short flag -
-n
,--no-color
=> ripgrep uses--color never
because there are more options => we would need to implement--color always
and--color auto
(fd's default) first => for now, I'll leave this as-is. -
-I
,--no-ignore
=> ripgrep also uses--no-ignore
, there is no short flag
Considering ripgrep's options, there is
-
-u
,--unrestricted
: an alias for--no-ignore
=> could be implemented - two occurences of
-u
/--unrestricted
: an alias for--no-ignore --hidden
=> could be implemented - three occurences ...: not relevant for fd
from fd.
@sharkdp Using -L
for following/dereferencing (i.e., treating a symlink like the object that it points to) is rather common. And it's not uncommon that the single-letter option does not use the first letter of the option name:
- GNU ls has
-L, --dereference
and BSD ls also uses-L
for this purpose - GNU and BSD find both have
-L
and-follow
(the latter is deprecated) - GNU cp has
-L, --dereference
and BSD cp also uses-L
. - rsync has
-L, --copy-links
which behaves in a similar fashion.
I would thus like to suggest going with ripgrep's -L, --follow
.
(it's a bit of a stretch but one could even argue that curl's -L, --location
fits the pattern if you view redirects as symlinks).
from fd.
@epipping Fair points, you convinced me. Changed the action above.
from fd.
-L
is now the short-option for --follow
. --dereference
can be used as an alias.
from fd.
I would like to keep the command-line interface as clean and simple as possible (i.e., I don't want the -h
text to be several pages long), but adding -u
seems like a good idea. We could possible hide it from the standard -h
text and add it as a hidden option that would only be mentioned in a man page. It would be great if you could open a new ticket to track this.
from fd.
Related Issues (20)
- How do I convert this query from find to fd? HOT 2
- [BUG] LDAP groups are not recognized HOT 2
- Add `--ctime` (change time) filter option to `fd` HOT 16
- allow combining `-x` with `-X`
- [BUG] fd learns to take default color scheme HOT 2
- Wrap fd in a Python extension module HOT 1
- Requesting swap of --full-path and --absolute-path HOT 2
- edit: duplicate, please delete
- making --strip-cwd-prefix the default behavior HOT 1
- [BUG] fd --help is not colorized, but file names are colorized normally HOT 3
- Possible to render $HOME as ~ in fd output? HOT 2
- [BUG] `fd .` command can't detect .jpg files on Ubuntu HOT 1
- How to find a specific folder by name with something similar to `find -prune`? HOT 2
- Chained usage `fd ... -X fd ... [-X]` -- examples welcome in README? deeper support for chaining? HOT 4
- [BUG] Colorized output in `-l` despite `NO_COLOR=1` and `LS_COLORS=` HOT 1
- New .git Handling has no opt out HOT 16
- build error HOT 3
- Allow `--type dir` as an alias to `directory` due to how common it is
- [BUG] Including hidden files also includes (git)ignored files if the .gitignore is in the parent directory HOT 4
- [BUG] command execution (--exec) not working as expected HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fd.