News for hackers. Stuff that matters.
Re:Abbrev: A Hidden Ruby Gem by hernantz on Friday August 18, 2023 @09:28AM (#37175323)
I found the example in the post weird too, I thought it would be for auto complete, when you enter sta -> start
Re:Abbrev: A Hidden Ruby Gem by gwern on Friday August 18, 2023 @11:07AM (#37176720)
Yeah, this would be good for tab-completion. It would also work with a time-delay, like git does. It'll print out the guessed command with a second delay, and then if the user doesn't interrupt, execute it.