3 ms·
Two things that I always reach for Emacs to accomplish are git and file management, via Magit and Dired(X) respectively. Here's a quick cheat sheet of the thing
by sdegutis 8y ago
Two things that I always reach for Emacs to accomplish are git and file management, via Magit and Dired(X) respectively. Here's a quick cheat sheet of the things I use Dired for:
C-x C-j (jump to directory)
Open the current directory in Dired (requires that
you first (require 'dired-x)) from any buffer, even
other directories, but usually from within files.
C-x C-q (edit directory)
Start editing the current directory as a plain-text
buffer and commit changes with C-c C-c or discard
all changes with C-c C-k.
One thing you can do with this is quickly swap two
filenames. Dired will give one of them a temp name
which is super convenient.
Combined with multiple-cursors package, this also
lets you mass rename files in ways that would be
much harder in terminal.
d (delete)
Mark items in directory for deletion, (x) to commit.
m (mark)
Mark items in a directory for:
R - rename (or move)
C - copy
For a more thorough list, open a directory and type C-h m
- sandwell 8y agoWow, I switched to Emacs earlier this year and have not encountered dired mode before. This is fantasic!
- dustfinger 8y agoIf you like dired-mode then checkout helm https://github.com/emacs-helm/helm/wiki#helm-workflow-for-files-directories-and-buffers https://github.com/emacs-helm/helm/wiki#helm-workflow-for-fi...
- sys_64738 8y agoEmacs truly superb for discovering new things. I always try to learn a new Emacs feature every couple of weeks. I even got my mother-in-law using Emacs!