fd
watchexec
fd | watchexec | |
---|---|---|
184 | 21 | |
34,309 | 5,403 | |
- | 1.1% | |
8.7 | 8.6 | |
about 1 month ago | 10 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fd
-
Hyperfine: A command-line benchmarking tool
Perhaps interesting (for some) to note that hyperfine is from the same author as at least a few other "ne{w,xt} generation" command line tools (that could maybe be seen as part of "rewrite it in Rust", but I don't want to paint the author with a brush they disagree with!!): fd (find alternative; https://github.com/sharkdp/fd), bat ("supercharged version of the cat command"; https://github.com/sharkdp/bat), and hexyl (hex viewer; https://github.com/sharkdp/hexyl). (And certainly others I've missed!)
Pointing this out because I myself appreciate comments that do this.
For myself, `fd` is the one most incorporated into my own "toolbox" -- used it this morning prior to seeing this thread on hyperfine! So, thanks for all that, sharkdp if you're reading!
Ok, end OT-ness.
-
One-Liner for Finding Typos
However, if it catches too many typos in changelogs/README instead of the actual code, try using the fd command to specify file extensions or exclude directories. For example, the following command searches only for .cr files and excludes the lib directory:
-
Command Line Tools I Like (2022)
Oh right, we didn't know this, most of the tools install guides have nix-env like fd, lychee, gtrash, etc and others we listed which we just use for installation.
https://github.com/lycheeverse/lychee?tab=readme-ov-file#nix...
https://github.com/sharkdp/fd?tab=readme-ov-file#on-nixos--v...
https://github.com/umlx5h/gtrash?tab=readme-ov-file#nixpkgs-...
- fd - A simple, fast and user-friendly alternative to 'find'
- Techniques I Use to Create a Great User Experience for Shell Scripts
-
The Modern CLI Renaissance
Disagree all you want, you still shouldn't be surprised people aren't expecting this
fd: https://github.com/sharkdp/fd/issues?q=gitignore+
And I stand by it is strictly better for the __default__ to be unfiltered. This is what people expect in general.
> tailored for the common use cases today.
- Show HN: Vomitorium – all of your project in 1 text file
-
Eza: A modern, maintained replacement for ls
NOTE OF WARNING:
BY DEFAULT these ignores anything included in your `.gitignore` folder. So if you think it is a straight find replacement, you'll likely be surprised. fd discussion here[0]
Just make sure that when recommending people these tools that this is clear because if they don't read the docs (lol who does) they'll miss this part.
This is a pet peeve of mine. I wish the people that make these replacement coreutils (and others) would leave the defaults as very similar to the original tool. I do really like the new functionalities but if you market it as "an alternative" ("It is a simple, fast and user-friendly alternative to find") then they should respect the defaults of the original because it reduces new user surprise. I mean aliases exist... So it is better to have in your ~/.${SHELL##*/}rc file to have `alias fd='fd --ignore'` than `alias fd='fd --no-ignore'`.
Side note/pro tip: use `\command` if you want to use an unaliased version. An example of this is that I have `alias grep='grep --color=always --no-messages --binary-files=without-match` but this can sometimes be problematic because the color option can change the character representation so if you pipe this into `curl` you will get errors. This is not the case in all piping, but it is a shocking and confusing experience when you first encounter it. You can validate this by `echo "Hello world" | \grep --color=always "Hello" | hexdump` and then `!!:s^always^never`
[0] https://github.com/sharkdp/fd/issues/612
-
How to Fuzzy Search: Finding File Names and Contents using Bash Scripting and Commandline Tools
1. fd command
-
Customizing Your Lazyvim Setup for Personal Preferences
find files: fd
watchexec
- Watchexec: Execute commands in response to file modifications
- Watchexec
-
Watchexec ignore directory?
Hi, I am using Watchexec (https://github.com/watchexec/watchexec/releases) to monitor folder changes, but I want to exclude some folders. What parameter should I use to perform the route exclusions?
-
How to automatically extract all zip files downloaded to certain directory?
Use https://github.com/watchexec/watchexec
-
My first actual Rust program: Cloak, a simple app to search and watch directories to automatically hide files and directories
There's something similar to this called watchexec, which you can have a look at https://github.com/watchexec/watchexec
-
Turbowatch – Extremely fast alternative to Nodemon
Or use watchexec which will do 95% of what you need and you're not tied to nodejs.
-
What "nice-to-have" CLI tools do you know?
watchexec
-
is there a plugin to run any file (.py .js .java etc.) and display the output?
I use watchexec to automatically run the code when saved, you should customise this to your liking.
-
[Paid Bounty-$20 in Bitcoin!] Persistent - Watchfolder() dir, if files contains word "apple" in name, make file Read only.
OTOH PowerShell will not keep watching and is one of the requirements. In the past I've successfully used watchexecrepo and inotifywaitrepo.
-
How to automatically run a command when directory updates?
I prefer watchexec as it's cross-platform.
What are some alternatives?
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
entr - Run arbitrary commands when files change
ripgrep - ripgrep recursively searches directories for a regex pattern while respecting your gitignore
watchman - Watches files and records, or triggers actions, when they change.
fzf - :cherry_blossom: A command-line fuzzy finder
systemd-manager
exa - A modern replacement for ‘ls’.
fswatch - A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
skim - Fuzzy Finder in rust!
coreutils - Cross-platform Rust rewrite of the GNU coreutils
vim-grepper - :space_invader: Helps you win at grep.
concurr - Performs distributed command execution, written in Rust w/ Tokio