updated to v1.13

This commit is contained in:
Dan Remollino
2023-03-31 01:05:51 -04:00
parent 2297e68c86
commit 941844d99a
3 changed files with 21 additions and 7 deletions

View File

@ -61,9 +61,10 @@ nova.commands.register('figlet', (workspace, figletArgs, textToConvert, postConv
// FIGlet convert the selected text in the editor
nova.commands.register('figletTextEditor', editor => {
let figConfig = {
outputWidth: '-w' + nova.config.get('figlet_text.outputWidth', 'number'),
textDirection: nova.config.get('figlet_text.textDirection', 'string'),
justification: nova.config.get('figlet_text.justification', 'string'),
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')
}
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':