Commit graph Damson/tests
Author SHA1 Message Date
2e7b699a60 Plain error wording, hover and press on segments and switches
From a pass with the taste skill's rules:
- File errors read as a person would say them ("Couldn't open x: it
  isn't there") instead of raw OS text with "(os error 2)", and each
  prompt says what it couldn't do.
- Segmented buttons tint on hover and squeeze when pressed, and switches
  get a hover halo round the thumb, like the rest of the controls.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-10 19:36:46 -06:00
dd2a9ad6ab Sudo saves, session-only change bars, a rail that follows the drag
- Saving a file you can't write asks for your password and saves it
  through sudo (cp keeps the file's owner and mode). The password goes to
  sudo's stdin once and isn't kept.
- Change bars and the tree's edited dots now describe this session only:
  a line diff against the file as it was opened, not git diff HEAD, so
  they're gone after a restart.
- Dragging the scroll rail keeps the viewport bubble under the pointer
  all the way to the end of long files, and grabbing it again no longer
  jumps. The bubble stays inside the rail when popped out.
- About shows the language count without naming Kate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-10 19:30:15 -06:00
8e5bfdadb6 Plain hover text, and live rust-analyzer tests
Servers send markdown regardless of what's asked for, so hover cards
showed code fences. Extends the live Rust test to typing after dots and
paths, accepting a suggestion, and hover.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 18:29:21 -06:00
8c5b7ffc78 Completion while typing, and end-to-end tests with real tools
Adds tests/features.rs: live clangd, a shell, curses and nano, a real git
repository, crash recovery, random edits and a 200k-line file.

Fixes from those runs: completions appear while typing and use the
server's ranking and filter text; a language server that dies is reported
and word completion takes over; system fonts draw characters the code
font lacks; block comments wrap the line and add spaces.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 18:17:52 -06:00
1c1dab0a5d Detect the language of unnamed files from their text
Untitled files had no language, so they showed no colours. They now read
shebangs, modelines and headers, then score how the code reads, as the
text changes. The tab and save dialog take a matching name. Save As now
re-detects, and ties between definitions go to the first one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 17:49:30 -06:00
009b74d3e7 Real text in the preview, system title bar, toolbar, Discord presence
The preview draws real glyphs on a worker thread, within the GPU's
texture limit. The window uses the system title bar; the top right holds
up to 8 icons chosen in Settings, then the menu logo. Adds a shell
picker, taskbar actions and Discord presence, and drops the Caelestia
and KDE colour choices in favour of Desktop.

Word wrap no longer moves the view. The terminal starts at its final
size and the morph never resizes the shell.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 17:41:56 -06:00
8151aa71c0 Damson: a Material You code editor in Rust
Runs Kate's syntax definitions directly, on a hand-written editor core.
Spring-driven UI with a pop-out scrolling preview, baked-in terminal
grown from a morphing button, jelly tabs, command palette, side panels,
git, language servers and hot exit.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 17:05:28 -06:00