From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5317 invoked by alias); 5 Sep 2017 18:12:40 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22864 Received: (qmail 26002 invoked by uid 1010); 5 Sep 2017 18:12:40 -0000 X-Qmail-Scanner-Diagnostics: from 195.159.176.226 by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(195.159.176.226):SA:0(-1.1/5.0):. Processed in 2.531127 secs); 05 Sep 2017 18:12:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: gcszu-zsh-users@m.gmane.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Yuri D'Elia Subject: "Edit" files names Date: Tue, 05 Sep 2017 19:56:09 +0200 Message-ID: <87pob5ni6e.fsf@wavexx.thregr.org> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@blaine.gmane.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cancel-Lock: sha1:GJE99UTNRB7UpPrVv90jGDGLT6g= 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)?