Live data from Hacker News

Show HN: I automated half of my typing

github.com

81–90 of 331 posts

Re: Show HN: I automated half of my typing

#81
post #21

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 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 :)

Re: Show HN: I automated half of my typing

#82

I use a tool called "Espanso" to accomplish something similar at work. It only runs locally, so no weird data scraping issues to worry about. And it's easy to update as things changes because everything lives in a simple yml file. https://espanso.org/ It can do simple text replacement, so I have words, phrases, and sentences I use frequently compressed into a few keyboard clicks. It can also grab what is in your clip…

Love espanso, I use it in Mac, Linux, and Windows!

The creator is also incredibly nice, one of those rare open source devs that seems to go out of his way to validate concerns and make PRs truly feel welcome.

Great project.

Re: Show HN: I automated half of my typing

#83

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!

Re: Show HN: I automated half of my typing

#84

I use similar abbreviations in code editor, for example: r0 -> return false rn -> return null t -> this puf -> public function You can easily find the opportunities for saving typing by analyzing existing code and most used words there.

I tried for a bit using abbreviations while coding as well, but I kept running into variable names that I wanted to use

Re: Show HN: I automated half of my typing

#85
post #6

This is neat! I've thought about doing something similar with my shell history to help me figure out which shell aliases I should create.

ooh love it! I also have a HUGE bash aliases file, but that's all manually constructed, not automatic. some favs:

cm = git commit -m st = git status inst = sudo apt get install -y fucking = sudo

Re: Show HN: I automated half of my typing

#87

On Windows, better fit is Autohotkey and its hotstrings for people wanting to use this. It's much better for that as it supports full programming language so you could use function results and similar to produce abbreviations. https://www.autohotkey.com/docs/v1/Hotstrings.htm

I have a windows computer as well (mainly for EE tools and gaming) and have been thinking about extending this to also generate configs for AutoHotkey

Re: Show HN: I automated half of my typing

#88

I use the native feature for this in macOS and iOS a lot!

That feature is a bit of a joke though, isn't it? It seems to only work for apps that have specific integration with it.

Specifically, * not in terminal * not in Chrome URL bar (but yes in text areas) * not in emacs * not in vim

I'd like a native version very much, but only when it works in most places. As it is now, I'd have to configure many things individually, which is a bit of a maintenance nightmare.

I guess a viable answer would be to use an external keyboard with a firmware under your control. All DIY mechanical keyboards and lots of commercial ones fall under that category. But that won't work for laptops on the go...

Re: Show HN: I automated half of my typing

#89
post #29

If you're going to use models, why not models all the way through? In other words, rather than using them merely to identify words to abbreviate and suggested abbreviations, why not use an LLM that can take a bunch of abbreviated text and infer what you're trying to abbreviate? Tht wy, u dn't hv 2 mem lsts f abbrs ahd f tm. ChatGPT was able to successfully guess that last sentence in abbreviated form: That way, you d…

So many abbreviations being obvious was really key to me being able to memorize them. I just think "how would I abbreviate this" and that's almost always what my abbreviation actually is

Re: Show HN: I automated half of my typing

#90

I use a tool called "Espanso" to accomplish something similar at work. It only runs locally, so no weird data scraping issues to worry about. And it's easy to update as things changes because everything lives in a simple yml file. https://espanso.org/ It can do simple text replacement, so I have words, phrases, and sentences I use frequently compressed into a few keyboard clicks. It can also grab what is in your clip…

A sidenote, but Espanso can also be set up to communicate with eg chatgpt; you copy some text and type a trigger word such as ":ask" or ":debug" and it makes a request from the trigger and the clipboard and returns the reply from openai https://github.com/rohitna/chatgpt-script
Post reply on HN