updated to v1.13
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
## Version 1.13
|
||||
- added option to set how FIGcharacters are spaced
|
||||
|
||||
## Version 1.12
|
||||
- added option toggle margin output
|
||||
- added separate Comment Padding output options for block and inline comments
|
||||
|
@ -62,8 +62,9 @@ nova.commands.register('figlet', (workspace, figletArgs, textToConvert, postConv
|
||||
nova.commands.register('figletTextEditor', editor => {
|
||||
let figConfig = {
|
||||
outputWidth: '-w' + nova.config.get('figlet_text.outputWidth', 'number'),
|
||||
charSpacing: nova.config.get('figlet_text.charSpacing', 'string'),
|
||||
textDirection: nova.config.get('figlet_text.textDirection', 'string'),
|
||||
justification: nova.config.get('figlet_text.justification', 'string'),
|
||||
justification: nova.config.get('figlet_text.justification', 'string')
|
||||
}
|
||||
|
||||
let bordersEnabled = nova.config.get('figlet_text.borders', 'boolean')
|
||||
@ -199,7 +200,7 @@ nova.commands.register('figletTextEditor', editor => {
|
||||
switch (border) {
|
||||
case 'left':
|
||||
figletTextArr = figletTextArr.map(line => {
|
||||
if (!/^\s+$/.test(line)) { return `${borders[border].char.repeat(borders[border].width)}${line}` }
|
||||
if (!/^\s+$/.test(line)) return `${borders[border].char.repeat(borders[border].width)}${line}`
|
||||
})
|
||||
break
|
||||
case 'right':
|
||||
|
@ -3,7 +3,7 @@
|
||||
"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.12",
|
||||
"version": "1.13",
|
||||
"categories": ["commands", "formatters"],
|
||||
|
||||
"entitlements": {
|
||||
@ -485,6 +485,16 @@
|
||||
"type": "number",
|
||||
"default": 160
|
||||
},
|
||||
{
|
||||
"key": "figlet_text.charSpacing",
|
||||
"title": "Character Spacing",
|
||||
"description": "These options control how FIGlet spaces the FIGcharacters that it outputs. These options may or may not affect the character output depending on your font selection.",
|
||||
"link": "http://www.figlet.org/figlet-man.html",
|
||||
"type": "enum",
|
||||
"radio": false,
|
||||
"values": [["-s", "Default (-s)"], ["-S", "Smushing (-S)"], ["-k", "Kerning (-k)"], ["-W", "Full Width (-W)"]],
|
||||
"default": "-s"
|
||||
},
|
||||
{
|
||||
"key": "figlet_text.textDirection",
|
||||
"title": "Text Direction",
|
||||
@ -492,7 +502,7 @@
|
||||
"link": "http://www.figlet.org/figlet-man.html",
|
||||
"type": "enum",
|
||||
"radio": false,
|
||||
"values": [["-X", "Auto"], ["-L", "Left-to-right"], ["-R", "Right-to-left"]],
|
||||
"values": [["-X", "Auto (-X)"], ["-L", "Left-to-right (-L)"], ["-R", "Right-to-left (-R)"]],
|
||||
"default": "-X"
|
||||
},
|
||||
{
|
||||
@ -502,7 +512,7 @@
|
||||
"link": "http://www.figlet.org/figlet-man.html",
|
||||
"type": "enum",
|
||||
"radio": false,
|
||||
"values": [["-x", "Auto"], ["-l", "Left"], ["-c", "Center"], ["-r", "Right"]],
|
||||
"values": [["-x", "Auto (-x)"], ["-l", "Left (-l)"], ["-c", "Center (-c)"], ["-r", "Right (-r)"]],
|
||||
"default": "-x"
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user