Commit graph Damson/src/syntax
Author SHA1 Message Date
11c1a7808b Build the syntax definitions into the app
Highlighting relied on the syntax-highlighting package, so removing it
left every file uncoloured. The 462 definitions now live in assets/syntax
and are compressed into the binary at build time, unpacked per language
when used. User .xml files still add to or replace them, and the licence
each file declares is recorded in assets/syntax/LICENSES.md.

Also moves files to the trash without needing gio.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 20:35:27 -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
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