Skip to content
tanin47Public

About

Free, open-source programmable macOS tooltip: select text in any app, press a shortcut, and get actions you program.

Topics

Resources

Stars

943 stars

Watchers

7 watching

Forks

Repository files navigation

Programmable Tooltip icon Programmable Tooltip

CI License: MIT Latest release GitHub stars macOS 15+

Select text in any Mac app, press a shortcut, and get instant actions for it. Convert a timestamp, decode base64, open a JIRA ticket from its ID, or jump from a stack trace line to the file on GitHub, all without leaving the keyboard.

It's like PopClip, but you decide exactly what shows up, with no code or with a script in any language. And it's free and open source.

Convert seconds since the epoch to a time and copy it

Download from Mac App Store

Requires macOS 15 or later · Also available as a direct download · Formerly Universal Tip · As featured on Hacker News, ifun.de, and AAPL Ch.

Why Tip · Examples · Installation · Usage · Make your own tips · Privacy · FAQ

Why Tip

  • Works everywhere: Chrome, Terminal, Slack, your editor. If you can select text, Tip works there.
  • No code needed: add built-in tips with one click, or build your own from a URL template like https://www.google.com/search?q={input}.
  • Fully programmable when you want it: write a provider script in Ruby, Python, Bash, or any language to show exactly the actions you need.
  • Private by design: Tip runs in Apple's App Sandbox, asks for no extra permissions, and only ever sees the text you select. More on privacy.
  • Free and open source: MIT licensed. No subscription, no in-app purchase.

Some things people use Tip for:

  • Convert a Unix timestamp like 1577733633 to a readable date
  • Encode or decode base64
  • Open a JIRA ticket, GitHub issue, or internal dashboard from an ID
  • Search Google, GitHub code, or a dictionary for the selected text
  • Open the file on GitHub from a stack trace line
  • Count the characters in a piece of text
  • Run any shell command on the selection, for example curl -v {input}

Examples

Search GitHub code for the selected text

Tip used in Sublime Text.

Open GitHub code search with the selected text

More examples: open a file from a stack trace, open a JIRA ticket

Open a file on GitHub from a stack trace line

Tip used in Terminal.

Open a file on GitHub from a stack trace line

Open a JIRA ticket from the selected text

Tip used in Terminal.

Open JIRA with the selected text

These examples come from the example provider script. Copy it, tweak it, and make it yours.

Installation

  1. Install Programmable Tooltip from the Mac App Store, or download ProgrammableTooltip.app from the latest release (arm64 for a Mac with Apple silicon, x64 for a Mac with an Intel processor) and move it to /Applications. The App Store updates its version; the downloaded version updates itself.
  2. Open the app and go to Settings > General. It walks you through setting up the shortcut and lets you test the tooltip.

That's it. Select 1577733633 and press your shortcut to try it.

Set up the shortcut by hand
  1. Open System Settings > Keyboard > Keyboard Shortcuts > Services.
  2. Expand the Text section and turn on Programmable Tooltip: Open the tooltip.
  3. Optionally, double-click the shortcut to change it (the default is Cmd + 7).

Usage

  1. Select some text in any app.
  2. Press your shortcut. You can also right-click and choose Services > Programmable Tooltip: Open the tooltip.
  3. The tooltip appears next to your mouse pointer.
  4. Use the arrow keys to choose an item and press Enter, or click an item.

An item can do one of three things:

  • Text: copy the text to the clipboard
  • URL: open the URL
  • Execute: run a command, which can show more items
Tips for choosing a shortcut

The default shortcut is Cmd + 7. If you change it, keep the Command key in it: shortcuts without the Command key may only work after you activate Tip once from the menu (application menu > Services > Programmable Tooltip: Open the tooltip).

I use Cmd + F3, because I haven't found an app that uses it. An extra mouse button and a 4-finger trackpad touch both send Cmd + F3, which I set up with Noo.app.

Make your own tips

Without code: the Built-in Tips tab

Go to Settings > Built-in Tips to add tips without writing a script:

  • Built-in tips: ready-made tips you can add with one click
  • Open URL: open a URL built from the selected text, for example https://www.google.com/search?q={input}
  • Execute bash: run a shell command with the selected text, for example curl -v {input}

Each tip has a match rule (every text, starts with, or contains), so it only shows up when it's relevant.

With code: a provider script

For full control, write a provider script in any language. Tip runs it with the selected text and shows the items it prints as JSON:

~/Library/Application\ Scripts/tanin.tip/provider.script [selected-text] --bundle-identifier [bundle-id-of-the-app-you-used-tip-in]
[
  {"type": "text", "value": "Some text"},
  {"type": "url", "label": "Go to JIRA", "value": "https://your-jira-url/JIRA-0001"}
]

The easiest way to start is the button in Settings > Programmable Tips, which installs an example script for you. You can also copy one of the examples by hand:

curl -o ~/Library/Application\ Scripts/tanin.tip/provider.script --create-dirs https://raw.githubusercontent.com/tanin47/tip/main/scripts/provider.script
chmod 755 ~/Library/Application\ Scripts/tanin.tip/provider.script

Tip combines your script's items with the tips from the Built-in Tips tab. See PROVIDER_SCRIPT.md for the full JSON format.

Privacy

Three macOS features let Tip keep a high degree of privacy: App Sandbox, NSServices, and NSUserUnixTask.

  1. Tip runs in the App Sandbox without asking for extra permissions. It can only read and write files in a few predefined directories and can only execute (not write) files in ~/Library/Application\ Scripts/tanin.tip. That's why the provider script lives there.
  2. Tip is a macOS Service. It doesn't (and can't) see the content of other apps. When you trigger Tip, macOS gives it only the selected text.
  3. Tip uses NSUserUnixTask, which is meant for running user-supplied scripts and runs them outside the app's sandbox. That lets your provider script do much more.

Great design by Apple. It's a huge win for privacy.

Official releases send anonymous usage events (for example, "a tooltip was opened" and how many tips it showed) to Aptabase so we can see how the app is used. Builds from source send nothing unless built with an Aptabase app key. It never sends the selected text, your provider script's output, or anything that identifies you. The version from GitHub Releases also checks GitHub for updates. See the privacy policy for exactly what is sent.

Why I built this

I'm prone to repetitive strain injury and carpal tunnel syndrome. Tip cuts down on hand movement, which helps reduce the risk of injury. I'd love for you to try it!

Questions or ideas? Please don't hesitate to open a GitHub issue.

FAQ

Is it really free?

Yes. Programmable Tooltip is free and open source under the MIT license.

Do I need to know how to code?

No. The Built-in Tips tab lets you add built-in tips, URL templates, and shell commands without writing a script. A provider script is only needed if you want full control.

Is it the same app as Universal Tip?

Yes. Universal Tip was renamed to Programmable Tooltip.

What does Tip mean?

Tip is a Thai word that means magical and divine. It comes from the word divya, which exists in both Pali and Sanskrit.

Press

Contributing

Contributions are welcome! Please open an issue to discuss bigger changes first. See DEVELOP.md for how to build the app and run the tests.

Project layout:

  • mac-app/: the macOS app (Swift and SwiftUI)
  • scripts/: example provider scripts
  • PROVIDER_SCRIPT.md: how to write a provider script

License

MIT License

About

Free, open-source programmable macOS tooltip: select text in any app, press a shortcut, and get actions you program.

Topics

Resources

Stars

943 stars

Watchers

7 watching

Forks

Contributors

Languages