-
-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Progress bar #740
Comments
Thank you for your request. That's an interesting idea. Two problems/questions:
|
I fully agree with the difficulty of estimating the total time accurately, but isn't it always hard to estimate the total time? Progress bars have been wonky since always. The same argument applies to gnu parallel, yet they have the option. It doesn't have to be a perfect estimate 😄 For process output, yeah that's definitely also a tricky one. Maybe do what parallel does with it's $ mkdir test && cd test
$ touch $(seq 1 10)
$ echo 'import sys;import random;import time;time.sleep(random.random()*2);print("STDERR", file=sys.stderr);print("STDOUT")' > stderr_stdout.py
$ find -print0 | parallel --bar -0 -P 4 python stderr_stdout.py i.e. copy both streams. And then maybe have some option for muting the subprocess output for a clean progress bar. Or, don't show a bar at all, but rather show a fraction (file 42/100 done). Maybe that's less lying than doing a bar and ETAs 🤔 |
I would better not estimate total time, just show % of files processed and current time spent. It would be enough for user to satisfactorily estimate progress himself. Thumbs up for feature! |
Maybe we should leave this to a separate tool. You can use GNU parallel with fd … | parallel --bar cmd In principle, using I hope it's okay if we close this, but please feel free to comment. |
what about my second question above: #740 (comment) |
@sharkdpFirst case: many operations with logsI guess I generally don't want my terminal to be cluttered with 10k+ lines of individual operations' logs so I want it to be disabled by default. As two ways to get this logs I would either:
terminal.mp4Second case: not many logsIt's ok to show logs for not a lot of files. It's hard to define what is |
We're definitely not going to disable it by default. Having the output of |
@sharkdp okay i get why it should be the default and agree with you now. But the UX of not piping in |
Ok. I think I'd be okay with integrating this if it doesn't add a huge amount of new code. |
Hey there, I really think having a progress bar would be a fantastic addition to fd. I recently had a task to delete over 600,000 HTML files from a HDD and chose to use fd as some smaller hyperfine tests showed it was faster than combining it with rush. Even though it was faster, the entire process still took around 2 hours! What would have made it a smoother experience is if I could have tracked the progress live on fd itself, similar to rush --eta. I ended up resorting to voidtools everything to monitor the progress, but it would have been great to have that functionality within fd. |
@Anangaya, by "sd" do you mean fd? How did you actually delete the files? Hopefully |
Well I did use |
Hello
Thank you for an amazing tool. It really outplays GNU
find
andparallell
by a lot.Today, I found myself converting a lot of mp3s
fd -j4 . ../some_dir -e mp3 -x lame -b 256
which works marvellously, but without any easy way to tell how many files
fd
has left to process. A progress bar option (--progress-bar/-#
?) would be nice.Have a nice day!
The text was updated successfully, but these errors were encountered: