Skip to content

devdeepjs/gramr-fix-anywhere

Repository files navigation

Gramr Fix Anywhere

System-wide macOS grammar fix MVP with a menu bar app, a global shortcut, Accessibility-based text access, clipboard fallback, and either OpenAI or Gemini as the rewrite provider.

What It Does

  • Runs as a menu bar app.
  • Uses Control + Option + Shift + G to rewrite the currently selected text in most apps.
  • Uses Control + Option + Shift + V to rewrite current clipboard text and paste it back, which is better for terminal-like apps.
  • Reads and rewrites through macOS Accessibility when possible.
  • Falls back to copy/paste when the target app does not expose a writable Accessibility text value.
  • In terminal-like apps where safe replacement is unreliable, it copies the rewritten result to your clipboard for manual paste.
  • Skips secure fields.
  • Stores the API key in your macOS keychain.
  • Supports OpenAI and Gemini through the same app.
  • Lets you paste an API key from the clipboard and test the provider connection before saving.
  • Lets you denylist apps by bundle ID.

Build

cd /Users/sdevdeep/Desktop/poc/gramr-fix-anywhere
swift build
swift build -c release
./scripts/package_app.sh

Run

Quick dev run:

swift run GramrFixAnywhere

Packaged app:

open dist/GramrFixAnywhere.app

First Launch

  1. Open the app.
  2. Pick OpenAI or Gemini in Settings and add that API key.
  3. Grant Accessibility permission when macOS prompts you.
  4. Select text anywhere and press Control + Option + Shift + G.
  5. In terminal-like apps, copy the rough text first and use Control + Option + Shift + V.

Notes

  • gpt-5.4-mini is the OpenAI default model.
  • gemini-2.5-flash is the Gemini default model.
  • Use the denylist for sensitive apps.
  • If a target app does not support direct Accessibility rewriting, the app temporarily uses the clipboard and restores the previous clipboard content afterward.
  • Prefix presets are built in:
    • /fix for grammar/spelling cleanup
    • /clear for clarity
    • /professional for a polished tone
    • /short to shorten
    • /reply for message/reply wording
    • /prompt to turn rough text into a stronger AI prompt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors