ranger-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ranger-users] Bulk-anything command


From: hut
Subject: Re: [Ranger-users] Bulk-anything command
Date: Thu, 22 Jun 2017 00:36:44 +0200
User-agent: Mutt/1.7.2 (2016-11-26)

On Wed, Jun 21, 2017 at 10:43:37AM -0400, John Z. wrote:
> Hi,
>     is there a way to execute a command on selected files, much like
>     bulkrename does?
>     Right now, the only solution that comes to me is faking it, somehow,
>     with sh and xargs.
> 
>     Cheers.

Hi, 

I typically do:

  :shell for f in %s; do <mycommand> "$f"; done

you could easily bind this to a key with:

  :map X console -p22 shell for f in %%s; do  "$f"; done

then, to run a command, you can type e.g. Xecho<ENTER>

Regards,
hut



reply via email to

[Prev in Thread] Current Thread [Next in Thread]