Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sloanlance/d79020dac2668402a4d8c7db144845ee to your computer and use it in GitHub Desktop.
Save sloanlance/d79020dac2668402a4d8c7db144845ee to your computer and use it in GitHub Desktop.
Emoji: Emoji and other things that I like Auto Text Expander to fill in for me.
Preferences for Auto Text Expander โ„น๏ธ๐Ÿ‘๐Ÿ˜ƒ

Auto Text Expander preferences

About

"[Auto Text Expander for Google Chromeโ„ข] (https://chrome.google.com/webstore/detail/auto-text-expander-for-go/iibninhmiggehlcdolcilmhacighjamp)" is an extension that lets the user define certain keystroke strings should be translated into other strings. I use it to make special symbols and favorite emoji easier to enter.

Why this gist?

Installing the extension in Google Chrome, then importing the contents of the auto_text_expander.json file contained in this GitHub gist makes it easy to keep my favorite replacement strings available. It's helpful if I were to use someone else's computer or to keep the replacements in sync across multiple Google Chrome profiles on my own computer.

Examples

Using the preferences from this gist, when I type ":)", I get "๐Ÿ˜ƒ". Other examples:

I type I get
"**==" "๐Ÿ‡บ๐Ÿ‡ธ"
";bug;" "๐Ÿ›"
"?!" or "!?" "โ€ฝ"
";time;" "2016-11-17T13:26:24.383-0500"

And so on.

Inspiration

I like the emoji macro support in GitHub's Markdown editors. They allow entering ":bug:" to get ":bug:" ("๐Ÿ›"). They're provided by GitHub's "gemoji" package in db/emoji.json (raw JSON).

I'd like to load them all into Auto Text Expander, unfortunately the extension only supports 510 shortcuts or up to 102400 bytes, both of which are Google Chrome's storage hard limits. So I've picked only the ones I use most often and add more to the list as I need them.

I've noticed that some websites, like Bitbucket, may support the same emoji macros, but instead of inserting the emoji characters, they insert an image of the emoji character. That's good to allow a web site to change emoji styles or let the user see the emoji even if their computer doesn't support them, but sometimes I want the real emoji character on those websites. For that reason, I've switched from using colons (":") to semicolons (";") as my macro delimiters. (Semicolons are slightly faster to type, too.)

Ideas

Until Auto Text Expander supports exporting and importing settings from a user-specified URL, consider workarounds:

  • Make a bookmarklet to read settings from a URL (to raw auto_text_expander.json, for example) and place it in the clipboard for pasting into the ATE import/export dialog.
  • Make a bookmarklet to use the contents of the import/export dialog and publish it to a URL, for example, like that of auto_text_expander.json.
{
"!?": "โ€ฝ",
"(1)": "โ‘ด",
"(2)": "โ‘ต",
"(3)": "โ‘ถ",
"(4)": "โ‘ท",
"**==": "๐Ÿ‡บ๐Ÿ‡ธ",
"-->": "โ†’",
":(": "๐Ÿ™",
":)": "๐Ÿ˜ƒ",
":P": "๐Ÿ˜›",
":\\": "๐Ÿ˜•",
":|": "๐Ÿ˜",
";)": "๐Ÿ˜‰",
";+1;": "๐Ÿ‘",
";-1;": "๐Ÿ‘Ž",
";...;": "โ€ฆ",
";?;": "๏ฟฝ",
";P": "๐Ÿ˜œ",
";^2;": "ยฒ",
";bug;": "๐Ÿ›",
";cake;": "๐ŸŽ‚",
";cat;": "๐Ÿˆ",
";clipboard;": "๐Ÿ“‹",
";date;": "%d(dddd, DD MMMM YYYY)",
";dog;": "๐Ÿ•",
";error;": "๐Ÿšจ",
";flight_arrival;": "๐Ÿ›ฌ",
";flight_departure;": "๐Ÿ›ซ",
";flushed;": "๐Ÿ˜ณ",
";heartbeat;": "๐Ÿ’“",
";info;": "โ„น๏ธ",
";no_littering;": "๐Ÿšฏ",
";paperclip;": "๐Ÿ“Ž",
";paperclips;": "๐Ÿ–‡",
";penguin;": "๐Ÿง",
";pill;": "๐Ÿ’Š",
";therefore;": "โˆด",
";time;": "%d(YYYY-MM-DD[T]HH:mm:ss.SSSZZ)",
";turtle;": "๐Ÿข",
";tv;": "๐Ÿ“บ",
";warn;": "โš ๏ธ",
";weary;": "๐Ÿ˜ฉ",
";zwnj;": "โ€Œ",
";zwsp;": "โ€‹",
"<--": "โ†",
"<-->": "โ†”๏ธŽ",
"?!": "โ€ฝ",
"B)": "๐Ÿ˜Ž",
"OoO": "๐Ÿ˜ฎ",
"TM": "โ„ข",
"XD": "๐Ÿ˜†",
"XP": "๐Ÿ˜",
"p@": "Clipboard contents: %clip% ",
"sign@": "<strong>My Name Here</strong>\n<a href=\"mailto:[email protected]\">[email protected]</a>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment