From 35351387a197e55f5389545efe3941b58ca94ffd Mon Sep 17 00:00:00 2001 From: Daniel Santos Date: Fri, 24 Mar 2023 14:56:35 +0000 Subject: /executable async on|off * rename call_external() to call_external_async(). * add call_external_fork(). This function makes all executable calls to be forked and synchronous. So that running profanity inside a TTY, we can set all executables to be TTY programs (fbi, mpv, w3m, emacs eww, etc.), making possible to open urls or see images inside the TTY. * add '/executable async' command. * make call_external() use either call_external_async() or call_external_fork(), according to the '/executable async' configuration. Signed-off-by: Daniel Santos --- src/command/cmd_ac.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/command/cmd_ac.c') diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index d182e4db..527281a7 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1116,11 +1116,7 @@ cmd_ac_init(void) autocomplete_add(executable_ac, "urlopen"); autocomplete_add(executable_ac, "urlsave"); autocomplete_add(executable_ac, "editor"); - autocomplete_add(executable_ac, "vcard_photo"); - - executable_param_ac = autocomplete_new(); - autocomplete_add(executable_param_ac, "set"); - autocomplete_add(executable_param_ac, "default"); + autocomplete_add(executable_ac, "async"); intype_ac = autocomplete_new(); autocomplete_add(intype_ac, "console"); -- cgit 1.4.1-2-gfad0