Tag: dired

Moving Away From Deft

As the title says, it is with a heavy heart that I have decided to move away from deft. There are a few reasons for this: All files I am interested in quickly locating and editing are now orgified (turned into org files) All these files are located in a single directory All these files have a sensible naming convention indicating the contents I am now much more familiar with dired I didn’t ever use the deft facility for creating new files, I prefer to use dired I didn’t ever need to incrementally filter / search as I can use emacs / dired for this Deft took a couple of seconds to initially load My deft configuration was becoming a little bloated and I wanted to use vanilla emacs where I could; see below for my former deft configuration: (use-package deft :bind ("C-c d" . Read more...

Using org-copy-visible in dired

Just a quick one. Often it seems I need a copy of a list of files / directories in plain text without any gubbins such as a path, permissions, date and all those shenanigans, basically basenaming; for example: So how can I achieve this in emacs? I would really prefer to use dired somehow rather than shell / ls (which was my first thought) Below is my typical dired listing: Read more...

Dired Duplicate Here

dired can do most things for me especially now I have my DWIM image conversion scripts working and image-dired configured to my liking. However sometimes I do just prefer using a GUI file manager; for example, drag and drop, image file preview e.t.c. I am currently using the Dolphin file manager on KDE and one context menu service that I have enabled and use often is the Duplicate Here function. Read more...

Revisiting Window Cut / Copy Files with DWIM

I previously wrote about wanting the ability in emacs to copy and paste files from one window to another just like a linux GUI file manager and after a little hunting around and experimentation I settled on putting together some elisp: Cut / Copy Files from Window to Window using Dired Buffers This worked pretty well for a while although there were a couple of side effects that I hadn’t bargained for! Read more...

Dired ordering by size

By default dired orders its files in alphanumeric order and when s is selected it sorts by date according to : (dired-sort-toggle-or-edit &optional ARG) But recently I wanted to list files according to their size, which of course is a very common thing to do especially when you are undertaking a nice spring clean up. The solution is to modify the dired-listing-switches to add in an S argument which can be found by passing in the universal argument to s, hence : C-u s Read more...

Tidying up Dired Further

Something is still bugging me with my dired tidy up and I think it is wanting to add the ability to remove dot files. I am currently using the Dolphin file manager on linux and by default I tend not to show the dot files for a cleaner output, generally the only dot file of course I really care about are the emacs ones and I know where they are! Read more...

Tidying up Dired

Bit by bit I am getting to grips with dired and using this for more operations on my files. The next step is to reduce the listing width so that a listing fits better in a smaller window. Here is the format of my current listing: By default dired uses -al, which gives a standard long listing. Unfortunately for my work within emacs this is actually now too long, and also not just in emacs but in my terminal too. Read more...

Dired folder size

My dired replacement of Dolphin / linux terminal continues. The next thing is something useful to me but uncommon and something that dired didn’t seem to be able to do out of the box. That is to be able to recursively display the size of a folder / files. Every now and again I like to keep my files and data under control especially as I am using syncthing to backup my core data to my phone. Read more...

Dired going Up Directories

Now dired is becoming more ingrained into my muscle memory, navigating efficiently through the folder structure is becoming more prominent in my mind and it still doesn’t feel natural enough. I now don’t even think about using C-x d and the Enter key is fine for either opening a file or traversing into a directory. But what about moving up a directory!, also a very common action. The default defined key is ^ and actually isn’t too bad and almost feels quite natural, almost… Read more...

Cut / Copy between Windows using Dired Buffers

The next step in my emacs journey is to move files around a little more easily, in fact more like a regular file explorer using the concept of file / folder selection copy and paste. That concept seems a little more natural to me than dired file marking, renaming / copying and then entering the path of the destination address. After a little research the following options present themselves: Read more...