Example macro: Shell inputs with short description

This is a simple example macro that uses a text trigger (yt-dlp#) to display a selection of shell inputs (which at least I can't remember) for a command with a short description and pasts the selection to the terminal. Nothing fancy, but it took me years of looking stuff up again and again, before coming up with this.

yt-dlp (en).kmmacros (2.2 KB)

1 Like

A great idea — and one that's been taken to an extreme by tldr, a community-driven tips sheet for a whole slew of Unix and macOS Terminal commands. I installed it via Homebrew, but their site lists a number of alternatives.

Here's what it has to say about yt-dlp:

$ tldr yt-dlp

yt-dlp

A youtube-dl fork with additional features and fixes.
Download videos from YouTube and other websites.
See also: yt-dlp, ytfzf.
More information: https://github.com/yt-dlp/yt-dlp.

It's obviously not as specific as your personalized cheat sheet, but I find it invaluable for a slew of commands (ln, rsync, etc) whose options I can never remember :). And there are tldr entries for hundreds of commands, both built-in and third party.

-rob.

1 Like