# Encoding: UTF-8
[{beforeRunningCommand: "nop",
command:
"#!/bin/bash\nword=${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}\n\ntry_help () {\n\tif help \"$word\" &>/dev/null; then\n\t\tsource \"$TM_SUPPORT_PATH/lib/webpreview.sh\"\n\t\thtml_header \"Documentation for \\\"$word\\\"\"\n\t\thelp \"$word\" | pre\n\t\thtml_footer\n\t\texit_show_html\n\telif man -w \"$word\" &>/dev/null; then\n\t\tpage=$(\"$TM_SUPPORT_PATH/bin/html_man.sh\" -a \"$word\")\n\t\techo \"\"\n\t\texit_show_html\n\tfi\n}\n\nMANSECT=${MANSECT:-2:3:4:5:6:7:8:9} try_help\ntry_help\n\necho \"Couldn’t find documentation for “${word}”\"\n",
dontFollowNewOutput: true,
fallbackInput: "word",
input: "selection",
keyEquivalent: "^h",
name: "Documentation for Word / Selection",
output: "showAsTooltip",
uuid: "776163E4-730B-11D9-BCD0-000D93589AF6"},
{beforeRunningCommand: "saveActiveFile",
command:
"#!/bin/bash\nif chmod +x \"${TM_FILEPATH}\" && [[ -x \"${TM_FILEPATH}\" ]]\n then echo \"${TM_FILEPATH} is now executable\"\n else echo \"Failed making ${TM_FILEPATH} executable\"\nfi",
input: "none",
keyEquivalent: "^@X",
name: "Make Script Executable",
output: "showAsTooltip",
uuid: "200ED3B8-A64B-11D9-B384-000D93382786"},
{beforeRunningCommand: "nop",
command:
"#!/bin/bash\nNAME=\"$(cat)\"\nif [[ -z \"$NAME\" ]]; then\n\tNAME='${1:function_name}'\nfi\n\ncat <