Skip to content

v0.6.4

Choose a tag to compare

@dheerajshenoy dheerajshenoy released this 25 Feb 19:36
· 1079 commits to main since this release

0.6.4

Bug Fix

  • Fix memory leaks due to not freeing up the cloned MuPDF fz_context
  • Fix search not working because of recent changes to page text caching
  • Fix page getting cut off in layout modes other than BOOK
  • Fix search navigation being all jumpy and causing head-ache (literally!)
  • Fix SINGLE layout
  • Fix LEFT_TO_RIGHT and TOP_TO_BOTTOM layout
  • Fix highlighting crash due to context removal
  • Fix split focus
  • Fix page_goto dialog defaulting to page number 1 instead of current page number
  • Fix page_goto requesting render even when the dialog is closed without input
  • Fix multi click text selection

Features

  • Implement batch searching for faster search result fetching as soon as few searches are encountered.
  • Regex searching
  • Book (two-page) layout [layout] { mode = "book" }
  • Ability to select text across page boundaries in layout modes with multiple pages visible
  • Visual Line Mode
    • Added visual line mode for text selection that can be toggled with visual_line_mode command. In this mode, when you select a line of text, the selection will automatically extend to the beginning and end of the line, making it easier to select whole lines of text without having to precisely click at the start or end of the line.
    • Snaps when moving to different pages
    • mouse click in visual line mode to select the line

New Commands

  • Ability to set marks to locations in the document (both local and global level). Local marks are marks that are local to the document, whereas global marks are associated with particular document and when called will switch focus and go to the mark location in that document.
    • mark_goto - Ask user for the mark key and go to the location if key is valid
    • mark_set - Ask user for key to set the mark (local mark key start with lowercase letter or word and global starts with uppercase)
    • mark_delete - Ask user for the mark key to delete and delete if the key is valid
  • search_regex - Opens searchbar with regex enabled
  • layout_book - Book layout mode (Two-page layout)
  • mouse_follows_focus - when enabled, the mouse will automatically move to the center of the focused view when switching focus between splits or portals. This is useful for users who want to keep their hands on the keyboard and avoid having to move mouse manually to the view they just focused.

New Config Options

  • [portal]
    • enabled (bool) : Enable portal (ctrl + click on link behavior)
    • respect_parent (bool): Close portal when the source view is closed
    • border_width (int): Width of the border around the view signifying that the view is a portal

Optimizations

  • Don't pass QPointF and QRectF as const references as it's useless.
  • Cache fz_stext_page* (performance boost)

Breaking Changes

  • Renamed command:

    • portal_focus -> portal
    • Commands that begun with toggle_ are renamed to just the action they do without the toggle prefix (e.g. toggle_command_palette -> command_palette, toggle_fullscreen -> fullscreen, etc.) because it's more intuitive to have the command name reflect the action it does rather than the implementation (i.e. whether it toggles or shows/hides explicitly)
  • startup_tab widget is not enabled by default anymore