在游侠选择上执行命令?

Nic*_*rto 26 ranger

我还没有找到高级教程ranger,所以我的问题是:是否可以对ranger.

如果是这样,我该怎么做?

Lqu*_*yvg 40

这是在man ranger

@

打开包含“shell %s”内容的控制台,将光标放在“%s”之前,以便您可以快速运行以当前选择作为参数的命令。

所以,

  1. 突出显示您要处理的文件 Space

  2. 键入@以进入命令提示符,:shell %s光标位于之前%s

  3. 输入您的命令名称并按 Enter

  4. 您指定的命令将使用选定的文件名作为参数执行

手册页还包括添加暂停以检查命令输出:

FLAGS

There are some additional flags that can currently be used
only in the "shell" command: (for example ":shell -w df")

 p   Redirect output to the pager
 s   Silent mode.  Output will be discarded.
 w   Wait for an Enter-press when the process is done
Run Code Online (Sandbox Code Playgroud)

  • 有输出吗?我执行`:shell realpath %s`,但没有输出。 (3认同)