plantarum, to emacs
@plantarum@ottawa.place avatar

Casual #dired mode, a better interface for the #emacs 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

candletrading, to emacs
@candletrading@emacs.ch avatar

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 #emacs #dired 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.

Anoncheg, to emacs
@Anoncheg@emacs.ch avatar

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.
🏄

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

Anoncheg, to emacs
@Anoncheg@emacs.ch avatar

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. 💅

😶

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

TitanOfOld, to emacs

#Emacs best kept #dired 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.
    #emacs #dired #wdired
lauren, to random
@lauren@mastodon.laurenweinstein.org avatar

I am largely unconvinced that it would be possible to create a much more confusing syntax for the "rsync" command even if that were the explicit goal.

stsquad,
@stsquad@mastodon.org.uk avatar

@lauren for this reason I have embedded all my use of into mode so I don't have to thing about it.

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
    #emacs #dired
UmWerker, to emacs German
@UmWerker@todon.nl avatar

Ich hatte gehofft, mir könnte der in #emacs integrierte Dateimanager #dired 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 #nerdtree oder ähnliches befassen.

ctietze, to random
@ctietze@mastodon.social avatar

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

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

summeremacs, to emacs
@summeremacs@fashionsocial.host avatar

Yesterday, I was trying to fix my in to work with my and local files. I wanted it to trash files locally to the trash, but delete them on the server. Well, what did I find?

Emacs 30 (which I'm using) has two variables. Here's my setup:

(setq delete-by-moving-to-trash t) ;; For moving to trash locally

(setq remote-file-name-inhibit-delete-by-moving-to-trash t) ;; For Tramp deletion

This is apparently only for 30+. now works as expected. 🙃

summeremacs, to emacs
@summeremacs@fashionsocial.host avatar

And now for the last one: I came up with an idea two days ago and announced it on /r/emacs. It's a colouring system for items in . Almost none of my programmer friends could figure out why I would want to colour files different, which is funny because I can't think of a perfect system which doesn't use colours like this.

But somebody made it for me and it's now available and it works great. 💖 Thank you Karthink!

Dired-Delight
https://github.com/karthink/dired-delight

zleap, to Bash
@zleap@qoto.org avatar

Just asking here in case anyone, withj decent bash expertise can help please.

Having copied files from an old PVR (digitial video recorder thingy) we have files such as this

New:.1864-2015-May-30.20:02:17.307534.nts
New:.1864-2015-May-30.20:02:17.307534.ts
New:.1864-2015-May-30.21:00:30.091333.hmt
New:.1864-2015-May-30.21:00:30.091333.nts
New:.1864-2015-May-30.21:00:30.091333.ts

These are on my main computer hard disk, I have a 2nd that is currently FAT32 (I think) but I can't copy these files due to the characters in the filename.

Is there a easy way to take these files, and rename them so I can stripo out all but the final period (which is between '091333.ts' for example.

I am running Debian, and it wom't let me copy over to the other HDD, While I can do this manually there are LOTS of files. So there has to be a way to do this, perhaps a combination of

rename , sed or other commands.

Any pointers welcome please.

Thanks

Paul

#BASH,#Linux,#Files,#Raname,#Help

chris_spackman,
@chris_spackman@twit.social avatar

@zleap

If you are okay with #KDE apps, #KRename is great for this sort of thing.

You could also try rename (the perl version - it is "perl-rename" on #gentoo. Something like

perl-rename 's/:/-/g' *

and

perl-rename 's/./_/g' *

BUT, not sure if you need to escape the . or not in that second one.

If you use #emacs, #dired would also let you do find and replace to bulk rename. Open a dired buffer in the folder, ctrl-x ctrl-q to make the buffer editable. C-c C-c to finish and rename.

phundrak, to random
@phundrak@emacs.ch avatar

I’m slowly spending more and more time inside #Emacs thanks to #mu4e, #elfeed, #mastodonel, #pdftools, #dired and quite a few other packages. I still haven’t hopped on EXWM full time, I really only use it on my Chromebook, and I can’t use it at work, but being able to do pretty much everything just with the keyboard really is a blessing!

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