Ranger - open_with sem suspender

5

Quando abro um arquivo no ranger com um aplicativo GUI não listado no arquivo rifle.conf (ou seja, usando o comando open_with ), a janela do terminal ranger fica "suspensa" até que eu feche o aplicativo GUI.

Por esse motivo, gostaria de ter uma maneira de abrir arquivos com um aplicativo específico, mas ainda assim conseguir navegar pelos arquivos no terminal ranger.

Este é o comportamento padrão quando você abre o mesmo arquivo com um dos aplicativos listados no arquivo rifle.conf .

Existe alguma maneira de atingir o objetivo?

Eu adicionei este gif para esclarecer a questão.

    
por tigerjack89 08.04.2017 / 10:35

1 resposta

6

Experimente open_with com o sinal f ou t :

open_with [application] [flags] [mode]

Open the selected files with the given application, unless it is omitted, in which case the default application is used. flags change the way the application is executed and are described in their own section in this man page. The mode is a number that specifies which application to use. The list of applications is generated by the external file opener "rifle" and can be displayed when pressing "r" in ranger.

Note that if you specify an application, the mode is ignored.

Flags give you a way to modify the behavior of the spawned process. They are used in the commands :open_with (key "r") and :shell (key "!").

 f   Fork the process.  (Run in background)
 c   Run the current file only, instead of the selection
 r   Run application with root privilege (requires sudo)
 t   Run application in a new terminal window
    
por 08.04.2017 / 20:26