Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some way to pick from pico-8 glyphs #30

Closed
mika76 opened this issue Nov 25, 2022 · 7 comments
Closed

Add some way to pick from pico-8 glyphs #30

mika76 opened this issue Nov 25, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@mika76
Copy link

mika76 commented Nov 25, 2022

It's useful to use the especially when listening to buttons - so having some sort of quick-pick or something would really help

@japhib
Copy link
Owner

japhib commented Nov 25, 2022

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"?

@mika76
Copy link
Author

mika76 commented Nov 25, 2022

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 😊

@japhib
Copy link
Owner

japhib commented Nov 26, 2022

I see. Not sure how to do this. It'd definitely be a cool feature though!

@mika76
Copy link
Author

mika76 commented Nov 26, 2022

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": [
			""
		]
	},
}

@japhib
Copy link
Owner

japhib commented Dec 2, 2022

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.

@japhib japhib added the enhancement New feature or request label Dec 2, 2022
japhib added a commit that referenced this issue Dec 22, 2022
@japhib
Copy link
Owner

japhib commented Dec 22, 2022

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.

@japhib japhib closed this as completed Dec 22, 2022
@japhib
Copy link
Owner

japhib commented Dec 22, 2022

Fix released just now with 0.4.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants