From 524a025edc1e561cae89a4db00d0d3c490358534 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 13:00:43 +0100 Subject: [PATCH] add data for run-mailcap --- data/run-mailcap.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 data/run-mailcap.json diff --git a/data/run-mailcap.json b/data/run-mailcap.json new file mode 100644 index 0000000..57b173e --- /dev/null +++ b/data/run-mailcap.json @@ -0,0 +1,28 @@ +{ + "functions": { + "shell": [ + { + "description": "This invokes the default pager, which is likely to be 'less', other functions may apply.", + "code": "run-mailcap --action=view /etc/hosts\n!/bin/sh\n" + } + ], + "file-read": [ + { + "description": "This invokes the default pager, which is likely to be 'less', other functions may apply.", + "code": "run-mailcap --action=view [file]" + } + ], + "file-write": [ + { + "description": "The file must exist and be not empty. This invokes the default editor, which is likely to be 'vi', other functions may apply.", + "code": "run-mailcap --action=edit [file]" + } + ], + "sudo": [ + { + "description": "This invokes the default pager, which is likely to be 'less', other functions may apply.", + "code": "sudo run-mailcap --action=view /etc/hosts\n!/bin/sh\n" + } + ] + } +} \ No newline at end of file