Lurker News
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.

Comments (313) 91 threads

Earlier comments
tikkun9 replies#
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.

quadrature1 reply#
Its not a keylogger in itself, its a tool to configure your keylogger.
MobiusHorizons1 reply#
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.
quadrature#
of course, I was just using the same terminology as the OP
langsoul-com1 reply#
I wonder how that's work?

Something like auto export slack history each week, get a word frequency. Then mantually assign a bunch of expansions based on what you see?

tikkun#
I'm imagining it would be a native desktop app, so that it goes across all apps.
kzrdude#
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..)
rohitpaulk#
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.
eschluntz#
I thought about using a keylogger as a data source, but then I'd have to wait another 6 months to have 6 months worth of data :)
twobitshifter1 reply#
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.
TehShrike#
The Warp CLI kiiiind of does this, but only in the context of interacting with the shell.
tyiz#
PhraseExpress does this.
Bu9818#
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.
pizzafeelsright#
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.

MobiusHorizons4 replies#
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?
eschluntz2 replies#
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!

passion__desire1 reply#
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?
eschluntz1 reply#
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.

Continue this thread — 1 reply

MobiusHorizons#
Very interesting. It sounds like you do a lot more repetitive communication than I do. Thanks for explaining.
fsckboy#
i wonder if touch typing figures in?
xps#
Saving time may be one aspect of it but I can also see it being useful for people suffering from repetitive strain injury / carpal tunnel syndrome.
LinXitoW#
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.
ThinkBeat4 replies#
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.

dr_kiszonka#
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.

eschluntz#
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
mackrevinack1 reply#
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
brimwats#
espanso does that quite well
Brajeshwar1 reply#
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

eschluntz1 reply#
yeah, I spent a decent amount of time getting delimiter correct in the Autokey configs that I generate. Fanciest thing I do is special case ".py" :)

In general "." is a delimiter, EXCEPT for "py" so that it doesn't interfere with me typing python files

Brajeshwar#
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.

Load more comments