forked from 0zd3m1r/koreader-xray-plugin
-
Notifications
You must be signed in to change notification settings - Fork 8
Advanced Usage
Jimmy Pautz edited this page Apr 20, 2026
·
15 revisions
If you want to dig a bit deeper into what the plugin can do, here are a few extra features.
You don't have to navigate through the main menu every time you want to check a character's name.
- Selection Popup: If you long-press a word or name while reading, you'll see an X-Ray button in the dictionary popup. Tap that to instantly search your database for that specific text.
- Highlights: If you long-press an existing highlight, the standard KOReader menu will pop up. There's an X-Ray option added in there too.
-
Keyboard Shortcut: If you happen to be using a device with a keyboard, pressing
Alt + Xwill open the quick menu.
[Screenshot Placeholder: X-Ray button in Dictionary/Selection Popup]
You can tie the X-Ray menu to any of KOReader's gestures (like corner taps or edge swipes):
- Go to Menu → Settings → Taps and Gestures → Gesture Manager.
- Pick whatever gesture you prefer.
- Look for X-Ray Quick Menu or X-Ray Characters in the action list and assign it.
If you'd rather not deal with the UI for settings, you can edit the config file directly. Just open xray_config.lua in the plugin folder. It looks something like this:
return {
gemini_api_key = "AIzaSy...",
chatgpt_api_key = "sk-...",
default_provider = "gemini",
gemini_primary_model = "gemini-2.5-flash",
gemini_secondary_model = "gemini-2.5-flash-lite",
chatgpt_model = "gpt-4o-mini",
}Under the Maintenance menu, you'll find a few useful utilities:
- Clear Cache: Sometimes the AI gets confused or returns weird data. Hit this to wipe the saved file for your current book and start fresh.
- Check for Updates: A quick way to pull the latest version of the plugin without having to manually download the zip file from GitHub.
-
Troubleshooting: If things aren't working right, take a look at the
xray.logfile in the plugin folder. It usually points directly to whatever is going wrong.