Add WordLex (offline dictionary) extension#279
Open
vedesh-padal wants to merge 2 commits into
Open
Conversation
- Add dynamically detected cmdModifier constant ('cmd' on macOS/Raycast, 'ctrl' on Linux/Vicinae/GNOME) to prevent Super key hijack
- Apply cmdModifier to all keyboard shortcut modifiers throughout search-dictionary, define-clipboard, and random-word commands
- Re-formatted and validated types
Author
|
Hey @aurelleb, I've been using Vicinae on Linux for a while now (switched from Windows about a year ago, missed having Raycast, and Vicinae has been a lifesaver). I wanted to experiment with building my first extension for it, so I put this together. It's an offline dictionary extension that queries my app, WordLex (which uses the offline OEWN 2025 SQLite database). I've tested it locally to make sure the building ( Since it's my first PR here. Whenever you get a chance, take a look and approve... Really appreciate all the work you've put into Vicinae! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull Request introduces the WordLex offline dictionary extension to the Vicinae ecosystem.
WordLex is a blisteringly fast, offline-first English dictionary and thesaurus powered by the comprehensive Open English WordNet (OEWN) 2025 database (~150,000+ words, 120,000+ synsets).

This extension brings instant dictionary lookups, synonyms, antonyms, and lexical relations directly to your keyboard launcher without any external API calls or internet dependencies.
🌟 Features Included
search-dictionary): Lightning-fast type-ahead search through 150k+ words. It loads the top 5 results' full detail inline, while seamlessly falling back to a compact search definition for lower results to completely bypass UI blocking.define-clipboard): Instantly look up the word in your clipboard or active text selection and display its detailed entry in a full-screen Detail view.random-word): Fetch a random interesting word from the database—perfect for vocabulary building.Enter: Navigate to a dedicated full-screen markdown view.Cmd+C: Copy the clean formatted definition.Cmd+Shift+P: Paste the looked-up word directly into your frontmost active window.Cmd+W: Cross-reference the word instantly on Wiktionary.Cmd+O: Launch/Focus the native WordLex GUI desktop app with the searched word pre-focused.🔌 Prerequisites & Integration Details
To maintain a zero-duplication database model, the extension connects to the locally installed WordLex desktop app's background service.
Download it from the GitHub Releases page
v2.0.0+).wordlex --serviceas a lightweight, detached background daemon (~37MB RAM).📸 Screenshots & Showcase
1. Dictionary Search & Autocomplete
2. Full Definition View
3. Commands Available
4. Random Word Explorer
🧪 How to Test Locally
wordlex --version # Output should show v2.0.0 or higherephemeral) in the launcher to verify prefix matching.arrow keysto navigate results to ensure smooth cache-populated detail changes.Enterto drill into the full view, then try pressingCmd+Wto verify browser redirection.🏁 Submission Checklist
npm run lintand resolved all warnings (0 errors)npm run typecheckto confirm complete TypeScript coveragepackage.jsonmanifest matches naming, author format, and category standardsextension_icon.pngincluded under/assets