github TheJoeFin/Text-Grab v4.17.0-beta2
v4.17.0 beta 2

pre-releaseone hour ago

Changes since 4.17.0 Beta 1. The headline is panes and layouts in the Edit Text Window.

Text Grab now runs on .NET 11. Text-Grab.exe and Text-Grab-arm64.exe need the .NET 11 Desktop Runtime. The Self-Contained zips include it.

Going back to 4.16

If you go back to Text Grab 4.16.0 or earlier after trying this beta:

  • Edit Text Window history saved in Code mode is deleted. 4.16 doesn't know Code mode, so it skips those entries when it loads your history, then saves the history file without them. They won't come back if you update again. Your other history entries are kept.
  • Tesseract needs its own install again. 4.16 doesn't include Tesseract, so Tesseract OCR only works there if Tesseract is installed separately.

Layouts don't add to this. The layout a history entry was saved with is stored as an optional text value that older versions ignore.

The portable version keeps history in the history folder next to Text-Grab.exe, so this only affects you if you run 4.16 from the same folder. To keep a copy either way, go to Settings → Danger → Export Settings and check Include history (images and text) before going back.

Panes and layouts

The Edit Text Window can now show more than the editor and the calculations pane. A layout is a set of panes arranged around the editor.

  • Window menu → Layouts switches layout. Window menu → Panes shows or hides one pane.
  • Built-in layouts:
    • Classic: the editor and the calculations pane, as in beta 1.
    • Explorer: a Recent items pane beside the editor. It lists your recent grabs, history and files, with search. Double-click or press Enter to open one, Ctrl+Enter to open it in a new window. Closes #592.
    • Mermaid: source on one side, the live diagram on the other, with zoom, full screen, copy, and SVG or PNG export. .mmd and .mermaid files open in it, in Code mode.
    • Markdown preview: Markdown source in Code mode on one side, the rendered page on the other. .md files still open in Markdown mode by default; pick this layout to get the preview.
  • Table of contents: in Markdown mode, a contents button on the formatting bar shows the document's headings as a tree. Click a heading to jump to it.
  • Save current layout as… saves the panes you have open under a name you choose. Reset returns a built-in layout, or a saved layout's built-in starting point, to its original panes. Delete removes a saved layout. Set as default sets the layout new windows open in.
  • Files reopen how you left them: a file comes back in the layout, editor mode and code language it was last shown in, ahead of the defaults for its file type. Turn this off with Settings → Edit Text → Reopen files in their last layout and mode.
  • From the command line: --layout <id> opens a window in that layout, for example --layout markdown-preview. On its own it opens an Edit Text Window; with a file it applies to that file's window. The text-grab://edit-text link takes the same thing as ?layout=<id>.
  • Switching layout changes the editor mode only when nothing would be lost. A spreadsheet with wrapped cells, column widths or row heights stays a spreadsheet, and Markdown mode is never left.

Markdown

  • A new formatting toolbar, including a button that turns lines into a to-do list and back.
  • Lists are styled by depth, Tab and Shift+Tab indent and outdent, and nested to-do items show checkboxes in place of bullets.
  • Task checkboxes line up with their wrapped labels.
  • Table columns size to their content and refit when the window resizes.
  • A button in the right gutter opens the table under the pointer in a new spreadsheet window.
  • There is more room to scroll past the end of a document.

Also new

  • Command palette in the Edit Text Window: press Ctrl+Shift+P and search the editor's commands by name. Commands that don't apply right now are shown dimmed.
  • Speech commands in the Edit Text Selection menu (#712).
  • Spell check: when it is off, Format → Enable Spell Check turns it on for that window only.
  • Copied file paths: the global shortcut opens a copied file path directly, and the tray flyout offers to open it as a file or as plain text.
  • File associations: Text Grab now appears in Open with and Default apps, with new icons, for many more text file types: documents, tables, markup and code. No default is set for you.
  • Reading position: a temporary bookmark appears beside the scrollbar, marking where you left off.
  • Bottom bar: whether it is shown is now remembered separately for blank documents and for each file type.

Fixes

  • Updating an existing Edit Text history item works correctly.
  • In the calculations pane, clicking the selected total again now clears it, and an older calculation can no longer overwrite newer results.
  • In Code mode the calculation results now scroll with the code editor, and the mouse wheel over them scrolls the editor.

What looks different

If you never open the Layouts or Panes menus, the layout should look like beta 1 apart from these:

  • Double-clicking the splitter next to the calculations pane no longer toggles the pane. Use the toggle button, Ctrl+P, or the Panes menu.
  • The resize bar now sits beside the calculations pane instead of over its edge, so at the same pane width the editor is 5 px narrower.
  • When the calculations pane is hidden, its Copy All and Info buttons are no longer invisible Tab stops.

If something breaks

Go to Settings → Edit Text → Use the new pane layout and turn it off. Windows you open after that use the previous editor area, without layouts or the new panes. The old path is kept for this release only.

Under the hood

  • Upgraded to .NET 11 and Windows App SDK 2.7, with other package updates.
  • The Licenses window now lists the packages that were missing, with current versions.

Known limits

  • In Code mode the editor still wraps long lines while the calculations pane is open, so wrapped lines (and collapsed folds) push the results out of line with their source.
  • The Mermaid pane draws the whole document, or in Markdown mode the first Mermaid block. It does not yet follow the caret to other blocks. Panning is by mouse only.
  • Markdown preview scroll sync is approximate: it follows the editor by proportion, one way, so the two drift where headings, images or diagrams are taller than their source.
  • The Panes menu doesn't show a pane that sits in a tab group other than the selected tab.

Please report

Pane, layout, focus, theme (light, dark, switching while open) and DPI or multi-monitor problems especially, and anything in the Edit Text Window that behaves differently from beta 1. Open an issue and say which layout you were in and whether Use the new pane layout was on.

What's Changed

  • Panes and more! by @TheJoeFin in #720
  • Further changes committed directly to dev, listed above

Full Changelog: v4.17.0-beta1...v4.17.0-beta2

Don't miss a new Text-Grab release

NewReleases is sending notifications on new releases.