about summary refs log tree commit diff stats
path: root/src/command/cmd_defs.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-07-02 10:58:54 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-07-02 10:58:54 +0200
commit7de83217c4d7bfdb70b77f2baeb8f12d4147d873 (patch)
treee1fa18772eb4263a92ae3ae5b95cfce796d23497 /src/command/cmd_defs.c
parent59f5b81b85e0af183489bc95414a57ba82005c0e (diff)
downloadprofani-tty-7de83217c4d7bfdb70b77f2baeb8f12d4147d873.tar.gz
executable: Use DEF instead of * as default
So far:
```
/executable urlsave html "test %u" results in url.save.cmd[html]=test %u
/executable urlsave * "test %u" results in nothing.
```

Probably due to limitation in .ini file format.
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r--src/command/cmd_defs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c
index e6fdf202..c36ff712 100644
--- a/src/command/cmd_defs.c
+++ b/src/command/cmd_defs.c
@@ -2472,17 +2472,18 @@ static struct cmd_t command_defs[] =
             CMD_TAG_DISCOVERY)
         CMD_SYN(
             "/executable avatar <cmd>",
-            "/executable urlopen (<fileType>|*) <require_save> <cmd>",
-            "/executable urlsave (<protocol>|*) <cmd>")
+            "/executable urlopen (<fileType>|DEF <require_save> <cmd>",
+            "/executable urlsave (<protocol>|DEF) <cmd>")
         CMD_DESC(
             "Configure executable that should be called upon a certain command."
             "Default is xdg-open.")
         CMD_ARGS(
             { "avatar", "Set executable that is run in /avatar open. Use your favourite image viewer." },
-            { "urlopen", "Set executable that is run in /url open for a given file type. It may be your favorite browser or a specific viewer. Use * to set default command for undefined file type." },
-            { "urlsave", "Set executable that is run in /url save for a given protocol. Use your favourite downloader. Use * to set default command for undefined protocol."})
+            { "urlopen", "Set executable that is run in /url open for a given file type. It may be your favorite browser or a specific viewer. Use DEF to set default command for undefined file type." },
+            { "urlsave", "Set executable that is run in /url save for a given protocol. Use your favourite downloader. Use DEF to set default command for undefined protocol."})
         CMD_EXAMPLES(
             "/executable avatar xdg-open",
+            "/executable urlopen DEF false \"xdg-open %u\"",
             "/executable urlopen html false \"firefox %u\"",
             "/executable urlsave aesgcm \"omut -d %u %p\"")
     },