Skip to content

v0.6.6

Choose a tag to compare

@dheerajshenoy dheerajshenoy released this 08 Mar 19:21
· 757 commits to main since this release

0.6.6

Features

  • Add ability to not invert images in invert mode (valid in PDF, EPUB, MOBI, XPS, FB2) . Useful for users who want to use the invert mode for dark mode but don't want their images to be inverted. This can be configured in the settings with the dont_invert_images option under the [behavior] section of the config.
  • Add search history to the search bar, allowing users to easily access their previous search queries and results. The search history can be navigated using the up and down arrow keys when the search bar is focused, and selecting a previous search query from the history will re-run that search and show the results.
  • Ability to "preview" links by executing a mouse binding (Alt+LeftClick by default) on a link to open a temporary view of the link target without actually navigating to it in the current view in a floating window.

Preview Demo
Preview Floating Window

  • "preview" config section
[preview]
size_ratio = {0.5, 0.5} # width and height ratio of the preview window compared to the main window
border_radius = 8 # border radius of the preview window in pixels
close_on_click_outside = true # whether to close the preview window when clicking outside of it
  • Add preview command, which shows the preview window (if it was created already) for the current link target. The preview window will be created on the fly when the mouse binding is executed on a link for the first time, and will be reused for subsequent previews of the same link target.

  • Add mousebindings to allow users to configure mouse interactions (e.g. mouse click, double click, right click, mouse wheel, etc.) with different modifiers (e.g. Ctrl, Shift, Alt) to trigger different mouse related commands.
    Mouse commands:

    • portal - open link in portal (ctrl + click on link)
    • syntex_jump - jump to source location in synctex enabled PDFs
  • Add backend option in [rendering] section of the config to choose between "auto", "opengl" and "raster" rendering backends. The "auto" option will choose the best available backend based on the system capabilities, with a preference for OpenGL when available for better performance.

[rendering]
backend = "auto" # "auto", "opengl", "raster"
  • Add --tutorial command line argument to open the tutorial PDF file directly from the command line without having to open the command palette and search for the command. This is useful for new users who want to quickly access the tutorial file and learn how to use LEKTRA.
  • Add touchpad gesture support for zooming (pinch to zoom)

Optimizations

  • Improved text selection. Text selection is now more responsive and accurate, especially for multi-columned layouts. It should now be less jumpy and more stable when selecting text across columns and pages.

Bug Fixes

  • Fix portals and preview docs appearing blurry due to not using the correct DPR for rendering
  • Fix remove item 0 warning in QGraphicsScene when closing document
  • Fix double memory free crash on DJVU files
  • Fix link hints mode not intercepting key presses properly
  • Add all supported file types to the file open dialog filter
  • Fix the QPainterPath pixel max limit error when text selection is too large by using page local coordinates instead of viewport coordinates for the selection path, which should allow for larger selections without hitting the pixel limit.
  • Fix opening tutorial file not working due to wrong file path
  • Fix djvu code under non-djvu builds causing compilation errors
  • Fix optional dependency locator in CMakeLists.txt

Breaking Changes

  • Removed grid option from [command_palette] section of the config as it was not implemented.