Add some way to pick from pico-8 glyphs
mika76 opened this issue ยท 7 comments
It's useful to use the especially when listening to buttons - so having some sort of quick-pick or something would really help
I don't understand the request. Can you provide more details? What glyphs are you referring to? And what did you have in mind for a "quick-pick"?
I mean the icons you can place when pressing shift in pico-8 https://pico-8.fandom.com/wiki/P8SCII symbols, hashes, etc...
not sure about how - maybe snippets, or some sort of clickable window? Anything to make it easy ๐
I see. Not sure how to do this. It'd definitely be a cool feature though!
I came up with this snippet file - maybe you can try incorporate it into the extension if you'd like. Basically you just need to start typing p8scii
and the selection should popup. Also I only included the things with names, I have no idea how I would include the other japanese characters...
PS: I copy pasted the names and characters from https://pico-8.fandom.com/wiki/P8SCII and have not tested them all, but the ones I tried worked...
{
//Symbols and Japanese punctuation
"Vertical rectangle": {
"prefix": "p8scii-vertical-rectangle",
"body": [
"โฎ"
],
},
"Filled square": {
"prefix": "p8scii-filled-square",
"body": [
"โ "
],
},
"Hollow square": {
"prefix": "p8scii-hollow-square",
"body": [
"โก"
],
},
"Five dot": {
"prefix": "p8scii-five-dot",
"body": [
"โ"
],
},
"Four dot": {
"prefix": "p8scii-four-dot",
"body": [
"โ"
],
},
"Pause": {
"prefix": "p8scii-pause",
"body": [
"โ"
],
},
"Back": {
"prefix": "p8scii-back",
"body": [
"โ"
],
},
"Forward": {
"prefix": "p8scii-forward",
"body": [
"โถ"
],
},
"Japanese starting quote": {
"prefix": "p8scii-japanese-starting-quote",
"body": [
"ใ"
],
},
"Japanese ending quote": {
"prefix": "p8scii-japanese-ending-quote",
"body": [
"ใ"
],
},
"Yen sign": {
"prefix": "p8scii-yen-sign",
"body": [
"ยฅ"
],
},
"Interpunct": {
"prefix": "p8scii-interpunct",
"body": [
"โข"
],
},
"Japanese comma": {
"prefix": "p8scii-japanese-comma",
"body": [
"ใ"
],
},
"Japanese full stop": {
"prefix": "p8scii-japanese-full stop",
"body": [
"ใ"
],
},
"Japanese dakuten": {
"prefix": "p8scii-japanese-dakuten",
"body": [
"ใ"
],
},
"Japanese handakuten": {
"prefix": "p8scii-japanese-handakuten",
"body": [
"ใ"
],
},
//Typeable symbols
"Hollow circle": {
"prefix": "p8scii-hollow-circle",
"body": [
"โ"
]
},
"Rectangle": {
"prefix": "p8scii-rectangle",
"body": [
"โ"
]
},
"Checkerboard": {
"prefix": "p8scii-checkerboard",
"body": [
"โ"
]
},
"Jelpi": {
"prefix": "p8scii-jelpi",
"body": [
"๐ฑ"
]
},
"Down key": {
"prefix": "p8scii-down-key",
"body": [
"โฌ๏ธ"
]
},
"Dot pattern": {
"prefix": "p8scii-dot-pattern",
"body": [
"โ"
]
},
"Throwing star": {
"prefix": "p8scii-throwing-star",
"body": [
"โฝ"
]
},
"Ball": {
"prefix": "p8scii-ball",
"body": [
"โ"
]
},
"Heart": {
"prefix": "p8scii-heart",
"body": [
"โฅ"
]
},
"Eye": {
"prefix": "p8scii-eye",
"body": [
"โ"
]
},
"Man": {
"prefix": "p8scii-man",
"body": [
"์"
]
},
"House": {
"prefix": "p8scii-house",
"body": [
"โ"
]
},
"Left key": {
"prefix": "p8scii-left-key",
"body": [
"โฌ
๏ธ"
]
},
"Face": {
"prefix": "p8scii-face",
"body": [
"๐"
]
},
"Musical note": {
"prefix": "p8scii-musical-note",
"body": [
"โช"
]
},
"O key": {
"prefix": "p8scii-o-key",
"body": [
"๐
พ๏ธ"
]
},
"Diamond": {
"prefix": "p8scii-diamond",
"body": [
"โ"
]
},
"Ellipsis": {
"prefix": "p8scii-ellipsis",
"body": [
"โฆ"
]
},
"Right key": {
"prefix": "p8scii-right-key",
"body": [
"โก๏ธ"
]
},
"Five-pointed star": {
"prefix": "p8scii-five-pointed-star",
"body": [
"โ
"
]
},
"Hourglass": {
"prefix": "p8scii-hourglass",
"body": [
"โง"
]
},
"Up key": {
"prefix": "p8scii-up-key",
"body": [
"โฌ๏ธ"
]
},
"Birds": {
"prefix": "p8scii-birds",
"body": [
"ห"
]
},
"Sawtooth": {
"prefix": "p8scii-sawtooth",
"body": [
"โง"
]
},
"X key": {
"prefix": "p8scii-x-key",
"body": [
"โ"
]
},
"Horiz lines": {
"prefix": "p8scii-horiz-lines",
"body": [
"โค"
]
},
"Vert lines": {
"prefix": "p8scii-vert-lines",
"body": [
"โฅ"
]
},
"Left arc": {
"prefix": "p8scii-left-arc",
"body": [
"โ"
]
},
"Right arc": {
"prefix": "p8scii-right-arc",
"body": [
"โ"
]
},
}
I like the idea of adding the snippets. If you submit a PR adding these snippets to syntaxes/snippets.json
, I'll be happy to merge it.
I changed some of the shortcuts to make them shorter and then added these suggestions in c7d3f75 .
Not released yet -- I'll make a comment when it is.
Fix released just now with 0.4.10