github noborus/ov v0.45.1

13 hours ago

What's Changed

This is a fix for v0.45.0

  • Fix setContentString wide character width calculation by @noborus in #888

v0.45.0 release notes

🎉 New Features

Terminal Title Support

  • New --set-terminal-title flag: Automatically sets the terminal title to display the current filename or caption
  • Makes it easier to identify which file is being viewed when multiple terminal tabs are open
  • Perfect for git workflows with custom captions: git log | ov --set-terminal-title --caption "git log - myrepo"
  • Fixes #881

🐛 Bug Fixes

Wide Character Display Issues

  • Fixed display corruption of double-width characters: Resolved issues with CJK characters (Japanese, Chinese, Korean) in Windows Terminal and other terminal emulators
  • Improved mouse selection: Fixed mouse selection issues when clicking on wide characters
  • Better character positioning: Enhanced wide character rendering and positioning calculations
  • Fixed double-click word selection: Improved word boundary detection for mixed ASCII and double-width characters

Key Binding Improvements

  • Fixed toggle mouse key: Corrected toggle mouse key binding to Ctrl+F8
  • Added alternative key bindings: Added backup key bindings for better cross-platform compatibility, especially for Windows Terminal users experiencing issues with ctrl+alt combinations

🔧 Improvements

Code Quality & Error Handling

  • Refactored mouse functions: Converted methods to standalone functions for better testability and code organization
  • Standardized error messages: Improved error message format for better clarity and consistency
  • Enhanced error types: Added ErrInvalidModeName, ErrInvalidRGBColor, ErrInvalidKey for better error identification
  • Better error context: Enhanced error wrapping with proper stack traces

Wide Character Support

  • Comprehensive testing: Added extensive tests for wide character handling functions
  • Better boundary detection: Enhanced character type detection for CJK text and mixed-language content
  • Improved word selection: Better double-click selection behavior for international text

Full Changelog: v0.44.0...v0.45.0
Full Changelog: v0.45.0...v0.45.1

Don't miss a new ov release

NewReleases is sending notifications on new releases.