github dheerajshenoy/lektra v0.6.5

latest releases: v0.7.3, v0.7.2, v0.7.1...
3 months ago

0.6.5

End User Features

  • Add support for language translation and localization
  • Support for running shell scripts
  • Support for DJVU files (limited, only basic rendering and navigation, no text selection and searching)
  • New command line argument --layout to specify the default layout mode on file open (e.g. --layout=book to open in book layout mode)
  • Support for adding comments to annotations in LEKTRA. (After creating an annotation, you can add a note to it by right clicking on the annotation and selecting "Comment" from the context menu. This will open a dialog where you can enter your comment. Once added, the comment will be associated with the annotation.
    Note: These comments do not exist in the undo/redo stack, which means that if you change comment of an annotation and then undo, the comment change will not be undone. This is to do with limitations in the way the annotation data is stored and handled in the current implementation, but it might be improved in the future by integrating note changes into the undo/redo stack.
  • Annotations with comments optionally can show a marker (e.g. an icon) to indicate that there's a note associated with the annotation, and hovering over the annotation will show the note as a tooltip (configurable in settings).
  • Annotations have an optional hover glow effect to provide visual feedback when hovering over annotations, making it easier to identify and interact with them.

Core Features

  • Picker widget now supports n columns
  • CommandManager class to manage commands instead of general hash map, which allows for better organization and management of commands, as well as support for command descriptions, useful for documentation and purpose.

Config Option

[outline]

- `show_page_number` (bool)
- `indent_width` (int)
  • dim_inactive in [portal] - Dim inactive for portal views too
  • description in [command_palette] - Show command description in the command palette if available
  • New interaction mode initial_mode="none" in [behavior], doesn't do anything.

[annotations] - annotation related settings (common for all supported annotation types)

NOTE: This is just a convenience table to increase the readability of the config, it has no effect on its own, the actual annotation type tables (e.g. [annotations.highlight], [annotations.popup], etc.) still need to be configured separately for their respective annotation types.

[annotations.highlight] - highlight annotation related settings

- `hover_glow` (bool) to enable/disable hover glow effect on highlight annotation
- `comment` (bool) to show the comment of the highlight annotation as tooltip on hover (if the annotation has a comment)
- `comment_marker` (bool) to show a marker (e.g. an icon) on the annotation if it has a comment, to indicate that there's a comment associated with the annotation
- `glow_width` (int) to set the width of the hover glow effect on highlight annotation
- `glow_color` (RGBA hex value) to set the color of the hover glow effect on highlight annotation
- `comment_font_size` (int) to set the font size of the comment tooltip for highlight annotations

[annotations.popup] - popup annotation related settings

- `hover_glow` (bool) to enable/disable hover glow effect on popup annotation
- `glow_width` (int) to set the width of the hover glow effect on popup annotation
- `glow_color` (RGBA hex value) to set the color of the hover glow effect on popup annotation

[annotations.rect] - rectangle annotation related settings

- `glow_width` (int) to set the width of the hover glow effect on rect annotation
- `hover_glow` (bool) to enable/disable hover glow effect on rect annotation
- `comment` (bool) to show the comment of the rect annotation as tooltip on hover (if the annotation has a comment)
- `comment_marker` (bool) to show a marker (e.g. an icon) on the annotation if it has a comment, to indicate that there's a comment associated with the annotation
- `glow_color` (RGBA hex value) to set the color of the hover glow effect on rect annotation
- `comment_font_size` (int) to set the font size of the comment tooltip for highlight annotations
  • enabled option in [links] to enable/disable links

[search] for search related settings

- `match_color` (RGBA hex value) to set the color of the search hit highlights
- `index_color` (RGBA hex value) to set the color of the current search hit highlight

Optimizations

  • Pass struct const reference of only the respective members instead of the whole Config struct.

New Commands

  • toggle_annot_comment_marker - Toggle the comment marker on annotations that have comments (e.g. show/hide the icon indicating that there's a comment associated with the annotation)
  • none_mode - Switch to none interaction mode where no interaction mode is active
  • picker_annot_comment_search - Open the picker with the list of annotations that have comments, and searching by the comment text. Selecting an entry will jump to the annotation location.

Breaking Changes

  • Rename LEFT_TO_RIGHT layout to horizontal and TOP_TO_BOTTOM layout to vertical for better clarity and intuitiveness.
  • Renamed layout_left_to_right command to layout_horizontal and layout_top_to_bottom command to layout_vertical to reflect the renamed layout modes.
  • Command palette is now opened with ":" key by default instead of "Ctrl + Shift + P" to stay close to the Vim way of opening command palette and also because it's more ergonomic to open with a single key press.
  • Renamed [markers] to [jump_marker]
  • Removed [color] section from config and moved all colors to thier respective sections (e.g. annotation colors are now in [annotations] section, search hit colors are now in [search] section, etc.) for better organization and maintainability of the config file.

Bug Fix

  • Fix last page number loading
  • Fix [links] section causing pages to not render in non-link supported files
  • Fix page stride when zooming in DJVU files
  • Fix zoom locking on the center of the viewport instead of the actual location
  • Fix user shortcuts fighting with default shortcuts
  • Fix zoom jumping to different page after zooming in/out.
  • Fix annotation comment tooltip going off screen
  • Fix color setting in the wrong format (ARGB instead of RGBA)
  • Fix not able to save after adding comment
  • Fix search results not clearing when searching for empty string
  • Fix -p,--page command line argument not working
  • Fix non-exsistent files trying to be opened
  • Fix document reload causing unnecessary popup of message box saying it couldn't reload document
  • Fix crash when reloading after file changes on disk
  • Fix crash and infinite loop when trying to reload after file save
  • Fix layout changing at runtime not working properly
  • Fix crash due to zero image size in BOOK layout mode

Don't miss a new lektra release

NewReleases is sending notifications on new releases.