plantarum, to emacs
@plantarum@ottawa.place avatar

Casual mode, a better interface for the file manager

https://irreal.org/blog/?p=12162

plantarum,
@plantarum@ottawa.place avatar

is a tool that seems super powerful, but I don't use it often enough to stay familiar with the features. This sounds like a great fix to that issue!

The original announcement from the package author:

http://yummymelon.com/devnull/announcing-casual-dired---an-opinionated-porcelain-for-the-emacs-file-manager.html

publicvoit, to emacs
@publicvoit@graz.social avatar
Mehrad, to KDE
@Mehrad@fosstodon.org avatar

I missed 's filtering ability in . The dired-goto-file works when you aim at one single file, but it is not enough when you have tens of files and you want to "narrow" your view to files that match certain pattern (regex, glob, or fixed string).

Turns out there is a nice package called dired-narrow that does exactly that with very handy defaults.

Give it a shot!

https://melpa.org/#/dired-narrow

apublicimage,

@Mehrad
Or use consult-lines, part of consult. Offers narrowing for all buffers, not just dired.

Mehrad,
@Mehrad@fosstodon.org avatar

@apublicimage I haven't installed consult. Does it also allow you to interact with the dired buffer while typing the filtering pattern? dired-narrow allows to interact with directories and open then while the point is still at the minibuffer, which is quite handy, plus if you treat dired buffer as a text buffer (as occur does), you will lose context if you have inserted subdirectories (using i).

candletrading, to emacs

til you can copy the timestamp of a file in by hitting T then M-n. useful for matching timestamps when you want to replace files in

laotang, to emacs
@laotang@emacs.ch avatar

Introducing Cleandesk.el, a small collection of functions to rapidly rename and process files in Dired.

Pictures, PDFs and many other kinds of files frequently end up on my Desktop. In the past, I used Hazel and/or Devonthink (both macOS only) to automatically rename and refile. Cleandesk offers an alternative (manual) approach for these tasks from within . It draws on and .

To be sure, vanilla Dired probably can do most of this. But perhaps neither as convenient nor as swift. 😉

https://github.com/rtrppl/cleandesk

aksharvarma, to emacs
@aksharvarma@mathstodon.xyz avatar

Ever since I found out that allows me to use S to symlink exactly how C and R can be used to copy/rename, I try to always do my symlinks in dired in emacs and not in the terminal.

https://social.kernel.org/objects/b48cb5ed-e156-40f6-93c6-506a1cb6ae17

No one can keep ln -s straight because depending on the specifics, the way your brain deals with sentence ordering can change. From/to, source/destination, all get muddled with here/there. Does it mean that what's here points to what's there or does what's there point to what's here? What's the original which I should not delete gets confusing.

aksharvarma,
@aksharvarma@mathstodon.xyz avatar

@harish Ah. So the thing is the original and the where is the other place it will show up at? That's a nice way to think. I would still prefer the emacs way, but this might be useful. I'll keep it in mind.

harish,
@harish@hachyderm.io avatar

@aksharvarma Basically, yes.

Anoncheg, to emacs

My Elisp package for history in Dired was added to MELPA
repository. 🎂

I added alternative implementation of history with tab-line
mode. 🤹 This implementation work perfect, fast and able to work
under root console or any terminal. ⌘

I also solved in Dired:

  • selection by region selection, not by marks ●
  • customization of opening file in other window ●

I am going to write article about configuration of Emacs as a
file manager.
🏄

holgerschurig,

@Anoncheg What do you mean with "history in dired" ?

Previous file contents (e.g. via git)? History of directories visited so that you can return to a previous directory?

publicvoit, to emacs
@publicvoit@graz.social avatar

This small function is probably a game-changer in my personal experience:

From https://www.emacs.dyerdwelling.family/emacs/20240305160708-emacs--unified-interface-for-switching-contexts/ (he's not on the Fediverse as far as I know) I stole the code and created my-switch-to-thing() for switching to:

  • buffers
  • recent-files
  • bookmarks
  • slots
  • directories
    ... with one single command. 🤩

This replaces multiple "jump to"-commands in my setup.

You can find my adapted version in https://github.com/novoid/dot-emacs/blob/master/config.org

chke,

@sping @publicvoit I was a bit confused when I first read that article, because I thought consult-buffer can do all that and was even mentioned in the article. So now I think the author simply was unaware. Or am I still missing something?

