Skip to content

v2.5.0 - Selection-based AI editing with smart text selection

Latest

Choose a tag to compare

@vultuk vultuk released this 21 Aug 16:16
· 36 commits to main since this release

🎯 Selection-Based AI Editing

This release introduces selection-based AI editing, allowing users to apply AI prompts to specific text portions instead of entire documents. This provides unprecedented precision and control over AI-powered editing workflows.

✨ Key Features

Precise AI Control

  • Select any text in the editor and apply AI prompts only to that selection
  • Works with both "Adjust" and "Ask" modes for maximum flexibility
  • Smart merging logic preserves surrounding content while editing selections

Smart Selection Tracking

  • Real-time visual feedback showing when text is selected
  • "Using selection (X chars)" indicator in AI modal
  • Seamless integration with existing AI workflow

Enhanced User Experience

  • Intuitive text selection behavior with enhanced AI integration
  • Clear visual feedback so users know exactly what content will be processed
  • Non-disruptive selection that doesn't interfere with normal editing

🔧 Technical Improvements

  • Selection State Management: Robust tracking of selection positions with refs
  • Content Merging Algorithm: Smart merging of edited selections with original content
  • Error-Safe Selection: Graceful handling of selection edge cases
  • Accessibility: ARIA live regions for selection feedback

🚀 Use Cases

Perfect for:

  • Editing specific paragraphs without affecting the rest of the document
  • Improving individual code blocks or sections
  • Asking questions about specific content portions
  • Making targeted adjustments while preserving document structure

This feature transforms the AI editing experience from document-wide operations to precise, surgical edits that give users complete control over what gets modified.


Full Changelog: v2.4.0...v2.5.0