Readit News logoReadit News
smitty1e · 4 years ago
kqr · 4 years ago
And Sunrise Commander, the dual-pane dired that works even more like an orthodox file manager.

https://www.emacswiki.org/emacs/Sunrise_Commander

gerikson · 4 years ago
The name itself a reference to Midnight Commander, inspired by Norton Commander...
catern · 4 years ago
My favorite dired feature is that if you C-x C-q (the standard Emacs binding to toggle the read-only status of a file), it makes the directory buffer writable. You can then edit the buffer like a regular file, including changing file names (or symbolic link targets, or other things, I presume), and when you're done, C-c C-c and it applies all the changes as renamed files, symbolic link retargeting, etc etc. Very handy, since you can use all the usual Emacs features like query-replace or kmacros while doing it.
OskarS · 4 years ago
Ugh, I find dired incredibly annoying and avoid it at all costs in Emacs. You use it once and suddenly have a gazillion buffers open, it's just the worst! They don't even go away when you deliberately close them with q!
satish-setty · 4 years ago
Of course, it can be customized.

     (put 'dired-find-alternate-file 'disabled nil)
https://www.emacswiki.org/emacs/DiredReuseDirectoryBuffer

globular-toast · 4 years ago
Why do you care about open buffers? When I first started using emacs I cared because other text editors force you to care by displaying "tabs" or the like for each open buffer. But emacs is better than that. The only time I ever see all open buffers is if I do M-x list-buffers, and I never do that. Other than that, open buffers never get in the way. I do use midnight-mode to kill all "old" buffers in the middle of the night to stop the memory usage growing indefinitely, though.
chalst · 4 years ago
A buffer per directory is just the right thing for dired to do, for the same kind of reason that it is right that git has a staging area. Your problem is that this behaviour causes friction with how you prefer to manage buffers. Some suggestions:

- With the regular buffer list, if you keep typing letters, the view will restrict to buffers containing that string

- All the usual selection narrowing options, e.g. Helm, work here

- You can rebind 'q' to 'kill-buffer-and-its-windows

- A lot of people like ibuffer, which allows you to group kinds of buffer in its buffer list, e.g. all dired buffers

Deleted Comment

ducktective · 4 years ago
There is also nnn and Vifm (C), lf (Go) and ranger (Python)
sayanarijit · 4 years ago
ducktective · 4 years ago
Nice project btw! Were you experienced in C&C++ before learning Rust?
PestoDiRucola · 4 years ago
Ahh yes, written in Rust, my favorite feature.
woah · 4 years ago
When you see a “Show HN”, the odds are very high that it is written in an ergonomic language such as Python, JS, Go, or Rust, rather than C or C++. Rust is the only one of these that has native performance, so I think this is useful information.
laurent123456 · 4 years ago
Meanwhile, in the comments below:

> just having it open and doing nothing with it, it has extremely high cpu usage

> it's maxing out 3 cores for me

livre · 4 years ago
For software that isn't in the package repository of your distro written in Rust (or Go or any other language with something similar to cargo) means I can clone the repository, run a build command and it'll likely compile easily and successfully. As a user this is much better than hunting down dev package names and versions for a C or C++ source.
tartoran · 4 years ago
I use Ranger but the hackability potential in this is very promising, I’ll definitely give it a spin. Thanks for posting!
sayanarijit · 4 years ago
Great. Looking forward to hearing how it goes.
resoluteteeth · 4 years ago
I like it, but just having it open and doing nothing with it, it has extremely high cpu usage.
codychan · 4 years ago
Same here, I just play with it around 30s before I notice CPU problem.
hundchenkatze · 4 years ago
Same here, it's maxing out 3 cores for me.
sayanarijit · 4 years ago
sayanarijit · 4 years ago
I'll start working on it shortly. https://github.com/sayanarijit/xplr/issues/10
conradludgate · 4 years ago
This is really cool! I use a similar tool for fuzzy cd[0]. At the moment I'm trying to use broot[1] as my directory browser but I might consider trying this too

[0]: https://github.com/b4b4r07/enhancd [1]: https://github.com/Canop/broot

GekkePrutser · 4 years ago
Interesting, I will try it!

But it will have to be pretty good to replace mc for me. It's not that mc is very good, because it's not. It's just that its keystrokes are deeply ingrained in my muscle memory :)

But this looks good and quicker to use (navigating the menu in mc takes a lot of keystrokes)

sayanarijit · 4 years ago
You should be able to configure the key bindings like mc https://github.com/sayanarijit/xplr/wiki/Key-Bindings
the8472 · 4 years ago
But does it support mouse control, and drag&drop or media content preview?
sayanarijit · 4 years ago
Not yet. It's supposed to be minimal, so I doubt it'll ever support mouse, drap & drop and other GUI features. Although, the preview is in list as a potential plugin. See https://github.com/sayanarijit/xplr/wiki/Plugins and https://github.com/sayanarijit/xplr/wiki/TODO