298 lines
11 KiB
JSON
298 lines
11 KiB
JSON
{
|
|
"identifier": "dev.danremollino.figlettext",
|
|
"name": "FIGlet Text",
|
|
"organization": "Dan Remollino",
|
|
"description": "Convert selected text to FIGlet. Great for adding readable text to the Minimap, creating l33t text headers, and organizing files.",
|
|
"version": "1.7",
|
|
"categories": ["commands", "formatters"],
|
|
|
|
"entitlements": {
|
|
"clipboard": false,
|
|
"process": true,
|
|
"requests": false,
|
|
"filesystem": "readwrite"
|
|
},
|
|
|
|
"main": "main.js",
|
|
|
|
"config": [
|
|
{
|
|
"type": "section",
|
|
"required": false,
|
|
"title": "Font",
|
|
"children": [
|
|
{
|
|
"key": "figlet_text.font",
|
|
"title": "Font",
|
|
"description": "The FIGlet font to use when converting text.",
|
|
"type": "enum",
|
|
"radio": false,
|
|
"values": [
|
|
"3-d",
|
|
"3x5",
|
|
"5lineoblique",
|
|
"acrobatic",
|
|
"alligator",
|
|
"alligator2",
|
|
"alphabet",
|
|
"avatar",
|
|
"banner",
|
|
"banner3-D",
|
|
"banner3",
|
|
"banner4",
|
|
"barbwire",
|
|
"basic",
|
|
"bell",
|
|
"big",
|
|
"bigchief",
|
|
"binary",
|
|
"block",
|
|
"bubble",
|
|
"bulbhead",
|
|
"calgphy2",
|
|
"caligraphy",
|
|
"catwalk",
|
|
"chunky",
|
|
"coinstak",
|
|
"colossal",
|
|
"computer",
|
|
"contessa",
|
|
"contrast",
|
|
"cosmic",
|
|
"cosmike",
|
|
"cricket",
|
|
"cursive",
|
|
"cyberlarge",
|
|
"cybermedium",
|
|
"cybersmall",
|
|
"diamond",
|
|
"digital",
|
|
"doh",
|
|
"doom",
|
|
"dotmatrix",
|
|
"drpepper",
|
|
"eftichess",
|
|
"eftifont",
|
|
"eftipiti",
|
|
"eftirobot",
|
|
"eftitalic",
|
|
"eftiwall",
|
|
"eftiwater",
|
|
"epic",
|
|
"fender",
|
|
"fourtops",
|
|
"fuzzy",
|
|
"goofy",
|
|
"gothic",
|
|
"graffiti",
|
|
"hollywood",
|
|
"invita",
|
|
"isometric1",
|
|
"isometric2",
|
|
"isometric3",
|
|
"isometric4",
|
|
"italic",
|
|
"ivrit",
|
|
"jazmine",
|
|
"jerusalem",
|
|
"katakana",
|
|
"kban",
|
|
"larry3d",
|
|
"lcd",
|
|
"lean",
|
|
"letters",
|
|
"linux",
|
|
"lockergnome",
|
|
"madrid",
|
|
"marquee",
|
|
"maxfour",
|
|
"mike",
|
|
"mini",
|
|
"mirror",
|
|
"mnemonic",
|
|
"morse",
|
|
"moscow",
|
|
"nancyj-fancy",
|
|
"nancyj-underlined",
|
|
"nancyj",
|
|
"nipples",
|
|
"ntgreek",
|
|
"o8",
|
|
"ogre",
|
|
"pawp",
|
|
"peaks",
|
|
"pebbles",
|
|
"pepper",
|
|
"poison",
|
|
"puffy",
|
|
"pyramid",
|
|
"rectangles",
|
|
"relief",
|
|
"relief2",
|
|
"rev",
|
|
"roman",
|
|
"rot13",
|
|
"rounded",
|
|
"rowancap",
|
|
"rozzo",
|
|
"runic",
|
|
"runyc",
|
|
"sblood",
|
|
"script",
|
|
"serifcap",
|
|
"shadow",
|
|
"short",
|
|
"slant",
|
|
"slide",
|
|
"slscript",
|
|
"small",
|
|
"smisome1",
|
|
"smkeyboard",
|
|
"smscript",
|
|
"smshadow",
|
|
"smslant",
|
|
"smtengwar",
|
|
"speed",
|
|
"stampatello",
|
|
"standard",
|
|
"starwars",
|
|
"stellar",
|
|
"stop",
|
|
"straight",
|
|
"tanja",
|
|
"tengwar",
|
|
"term",
|
|
"thick",
|
|
"thin",
|
|
"threepoint",
|
|
"ticks",
|
|
"ticksslant",
|
|
"tinker-toy",
|
|
"tombstone",
|
|
"trek",
|
|
"tsalagi",
|
|
"twopoint",
|
|
"univers",
|
|
"usaflag",
|
|
"wavy",
|
|
"weird"
|
|
],
|
|
"default": "banner3"
|
|
},
|
|
{
|
|
"key": "figlet_text.previewText",
|
|
"title": "Preview Text",
|
|
"description": "The text to output in the Preview textbox below.",
|
|
"type": "string",
|
|
"default": "FIGlet"
|
|
},
|
|
{
|
|
"key": "figlet_text.preview",
|
|
"title": "Preview",
|
|
"description": "Admittedly, this isn't the ideal preview as Nova uses a non-monospaced output for the Preview textbox above. Use the Extensions -> Preview All Installed FIGlet Fonts menu item to generate an accurate, custom text FIGlet font preview document.",
|
|
"type": "text"
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"type": "section",
|
|
"required": false,
|
|
"title": "Text",
|
|
"children": [
|
|
{
|
|
"key": "figlet_text.outputWidth",
|
|
"title": "Output Width",
|
|
"description": "The screen width FIGlet assumes when formatting its output. FIGlet will wrap text that is rendered larger than this value. An Output Width of 1 is a special value that tells FIGlet to print each non-space FIGcharacter on a separate line. This value will affect text justification.",
|
|
"link": "http://www.figlet.org/figlet-man.html",
|
|
"type": "number",
|
|
"default": 80
|
|
},
|
|
{
|
|
"key": "figlet_text.textDirection",
|
|
"title": "Text Direction",
|
|
"description": "Controls whether FIGlet prints left-to-right or right-to-left. 'Auto' makes FIGlet use whichever is specified in the font file.",
|
|
"link": "http://www.figlet.org/figlet-man.html",
|
|
"type": "enum",
|
|
"radio": false,
|
|
"values": [["-X", "Auto"], ["-L", "Left-to-right"], ["-R", "Right-to-left"]],
|
|
"default": "-X"
|
|
},
|
|
{
|
|
"key": "figlet_text.justification",
|
|
"title": "Justification",
|
|
"description": "Justification of FIGlet output. 'Auto' sets the justification according to the value of Text Direction.",
|
|
"link": "http://www.figlet.org/figlet-man.html",
|
|
"type": "enum",
|
|
"radio": false,
|
|
"values": [["-x", "Auto"], ["-l", "Left"], ["-c", "Center"], ["-r", "Right"]],
|
|
"default": "-x"
|
|
}
|
|
]
|
|
},
|
|
|
|
{
|
|
"type": "section",
|
|
"required": false,
|
|
"title": "Transformation",
|
|
"children": [
|
|
{
|
|
"key": "figlet_text.comment",
|
|
"title": "Comment FIGlet Output",
|
|
"description": "FIGlet Text will auto line comment the output. Currently supported in CSS, HTML, Javascript, PHP, Typescript, and SCSS syntaxes.",
|
|
"type": "boolean",
|
|
"default": true
|
|
},
|
|
{
|
|
"key": "figlet_text.commentPadding",
|
|
"title": "Comment Padding",
|
|
"description": "The number of Comment Padding Characters to add between the converted text and comment symbols.",
|
|
"type": "number",
|
|
"default": 4
|
|
},
|
|
{
|
|
"key": "figlet_text.commentPaddingStr",
|
|
"title": "Comment Padding Character",
|
|
"description": "Text string to use as Comment Padding. Defaults to a single space.",
|
|
"type": "string",
|
|
"default": " "
|
|
},
|
|
{
|
|
"key": "figlet_text.prependNewLines",
|
|
"title": "Prepend New Lines",
|
|
"description": "Amount of new lines to prepend to the converted text.",
|
|
"type": "number",
|
|
"default": 0
|
|
},
|
|
{
|
|
"key": "figlet_text.appendNewLines",
|
|
"title": "Append New Lines",
|
|
"description": "Amount of new lines to append to the converted text.",
|
|
"type": "number",
|
|
"default": 0
|
|
}
|
|
]
|
|
}
|
|
],
|
|
|
|
"commands": {
|
|
"editor": [
|
|
{
|
|
"title": "Convert Selection to FIGlet",
|
|
"command": "figletTextEditor",
|
|
"shortcut": "ctrl-opt-cmd-f",
|
|
"when": "editorHasSelection"
|
|
}
|
|
],
|
|
"extensions": [
|
|
{
|
|
"title": "Preview All Installed FIGlet Fonts",
|
|
"command": "figletTextFontPreviewAll"
|
|
}
|
|
]
|
|
},
|
|
|
|
"bugs": "https://github.com/danremollino/nova-figlet/issues",
|
|
"repository": "https://github.com/danremollino/nova-figlet"
|
|
}
|