From: Mikael Magnusson <mikachu@gmail.com>
To: "Yuri D'Elia" <wavexx@thregr.org>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: "Edit" files names
Date: Tue, 5 Sep 2017 23:04:11 +0200 [thread overview]
Message-ID: <CAHYJk3SrK8vScmtZ-bPyPLSJByCAMVJu2rnSvHi2iYPVWyWzJQ@mail.gmail.com> (raw)
In-Reply-To: <87pob5ni6e.fsf@wavexx.thregr.org>
On Tue, Sep 5, 2017 at 7:56 PM, Yuri D'Elia <wavexx@thregr.org> wrote:
> Hi everyone,
>
> Let's assume I have a garbled file name that I want to rename more
> conveniently into an editor, without painful escaping.
>
> I'd like to do the following:
>
> $ editname *garbled*
>
> popping my $EDITOR with a file containing the original file name
> (unescaped), and upon saving+closing, renames the original into the new
> name provided. If the pattern expands to more files, it just repeats for
> each file, in turn.
>
> It's not hard to implement, but does anybody know of a tool which
> already does that (or something very similar)?
Have you tried the edit-command-line widget?
--
Mikael Magnusson
next prev parent reply other threads:[~2017-09-05 21:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-05 17:56 Yuri D'Elia
2017-09-05 21:04 ` Mikael Magnusson [this message]
2017-09-05 21:17 ` Yuri D'Elia
2017-09-06 4:10 ` Bart Schaefer
2017-09-06 9:17 ` Simon Ruderich
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAHYJk3SrK8vScmtZ-bPyPLSJByCAMVJu2rnSvHi2iYPVWyWzJQ@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=wavexx@thregr.org \
--cc=zsh-users@zsh.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).