Skip to content

TXTeditor 0.4.6

Choose a tag to compare

@yinyin333333 yinyin333333 released this 12 Jul 07:12
· 104 commits to main since this release
2a829a5

TXTeditor 0.4.6

image

What's Changed

Keyboard new Shortcuts command and grid-scrolling shortcuts.

  • Shortcuts can be reassigned, restored individually, or reset all at once.
  • Assigning a shortcut that is already in use now moves it to the selected command and removes it from the previous command.
  • Shortcut changes are applied only after selecting Save. Selecting Cancel discards them.
  • Added the following grid-scrolling shortcuts:
    • PageUp / PageDown: scroll one grid page vertically
    • Home / End: scroll to the top or bottom of the grid
    • Shift+Home / Shift+End: scroll to the left or right edge of the grid

Search and Navigation

  • Fixed focus handling around the Find window and restored keyboard focus to the grid after opening or switching documents. (#41)
  • Search matches are now centered in the grid.
  • The grid can now be scrolled with the mouse wheel while the Find window is open. (#42)
  • Improved diagnostic navigation so opening a problem no longer causes unexpected scrolling in the Problems list.

File Safety and Encoding

  • Reworked file saving to reduce the risk of corruption from overlapping or interrupted saves, using serialized save transactions, temporary files, file locking, and recovery handling.
  • Added proper round-trip support for UTF-8, UTF-8 with BOM, Windows-1252, UTF-16 LE, and UTF-16 BE files.
  • Files now retain their detected encoding when saved or downloaded.
  • Edits made while a large file is being saved are no longer mixed into the same saved output and correctly remain marked as unsaved afterward.
  • Save As now correctly rebinds the active Vector-LSP document to its new file path.

Editing and Data Integrity

  • Fixed Cut so cells are not deleted when copying to the clipboard fails.
  • Fixed pasted text ending with a newline creating an unintended extra row.
  • Fixed Undo after pasting beyond the current table bounds so the original row count, row lengths, and serialized column shape are restored.
  • Preserved trailing empty columns during incremental Vector-LSP synchronization.
  • Improved synchronization when an edit occurs before a document has finished opening in Vector-LSP.

Workspace and Vector-LSP

  • Workspace discovery now includes deeply nested .txt, .tsv, .tbl, and .csv files.
  • Added protection against duplicate files and directory cycles caused by junctions or symbolic links.
  • Improved Windows path normalization for workspace files.
  • Reworked Vector-LSP startup, restart, workspace switching, and process lifecycle handling.
  • Added generation- and version-aware synchronization so stale LSP sessions, document updates, and diagnostics cannot overwrite newer state.
  • Improved Vector-LSP configuration isolation so editor settings take precedence over unrelated environment or workspace configuration.
  • Diagnostic updates are now batched and coalesced, reducing unnecessary UI rebuilds and improving responsiveness during large diagnostic bursts.
  • Existing diagnostics are preserved while documents are reopened or resynchronized, reducing flicker in the grid and Problems panel.
  • Improved diagnostic indexing and file badge updates for workspaces with many problems.

Other Fixes

  • Freeze Row and Freeze Column controls are now disabled when no document is open.
  • Freeze state is reset after the last document is closed instead of remaining active without a document.
  • Improved error handling when saving lint settings and restarting Vector-LSP.