Skip to main content

Pragtical v3.8.3 Release

· 4 min read
Jefferson Gonzalez
Contributor of Pragtical

A long overdue release given the important fixes, while minimal, the assortment of bug fixes do make a difference. Also, included are some enhancements and new features.

Open File at Line

Thanks to detomastah it is now possible to open a file at a specific line when using the find file plugin:

open file at line

Show Column Position in Characters

As reported by 2trvl when viewing a text document the caret position on the status bar was displayed in bytes instead of codepoints. This behavior was changed to display it by default in characters but it is configurable to display bytes if desired as shown below:

---Controls how the caret column is displayed in the status bar.
---
---When set to `"char"`, the column is based on the number of characters
---from the start of the line (UTF-8 aware).
---When set to `"byte"`, the column is based on the raw byte offset.
---
---Defaults to `"char"`.
---@type "char" | "byte"
config.caret_column_mode = "char"

configure caret column dispaly

ImageView Zoom Using Mouse Position

When zooming an image the current mouse position is used as an indicator of where to position the scaled image by moving the scroll bars. With this enhancement also comes support for a bigger scale size of 8k when possible.

Before

After

Root Color Picker Preview Always Visible

Now, when moving the mouse to the window edges the color picker preview is dynamically repositioned to keep it visible.

Bug Fixes

The most important bug fix on this release was a crash on the project search when syntax highlighting was enabled on the search results. It was caused from invalid utf-8 text been feed into the tokenizer. Thanks to 0riginaln0 who reported this bug it is now resolved.

Other fixes include:

  • Better compatibility in open_in_system for AmigaOS 4 thanks to Walkero

  • Corrected hover state management on the Widget library. (This was a known annoyance but it seems was waiting for it to be reported in order to fix it 😀)

  • Temporary fix for borderless decoration not getting drawn on maximized window under Microsoft Windows.

Special thanks to 2trvl who opened various issues for many of the bug fixes on this release.

Other fixes and improvements on the changes log below, enjoy!

Downloads on GitHub.

Changes Log

New Features

  • Open file at line (#428)

  • StatusView doc:position show col in characters (#432)

Enhancements

  • ImageView: zoom using mouse position (#420)

  • rootpickcolor: keep color preview always visible (#421)

  • Allow loading namespaced native lua libraries (#436)

Fixes

  • Fixes in open_in_system() for AmigaOS 4 (#416)

  • Widgets: update for SearchReplaceList crash fix (#418)

  • Update widget for latest hover fix (#433)

  • Check node hovered_scroll_button is set on rootview (#434)

  • Defer startup file loading after plugins loaded (#430)

  • Fix borderless on maximized window (Windows) (#435)

Build System

  • CI: disable polyfill_glibc - issues with linenoise (#419)

  • ppm subproject: don't use lua bytecode (#438)