summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2023-02-12 20:51:28 +0100
committerJohannes Altmanninger <aclopte@gmail.com>2023-02-17 20:50:58 +0100
commit213ea922b16bf95c5b441ce2cae2de6d221f638a (patch)
tree96cc2e01ea2702c7e9c480e5bee6538fefb6b816 /src/main.cc
parent9e0502a1ca234bd20e17f078e75c3d5da4687a82 (diff)
Complete arguments to "echo -to-file"
Including this here because grandparent parent commit broke completions for "edit -fifo".
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/main.cc b/src/main.cc
index 3e5ba370..6e4415cf 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1071,23 +1071,23 @@ int main(int argc, char* argv[])
set_signal_handler(SIGTTOU, SIG_IGN);
const ParameterDesc param_desc{
- SwitchMap{ { "c", { true, "connect to given session" } },
- { "e", { true, "execute argument on client initialisation" } },
- { "E", { true, "execute argument on server initialisation" } },
- { "n", { false, "do not source kakrc files on startup" } },
- { "s", { true, "set session name" } },
- { "d", { false, "run as a headless session (requires -s)" } },
- { "p", { true, "just send stdin as commands to the given session" } },
- { "f", { true, "filter: for each file, select the entire buffer and execute the given keys" } },
- { "i", { true, "backup the files on which a filter is applied using the given suffix" } },
- { "q", { false, "in filter mode, be quiet about errors applying keys" } },
- { "ui", { true, "set the type of user interface to use (terminal, dummy, or json)" } },
- { "l", { false, "list existing sessions" } },
- { "clear", { false, "clear dead sessions" } },
- { "debug", { true, "initial debug option value" } },
- { "version", { false, "display kakoune version and exit" } },
- { "ro", { false, "readonly mode" } },
- { "help", { false, "display a help message and quit" } } }
+ SwitchMap{ { "c", { ArgCompleter{}, "connect to given session" } },
+ { "e", { ArgCompleter{}, "execute argument on client initialisation" } },
+ { "E", { ArgCompleter{}, "execute argument on server initialisation" } },
+ { "n", { {}, "do not source kakrc files on startup" } },
+ { "s", { ArgCompleter{}, "set session name" } },
+ { "d", { {}, "run as a headless session (requires -s)" } },
+ { "p", { ArgCompleter{}, "just send stdin as commands to the given session" } },
+ { "f", { ArgCompleter{}, "filter: for each file, select the entire buffer and execute the given keys" } },
+ { "i", { ArgCompleter{}, "backup the files on which a filter is applied using the given suffix" } },
+ { "q", { {}, "in filter mode, be quiet about errors applying keys" } },
+ { "ui", { ArgCompleter{}, "set the type of user interface to use (terminal, dummy, or json)" } },
+ { "l", { {}, "list existing sessions" } },
+ { "clear", { {}, "clear dead sessions" } },
+ { "debug", { ArgCompleter{}, "initial debug option value" } },
+ { "version", { {}, "display kakoune version and exit" } },
+ { "ro", { {}, "readonly mode" } },
+ { "help", { {}, "display a help message and quit" } } }
};
try