Text Expander

June 13, 2021

The Text Expander chrome extension will expand a word underneath the caret that’s focused inside an input textbox or textarea. A word in this case would be any string of characters separated by one or more spaces.

Text Expander Example 1

The key-value pairs used to find the prefix text and replace it with the expansion are saved locally using chrome.storage. Duplicate keys are overwritten with the updated value.

Text Expander Example 2

Intended use cases are frequently typed search terms to reduce the tediousness of typing out a long string. At the moment, there is only support for <input> and <textarea>, but more development is ongoing to have it work on all editable input boxes.

Check out another extension of mine, the Naver Dictionary.


Profile picture

Written by Samuel Moon who lives and works in Los Angeles building useful things. Check out my GitHub.