Answers:
这是一个棘手的方法,如果他们更改代码,这种方法可能并不总是有效的(并且在某些情况下,重新启动ranger会更好/更安全)。
在ranger,假设你有一个自定义rc.conf中~/.config/ranger/rc.conf,键入:
:eval fm.source(fm.confpath('rc.conf'))
我通过改变测试此set draw_borders true/false在~/.config/ranger/rc.conf。
在ranger,假设你有一个自定义rifle.conf中~/.config/ranger/rifle.conf,键入:
:eval fm.rifle.reload_config()
请注意,这已通过最新的Git提交进行了测试。
https://github.com/ranger/ranger/wiki/Keybindings#quick-editing-rcconf表示您可以使用它来快速编辑rc.conf文件并在保存后将其来源:
map xx chain shell vim -p ~/.config/ranger/rc.conf; source ~/.config/ranger/rc.conf
这适用于scope.sh:
map xr chain shell vim -p ~/.config/ranger/scope.sh; source ~/.config/ranger/scope.sh
这是为 rifle.conf
map xr chain shell vim ~/.config/ranger/rifle.conf; eval fm.rifle.reload_config()
知道正确的配置后,我将更新此回复commands.py。如果有人知道,请对此进行编辑。
commands.py。不过,我无法从中调用这些函数rifle.conf。