[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: When using rectangle-mark-mode in an editable dired buffer, how can
From: |
Michael Heerdegen |
Subject: |
Re: When using rectangle-mark-mode in an editable dired buffer, how can I edit the region? |
Date: |
Tue, 06 Dec 2016 17:54:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Hi Bob,
some thoughts:
You could kill the rectangle from writable dired, paste it into a helper
buffer, do your modifications there, kill the modified text as a
rectangle from there, and paste the rectangle back to wdired. You may
have to handle introduced trailing whitespace, however.
Other options are keyboard macros, dired-map-over-marks,
dired-do-rename-regexp - or you might like to use "multiple-cursors.el",
I guess it comes closest to your initial idea, AFAIR it support multiple
regions (one separate pseudo-region per line) and can run commands once
per every pseudo-region.
Michael.