News for hackers. Stuff that matters.
Re:Yazi: Fast terminal file manager based on async I/O by sxyazi on Saturday September 16, 2023 @10:14AM (#37534932)
Hi, I'm the author of Yazi, and I was pleasantly surprised to come across it while browsing Hacker News. I'm really excited!!

If you're interested in the topics of concurrency, performance, and io_uring discussed in this thread, you can take a look at my new article where I provide a detailed explanation of "Why is Yazi Fast?"

https://github.com/sxyazi/yazi/issues/143

Re:Yazi: Fast terminal file manager based on async I/O by jakobnissen on Saturday September 16, 2023 @10:34AM (#37535127)
This looks amazing! Just installed.

One thing if I may: I can't figure out how to use it. Like: The bottom right says "1 remaining", but I don't know what that is. I can't figure out how to run `rg` or `fd` from within Yazi.

Is there a user manual or a tutorial somewhere to read?

Re:Yazi: Fast terminal file manager based on async I/O by sxyazi on Saturday September 16, 2023 @11:24AM (#37535594)
Thank you!

You can press `?` or `~` to open the help panel, which contains all supported keybindings.

Re:Yazi: Fast terminal file manager based on async I/O by 7839284023 on Sunday September 17, 2023 @02:41AM (#37542167)
This awesome project really could use better documentation / quick-start guide...

I took a long look at the "docs" but I did not find them helpful at all [1]

Even figuring out that you can press `?` to open the help panel took me way to long to figure out because it is not referenced in any obvious way.

[1] https://github.com/sxyazi/yazi/tree/main/config/docs

Re:Yazi: Fast terminal file manager based on async I/O by sxyazi on Sunday September 17, 2023 @03:44AM (#37542515)
Yeah, it's possible that as a developer, I may not always promptly identify issues in the docs because the program tends to run "as usual" based on my ingrained thought processes...

I would be more than willing to stand on the user's side and continually improve the docs. If you would be interested in creating a quick guide for Yazi that would be great if it's possible :)

Re:Yazi: Fast terminal file manager based on async I/O by conradojordan on Saturday September 16, 2023 @06:48PM (#37539573)
I was on the same situation and almost gave up using yazi, but I found a keymap configuration preset file here: https://github.com/sxyazi/yazi/blob/main/config/preset/keyma... that shows how to use most features and their respective key binding. Hope it helps!
Re:Yazi: Fast terminal file manager based on async I/O by Jhsto on Saturday September 16, 2023 @12:06PM (#37536002)
This seems like very useful for browsing NFS shares. Has networked filesystems been a part of the initial motivation?
Re:Yazi: Fast terminal file manager based on async I/O by joshka on Saturday September 16, 2023 @03:24PM (#37537858)
Hey there. Just wanted to say the code is really good in this.

It's super simple to read (once I found the setting to display tabs as 4 chars in GitHub), well organized, and has some neat patterns that seem to work well for building out TUI apps. Come say hi in the Ratatui discord sometime.

Re:Yazi: Fast terminal file manager based on async I/O by ta988 on Saturday September 16, 2023 @05:44PM (#37539028)
That's impressive. I wish the tabs could be shown side by side.
Re:Yazi: Fast terminal file manager based on async I/O by cptnapalm on Sunday September 17, 2023 @02:13AM (#37542032)
This is... wow. I really like this.
Re:Yazi: Fast terminal file manager based on async I/O by eviks on Sunday September 17, 2023 @02:29AM (#37542112)
Do you plan to cache folder sizes?
Re:Yazi: Fast terminal file manager based on async I/O by BaculumMeumEst on Sunday September 17, 2023 @02:58PM (#37548262)
I used Yazi for about a day and loved it, but there's just enough ergonomics missing that I ended up switching back to nnn for now.

My main issue I couldn't find a way to filter the list of files/directories for the current directory I'm in. Let's say I want to go to directory `cpp`, and it's 22 entries down the list of current files/folders. If I try to `fd` for `cpp`, I'm going to get back a ton of results from all over my hard drive. So it seems like I need to just scroll way down, which is a bummer. In nnn, you can just type `/` then `cpp` and it will filter results in CWD that match.

A nice-to-have would be live fuzzy-find functionality for the fd/rg integration, but that is not so critical.

The other thing I like about nnn is it retains `g` and `G` from vim to go to the top and bottom of the list of results respectively. I didn't see a similar operation in yazi.

Otherwise, very awesome tool, the performance is excellent, I appreciate how you explicitly state the external shell programs you interface with, I love the built in previews, and the devicons look clean.

Re:Yazi: Fast terminal file manager based on async I/O by sxyazi on Sunday September 17, 2023 @07:19PM (#37550329)
Thank you for your appreciation!

In fact, `G` and `gg` are already supported in Yazi. You just need to set `arrow -999` for `gg`, and `arrow 999` for `G`. I've added it to the default keybindings: https://github.com/sxyazi/yazi/commit/c540542da49004a3084b1d...

The enhanced find/filter feature has been noted in the Feature Requests (https://github.com/sxyazi/yazi/issues/51), and I will make an effort to implement it soon. Of course, PRs welcome if possible :)