ranger chain commands in config
1
vote
2
answers
379
views
I am using ranger as my terminal file manager and now that I understand the basics, I wanted to get a bit deeper into customizing the rc for my purposes. One thing I like to do is to map a command to a keybind that copies a template into the current folder and then starts the
rename_append
command, (usually called with keybind a
) on the file.
Here is an example:
map NS shell cp ~/.templates/bash.sh . ; rename_append
The problem is, that no matter how I call the command, it does copy the template in my current directory, but then doesn't start the rename-process. When I quit ranger, the errormessage says that rename_append
wasn't found, but in the ranger-config, the same command is used to rename files before the appendix. My theory is that, since I am using shell, the command tries to find rename_append
in my programs. I don't know how to chain commands in my ranger-config where one is a shell-command and the next one isn't.
Currently I have to use a second keybind after the first and I would like to only use one and automatically go into renaming-mode after copying the file.
I hope, my problem is understandable.
Asked by Enemoy
(23 rep)
Feb 13, 2022, 12:17 PM
Last activity: Jul 22, 2023, 08:30 AM
Last activity: Jul 22, 2023, 08:30 AM