From: Michael Heerdegen <michael_heerdegen@web.de>
To: s1ohy@waifu.club
Cc: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <878trtath2.fsf@web.de> (raw)
In-Reply-To: <20161205233431659351400@bob.proulx.com> (Bob Proulx's message of "Tue, 6 Dec 2016 00:25:06 -0700")
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.
next prev parent reply other threads:[~2016-12-06 16:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 2:58 When using rectangle-mark-mode in an editable dired buffer, how can I edit the region? s1ohy
2016-12-06 7:25 ` Bob Proulx
2016-12-06 16:54 ` Michael Heerdegen [this message]
2016-12-06 17:02 ` Michael Heerdegen
2016-12-06 22:26 ` s1ohy
2016-12-07 4:52 ` B.V. Raghav
2016-12-07 7:00 ` Bob Proulx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878trtath2.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=s1ohy@waifu.club \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).