Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "Edit" files names
- X-seq: zsh-users 22867
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: "Yuri D'Elia" <wavexx@xxxxxxxxxx>
- Subject: Re: "Edit" files names
- Date: Tue, 5 Sep 2017 23:04:11 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eR7O9Z2jO5soksaBj4KH7ahQ6SVs/pkWIqSnJVdyV5Q=; b=GzCo43ghxgHnnqdGK37PGYXFbM5P41yfSPu3DizRMAW1Aj4SDKbPI9AhaGZ94Yll+6 R0qMLSheXw3vtfrMTRfkbvKth+k7W5GEFm08zJr3sBMbjaFlEnxgjnccsmmawPT9kpN3 +ipuLAFq6x+CvSWYw6Qe2O7cBBLTIhnk28JqNDyo8dl3ZGTCA+4dokp2r1gudwxaBR0J icae/rEZ5Z1NXMwtJaA51MQ3O/Epu6c0CGDmSwmqfK2EO1QYgmqwVJGSzxAO8k+4SjiQ fIsXV32C8HlKmPF/QuEW+cVK8BT1r8l1gmvjVAUK7yhZvqfNXTOChtwFCC487IMcUAth CE9g==
- In-reply-to: <87pob5ni6e.fsf@wavexx.thregr.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <87pob5ni6e.fsf@wavexx.thregr.org>
On Tue, Sep 5, 2017 at 7:56 PM, Yuri D'Elia <wavexx@xxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author