I've been using this for about a year now - I parsed 6 months of my messages on slack and found the most common phrases I use and generated keyboard shortcuts for them.
Idea for extending this: keylogger (yeah, that's a downside...) that'll watch what you type, learn common phrases, identify common ones, then come up with shortcuts, then each time you type the full phrase it gently reminds you of the shortcut.
Then anyone can install it, no friction, and over time it'll slowly start making you gently more productive.
I guess you are half right, the tool this repo configures is a shortcut engine (autokey). It has access to the key presses, but afaik does not log them.
Would it be better to have some standardized abbreviation? It could gravitate towards those. That should help consistency between different computers (also helps if you have multiple computers..)
I once built a typing tutor that did something like this - it monitored all the mistakes I'd make, and would surface the most typo-ed words for practice.
I wanted to build a keyboard with a keylogger built-in that autocompletes for you with the press of a special key. My idea was to keep the data in a secure vault on device, so that it could not become a security risk.
You could do some of this with an input method editor (IME). It's pretty much an authorized keylogger that can edit your inputs, and is mainly needed for Chinese/Japanese typing. An IME that provides English autocomplete on the desktop (like phones) or shortcuts using an IME framework (like fcitx5) would be an interesting concept.
I went down the rabbithole trying to prototype something like this.
Bluetooth Keyboard -> ESP32 as a keyboard host -> Send keystrokes to USB & File If you have cash there is a USB/PS2 keyboard logger that will capture data to disk.
I feel like typing is never really the bottleneck for me except maybe in some chat interactions would have benefited from the extra bandwidth of video or audio. Do you actually save time on task with these kinds of shortcuts?
My main motivation was very fast slack conversations (Can you post a screenshot?) and a bunch of email responses that are pretty formulaic (sending my calendly link, etc).
For longer writing I'm often frustrated that I can think faster than I can type, so it does help with that too!
For longer writing, why not write anchor words on the scratch notes and then flesh out details? Or do you think, that in the flow of ideas, all sentence details need to be jotted down too? Because you feel they come out perfect the first time?
I certainly write outlines first, but when I do sit down to write a full draft I really like to get to something that's "complete" even if it's really bad. Then I can switch into "editing" mode mentally.
For me, faster typing isn't about saving time in total, it's about reducing the time between thoughts. Typing is a manual process that hinders my thinking, so the faster I can dip into and out of typing, the faster I can get back to typing.
I have spent a good deal of time trying to create text expansions for myself.
(manually)
It is a lot harder than I thought it would be.
To find aliases that dont misfire too often and provide enough value.
Give that I daily communicate in several languages that adds even more
trouble. I have now split it by application.
Different aliases for different applications.
I still have misfires.
Mostly I have found I need delinators.
I prefix my aliases with letter combinations that are unlikely to appear as first letters of words and variable names like kk, zz, qq. For example, qqme is my email signature.
I wish OP's tool suggested aliases for longer phrases than what I saw in the readme. I heard TextExpander for MacOs does that but I am not a Mac user.
ooh yeah, with multiple languages I bet there are WAY fewer available shortcuts. one of my TODOs is to use the actual corpus of text I analyze to also generate the "blacklist" of aliases to avoid
maybe a sweet spot would be to use abbreviations for only the most common words and then
have some sort of simple gui pop up where you can fuzzy search things and then have it pasted in
First, I have to make a personal confession — I never liked the SMS short-hand thingy that worked with pre-iPhone phones. That was one of the reason I seldom use SMS/Text-Messages unless I really need to.
I have been using text-expansion since the early days of TextExpander[1], an app that works on iOS and macOS. However good the iPhone keyboard was, it was always not convenient to type and retype details such as home address, home/work map, and many other work/personal related info. TextExpander helped a lot. I started looking for an alternative when TextExpander converted to a subscription model, which I (personal) believe is not suitable for such a tool. I found a better alternative in Alfred[2], bundled with its Powerpack — Snippets. macOS/iOS also has its built-in “Text Replacements” but it fails me quite often in non-Apple apps. What you have here is similar to that of Apple’s Text Replacement. I let that remain and the others are managed via Alfred. Honestly, I may move to this once I can totally walk out of Alfred (Spotlight is becoming good enough.) However, I’d like to use a delimiter to expand so it does not come in the way of my normal typing (I can touch type). Currently, I use “,” (comma) as a delimiter (Affix) because, in English, there is always a space after a comma and my expansion is only after I type a comma and the short-text without a space. Also the comma key is located conveniently when you touch type. If I do reconcile and stay with the OS’s Text Replacement, I might still introduce the delimiter to prevent automatic expansion of the word which wasn’t intended for that particular scenario. 1. https://textexpander.com 2. https://www.alfredapp.com
The problem with "." as a delimiter is that, unlike written English, it is actually pretty common in the computer world -- for instance, file extensions -- .jpg, .txt, .md.
Comments (313) 91 threads
Earlier commentsThen anyone can install it, no friction, and over time it'll slowly start making you gently more productive.
Something like auto export slack history each week, get a word frequency. Then mantually assign a bunch of expansions based on what you see?
Bluetooth Keyboard -> ESP32 as a keyboard host -> Send keystrokes to USB & File
If you have cash there is a USB/PS2 keyboard logger that will capture data to disk.
For longer writing I'm often frustrated that I can think faster than I can type, so it does help with that too!
Continue this thread — 1 reply
It is a lot harder than I thought it would be. To find aliases that dont misfire too often and provide enough value. Give that I daily communicate in several languages that adds even more trouble.
I have now split it by application. Different aliases for different applications. I still have misfires. Mostly I have found I need delinators.
I wish OP's tool suggested aliases for longer phrases than what I saw in the readme. I heard TextExpander for MacOs does that but I am not a Mac user.
I have been using text-expansion since the early days of TextExpander[1], an app that works on iOS and macOS. However good the iPhone keyboard was, it was always not convenient to type and retype details such as home address, home/work map, and many other work/personal related info. TextExpander helped a lot.
I started looking for an alternative when TextExpander converted to a subscription model, which I (personal) believe is not suitable for such a tool. I found a better alternative in Alfred[2], bundled with its Powerpack — Snippets.
macOS/iOS also has its built-in “Text Replacements” but it fails me quite often in non-Apple apps. What you have here is similar to that of Apple’s Text Replacement. I let that remain and the others are managed via Alfred. Honestly, I may move to this once I can totally walk out of Alfred (Spotlight is becoming good enough.)
However, I’d like to use a delimiter to expand so it does not come in the way of my normal typing (I can touch type). Currently, I use “,” (comma) as a delimiter (Affix) because, in English, there is always a space after a comma and my expansion is only after I type a comma and the short-text without a space. Also the comma key is located conveniently when you touch type.
If I do reconcile and stay with the OS’s Text Replacement, I might still introduce the delimiter to prevent automatic expansion of the word which wasn’t intended for that particular scenario.
1. https://textexpander.com
2. https://www.alfredapp.com
In general "." is a delimiter, EXCEPT for "py" so that it doesn't interfere with me typing python files
All comments shown.
Couldn't load more comments. Check your connection and try again.