hn.today

Show HN: I made text selection on macOS programmable

github.com5 points4 comments

OpenClip is an open-source macOS utility that turns any text selection into a programmable action bar, offering copy, transform, math evaluation, AI-assisted rewriting, web searches and custom extensions. A floating popup appears next to highlighted text (or the clipboard when nothing is selected), and a global hotkey (⌥⌘C) opens a fuzzy action-search palette across the entire action catalog. Built-in zero-config actions include search, copy/cut/paste and text transforms (UPPER/lower/Title/camelCase); AI actions can run through Apple Intelligence, a local Ollama model, or cloud providers (OpenAI/Claude) and render native result cards. App-specific scoping, regex visibility rules, and per-action options let users constrain when and how actions appear.

Extensibility is central: extensions are simple folders or .openclipext packages with a JSON manifest and a script (JavaScript, shell, AppleScript, URL templates, keypress, Shortcuts, Services) placed in ~/.openclip/extensions or installed from an in-app Extension Store. The project is Swift-based (Swift 6) with a core domain framework and AppKit/SwiftUI front-end, includes docs, tests, and build scripts, and can be installed via Homebrew or a DMG. Accessibility permission is required to detect selections. OpenClip is MIT-licensed and explicitly independent of PopClip.

Read on github.com4 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Other

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.