Skip to content

apalchys/rewrite-macos

Repository files navigation

Rewrite

A macOS application that runs in the background and fixes grammar errors in selected text using OpenAI's API.

image

Features

  • Runs as a background application with menu bar icon
  • Activated with hotkey (Command+Shift+F)
  • Automatically captures selected text from any application
  • Fixes grammar using OpenAI's GPT-4o
  • Customizable model selection (GPT-4o, GPT-4o mini, GPT-4.5 Preview)
  • Securely stores your API key in preferences
  • Replaces original text with corrected version
  • Preserves clipboard contents

Building

See BUILD_INSTRUCTIONS.md

Running the Application

  1. After building, run the application
  2. The app will appear in your menu bar with a pencil icon
  3. The first time you use it, you'll need to grant accessibility permissions:
    • Go to System Preferences > Security & Privacy > Privacy > Accessibility
    • Add and enable the Rewrite application
  4. Set up your OpenAI API key:
    • Click on the app icon in the menu bar
    • Select "Preferences..." (or press Command+,)
    • Enter your OpenAI API key in the settings window

Usage

  1. Select text in any application
  2. Press Command+Shift+F
  3. Wait a moment while the text is processed
  4. The selected text will be replaced with the grammar-corrected version

Requirements

  • macOS 12.0 or later
  • OpenAI API key

Dependencies

  • HotKey - For global hotkey registration

Troubleshooting

If the hotkey doesn't work:

  1. Ensure the application has accessibility permissions
  2. Check if Command+Shift+F is already assigned to another application
  3. Try restarting the application

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published