nmsmith22389 / vscode-incrementor

Advanced increment / decrement actions for (almost) anything.
13 stars 11 forks source link

Allow emoji in enums #18

Open dougwaldron opened 5 years ago

dougwaldron commented 5 years ago

It would be nice to be able to create a sequence of emoji that can be cycled through using this extension. Some examples:

[
    ["๐Ÿ˜Š", "๐Ÿ™‚", "๐Ÿ˜", "๐Ÿ™", "โ˜น๏ธ"],
    ["โค", "๐Ÿงก", "๐Ÿ’›", "๐Ÿ’š", "๐Ÿ’™", "๐Ÿ’œ", "๐Ÿ–ค"],
    ["โ™ ", "โ™ฅ", "โ™ฆ", "โ™ฃ"],
    ["๐Ÿ•", "๐Ÿ•‘", "๐Ÿ•’", "๐Ÿ•“", "๐Ÿ•”", "๐Ÿ••", "๐Ÿ•–", "๐Ÿ•—", "๐Ÿ•˜", "๐Ÿ•™", "๐Ÿ•š", "๐Ÿ•›"]
]
usernamehw commented 4 years ago

Just forked and published because I wanted this feature. Maybe something is broken now, since I simply removed regex pattern check https://github.com/usernamehw/vscode-incrementor/commit/22657ea8ff1f48bc149b76cc2d0bf82a68b413c4

You can try it out and leave some feedback if it works or not.

https://marketplace.visualstudio.com/items?itemName=usernamehw.incrementor

dougwaldron commented 4 years ago

Very nice!

My guess is the only thing that would break is if you added an array that mimicked one of the built-in iterators. For example, ["1", "3", "5"] might give unexpected results.

It's odd that the two regexes in the original were different.