Skip to content

v0.14.0

Choose a tag to compare

@zeeyado zeeyado released this 30 Jan 00:44

Release Notes v0.14.0

Major release with saving to highlight notes, export format settings, dedicated translate view, new actions, and improved action management.

Translate View

A new specialized view for translation actions, designed for quick lookups with minimal UI:

  • Dedicated translation interface - 5-button layout (MD/Text, Copy, → Chat, Show/Hide Original, Close)
  • New "Translate Settings" submenu consolidating all translation options
  • Original text visibility modes - Follow global, always hide, hide long, never hide
  • Long text threshold - Configurable character limit (default: 200) for hiding original
  • Copy Translation Only option for raw translation without metadata
  • Auto-save disabled by default (like dictionary lookups)
  • "→ Chat" button expands to full chat with complete options

Access: Triggered automatically for Translate, Translate Page, and bypass translate actions

Export Format Settings

Configurable format for Copy and Note buttons with two-dimensional control:

  • Content options: Full (metadata + chat), Q+A, Response only, Everything (debug)
  • Style options: Markdown or Plain Text
  • "Ask every time" mode - Shows picker dialog before each Copy/Note action
  • History Export setting - Separate configuration with "Ask every time" default
  • Translate-specific settings with "Follow global" option

New module: koassistant_export.lua provides unified formatting for all export scenarios

Save to Note

AI responses can now be saved directly to KOReader highlights (in Highlight context:

  • Note button in highlight context chats saves response to source highlight
  • Copy button added to dictionary compact view
  • Note button respects export content/style settings
  • Automatically disabled for non-highlight contexts

Action Improvements

New Connect action for highlight context:

  • Draws cross-references, broader connections, and thematic links
  • Analyzes relationship to work's themes and patterns

Enhanced highlight templates (Explain, ELI5, Summarize, Elaborate):

  • Light guidance without heavy content-type adaptation
  • Tone-matching hints for appropriate responses
  • Fixed ELI5 include_book_context (was false, now true)

View Mode selector in action creation and editing:

  • Choose between Standard, Dictionary Compact, or Translate view
  • Available in creation wizard Step 1 and quick edit menus
  • Properly inherited when duplicating actions

Book Actions

Three new book-level actions:

  • Related Thinkers - Intellectual landscape, influences, contemporaries
  • Key Arguments - Thesis, evidence, assumptions, counterarguments
  • Discussion Questions - Comprehension, analytical, and interpretive prompts

Content-type adaptation across all book actions:

  • X-Ray: Parallel structure for non-fiction (Key Figures, Core Concepts, Arguments)
  • Recap: "Previously on..." for fiction, "Where we left off..." for non-fiction
  • Templates now detect fiction vs non-fiction and adapt accordingly

Improved templates: book_info, similar_books, explain_author, historical_context

Granular Reset Options

Fine-grained control over settings reset (Settings → Advanced → Reset Settings):

  • Reset actions submenu with separate options:
    • Custom actions only (user-created)
    • Action edits only (built-in overrides + disabled)
    • Action menus only (highlight/dictionary configurations)
  • Reset custom providers/models - Separate from action resets
  • Action Manager hamburger menu - Quick access to action-related resets

Each option clearly describes what it resets and preserves.

Smart Action Filtering

Dynamic open book flag inference:

  • Actions using reading context (X-Ray, Recap, etc.) now identified automatically from flags
  • Automatic migration fixes existing custom actions on plugin load
  • Actions with placeholders like {reading_progress}, {book_text} correctly hidden in file browser
  • New context extraction flags can be added to one central location

Reliability & UX

  • 5-second timeout for auto update checker (prevents startup lag on slow networks)
  • Alphabetical sorting in main action input window (case-insensitive)
  • Improved action wizard UX - Better Context and View Mode selector dialogs
  • Inclusive language in prompts (book → work/text where appropriate)
  • Lang button in translate view for quick language switching
  • Close-on-save behavior in translate view

Bug Fixes

  • Fix stack overflow when replying after expanding translate view to full chat
  • Fix Note button disabled after reply in highlight chat
  • Fix stale reading progress in context extraction
  • Fix highlight menu action ordering

Code Cleanup

  • Remove deprecated dead code from system_prompts.lua (unused since v0.5)
  • SystemPrompts.context table and SystemPrompts.getContext() function removed

Full Changelog: v0.13.0...v0.14.0