Add new editor command

Goal is to launch an external editor (eg vim) to edit the text there.
This commit is contained in:
Stefan
2021-02-15 19:47:21 +01:00
committed by Michael Vetter
parent 791b13cb9a
commit 8be8f75b87
3 changed files with 55 additions and 0 deletions

View File

@@ -2586,6 +2586,20 @@ static struct cmd_t command_defs[] = {
CMD_NOEXAMPLES
},
{ "/editor",
parse_args, 0, 0, NULL,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_editor)
CMD_TAGS(
CMD_TAG_CHAT)
CMD_SYN(
"/editor")
CMD_DESC(
"Call editor")
CMD_NOARGS
CMD_NOEXAMPLES
},
// NEXT-COMMAND (search helper)
};