github dheerajshenoy/lektra v0.6.2
v0.6.2 [Splits and Portals Update]

latest releases: v0.7.4, v0.7.3, v0.7.2...
4 months ago

Features

  • Ability to create portals:
    • A portal is a view of the same document but viewing different page or location in the document. Portals are useful for referencing different parts of the same document side by side, for example when reading a research paper and wanting to view the references at the same time. (Ctrl + click on a link to open the target in a new portal)

Portals
Portal

  • Ability to move tabs with mouse drag and drop within the tab bar and detach to new window if dropped outside
  • Ability to split the view into multiple panes to view different pages of the same document (or different) side by side

Tabs and Splits
Tabs and Splits

  • Ability to focus split with direction

  • New flags for opening files in vsplit or hsplit directly from the command line

    • --vsplit - Open file in a vertically split pane
    • --hsplit - Open file in a horizontally split pane
  • New config options for splits

    • [split]
      • focus_follows_mouse (bool): Whether to focus split pane on mouse hover
      • dim_inactive (bool): Whether to dim inactive split panes
      • dim_inactive_opacity (float, 0-1): Opacity level for dimming inactive panes (default: 0.5)
  • New commands for splits

    • split_horizontal - Split the current view horizontally
    • split_vertical - Split the current view vertically
    • close_split - Close the current split pane
    • focus_split_left, focus_split_right, focus_split_up, focus_split_down - Move focus between split panes in the specified direction (if no pane in that direction, do nothing)
    • open_file_vsplit - Open a file in a vertically split pane
    • open_file_hsplit - Open a file in a horizontally split pane
  • New command for opening file

    • open_file_dwim - Open file with "Do What I Mean" behavior: if there's a tab open with no splits, open the file in new tab, if there's a tab open with splits, open the file in current split.

Bug Fixes

  • Fix tab drop opening new window instead of moving tab when dropped within the same window
  • Fix window focus changing the dimmed state of split panes
  • Fix crashing on splitting with huge documents.
  • Remove filepath hash to keep track of already opened files, instead use the file path directly which should fix many other issues related to file opening and session restore
  • Fix session loading layout restoration to work with the new splits system
  • Fix open_file_dwim not working properly in some cases
  • Fix callback not being called after file open in some cases (due to async file opening)
  • Fix panel and tab not showing file info properly on file single file open
  • Hide scrollbars when the entire document is visible in the viewport
  • Fix not using config zoom factor
  • Fit incorrect zoom on file open
  • Fix rendering bug when there's no value for DPR set in the config
  • Fix TabWidget logo font
  • Fix zoom clamp range

Breaking Changes

  • Removed ui table in config and moved all options to their respective sections
    • [ui.command_palette] -> [command_palette]
    • [ui.scrollbars] -> [scrollbars]
    • [ui.statusbar] -> [statusbar]
    • [ui.tabs] -> [tabs]
    • [ui.outline] -> [outline]
    • [ui.search_highlight] -> [search_highlight]
    • [ui.llm_widget] -> [llm_widget]
    • [ui.overlays] -> [overlays]

Don't miss a new lektra release

NewReleases is sending notifications on new releases.