[Top][All Lists]

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

Re: [Ranger-users] Bulk-anything command

From: John Z.
Subject: Re: [Ranger-users] Bulk-anything command
Date: Thu, 22 Jun 2017 13:04:44 -0400
User-agent: Mutt/1.8.3 (2017-05-23)

> Hi,
> In general, when you run a command which takes another command as an
> argument, like ":map" or ":console", you have to be aware about the time
> when the macros are expanded.  If you run:
> :map x shell echo %f
> Then x will be bound to "shell echo <the_file_thats_selected_right_now>".
> To delay macro expansion until the time the command is executed, you
> need to escape the % like:
> :map x shell echo %%f
> Now x is bound to "shell echo %f" and %f will be expanded at the time
> when you press x.
> But about your specific problem: I believe there was a bug with macro
> escaping in the "yp" key binding and similar ones in the past.  It
> should be fixed if you upgrade ranger and migrate/delete your
> configuration according to https://github.com/ranger/ranger/wiki/Upgrading .
> Regards,
> hut

That did the trick. Thanks!

reply via email to

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