publicvoit,
@publicvoit@graz.social avatar

@chke @sping I don't know buffer-consult and maybe the other author doesn't know as well.

However, this short piece of code I do understand and I was even possible to extend it for eyebrowse.

Anoncheg, to emacs

I posted request to MELPA repository for my new package for Dired
filemanger in Emacs. 🐾💜😊

Emacs has is very advanced filemanager (Dired) it is like
MidnightCommander and FarManager, but much better, because it
is customizable as beyond imagination.

Even Vim don't have modern fast navigation, that is why my
package is awesome. 😈

Now I don't need OS Environment, all I need is Emacs, console
and browser. File manager now is in Emacs. ⛅

Thunar was very good, but too simple. ☄️

Maybe my package will became quickly very popular. 💅

😶

louis,
@louis@emacs.ch avatar

@Anoncheg Please post a link to your new package as soon as it is released! 🙂 Can't wait to try it out. :emacs:​

rahguzar, to emacs
@rahguzar@emacs.ch avatar

people: what is the canonical way to read a list of filenames? and completing-read-multiple can be both be used but are both clumsy when most of the times only one wants to choose on or two files. I am asking because of https://codeberg.org/rahguzar/filechooser

holgerschurig,

@rahguzar @sqrtminusone A dialog that allows you to mark files already exist in Emacs, dired. Soyounjzst need to write a function tgat operates on these marked files. You gave many examples on how to do that: other fired functions.

rahguzar,
@rahguzar@emacs.ch avatar

@holgerschurig @sqrtminusone this is already implemented and is pretty good for selecting a large number of files. When I want to choose only 1 or 2 I always end up wishing I was dealing with read-file-name and almost always I want only one file.

TitanOfOld, to emacs

best kept secret: C-x C-q.

The buffer becomes editable, so you can do all sorts of fun things quickly. I like using macros to do file renames, especially when it would take me longer to figure out the regex/pattern than it would for me to record the keystrokes I want effected.

cragg, to emacs

How to use wdired to delete files:

  1. Use find-name-dired to target files for deletion: Follow prompts to populate directory to search and file name pattern.
  2. C-x C-q to make the results buffer writeable (wdired)
  3. For each file you want to delete, press 'd' next to the file
  4. 'x' to execute deletion.
holgerschurig,

@cragg That d/x combo is plain dired, not wdired.

cragg,

@holgerschurig I tried to delete the filename then do C-c, but that didn't do anything. Any advice?

cragg, to emacs

How to rename multiple files in dired:

  1. Mark files in dired: 'm' for each file at point.
  2. % R
  3. Enter regexp to rename from: (Unknown[-]?[0-9]?)
  4. Rename to: \1.jpg
holgerschurig,

@cragg I always use wdired for that :-)

cragg,

@holgerschurig I'll post the wdired version of this next, but this way took fewer steps.

UmWerker, to emacs German

Ich hatte gehofft, mir könnte der in integrierte Dateimanager genügen. Leider nicht, denn jeder Verzeichniswechsel öffnet einen neuen Buffer. Bedeutet, durch 10 Verzeichnisse navigiert und 9 weitere Buffer sind im Hintergrund aktiv. Keine Ahnung, wie man auf die Idee kommt, dies könnte eine gute sein. In meinen Augen Schwachsinn. Muss ich mich doch mit oder ähnliches befassen.

UmWerker,

@cjk
Klappt hervorragend 👍 Manchmal kann es so einfach sein 😉 Nochmals Danke.

ctietze, to random
@ctietze@mastodon.social avatar

I've split my frame into 2 windows, each pointing at a different directory via , and copied files left and right style.

I rarely ever use this. But when I do, it's great.

ctietze,
@ctietze@mastodon.social avatar

@sqrtminusone 👍 dired-subtree is great. I wonder why you don't have 'hide details', bound to "(" interactively, enabled though. Doesn't the stuff bother you?

sqrtminusone,
@sqrtminusone@emacs.ch avatar

@ctietze No, I guess I'm just used to it. And I often find the details useful, e.g. I immediately see that a file created by some Docker container has wrong ownership, or that some elisp file or log file is much larger than the rest.

Besides, I use EXWM, and I rarely have more than 2 windows of Dired side by side, so there isn't any space lost. My following splits are all horizontal if I need more.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • InstantRegret
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • JUstTest
  • Durango
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • lostlight
  • All magazines