From 8f6cd355f57e659b443a685b56f9a5691a2877db Mon Sep 17 00:00:00 2001 From: astar76 Date: Tue, 10 Nov 2026 19:30:15 -0600 Subject: [PATCH] Drop Kate from the app's wording The syntax definitions are a shared format, not Kate's own: the welcome screen, package description, desktop keywords and README now just say how many languages are built in. Licence credits for the definitions stay in assets/syntax/LICENSES.md and the README's licence section. Co-Authored-By: Claude Opus 5.5 --- Cargo.toml | 2 +- README.md | 11 +++++------ packaging/damson.desktop | 2 +- src/ui/welcome.rs | 2 +- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 072f538..0a80682 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "damson" version = "0.1.0" edition = "2021" -description = "A Material You code editor with Kate's syntax definitions built in" +description = "A Material You code editor with 462 languages built in" license = "MIT" [lib] diff --git a/README.md b/README.md index c2403fd..4a92159 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@

Damson

-

A Material You code editor in Rust that reads Kate's own syntax definitions, with motion -at the centre of how it works.

+

A Material You code editor in Rust with 462 languages built in, and motion at the centre of how +it works.

![The editor](docs/screenshots/01-editor.png) @@ -26,7 +26,7 @@ at the centre of how it works.

## Syntax highlighting -All of Kate's syntax definitions, 462 languages, are built into the binary, so nothing needs to be installed +Syntax definitions for 462 languages are built into the binary, so nothing needs to be installed for code colours. Folding and comment tokens come from the same definitions. Drop your own `.xml` definition into `~/.local/share/org.kde.syntax-highlighting/syntax/` and it adds to or replaces a built-in one by name. @@ -36,7 +36,7 @@ recursion. Those single rules are skipped, so a few constructs in some languages Files with no name get their language from the text, updating as you type or paste: a shebang, a modeline (`kate: hl`, `vim: ft=`, `-*- mode -*-`), a header, or failing that how the code reads. An untitled tab takes the name that fits, like `Untitled.py`, and the save dialog starts with it. Picking a language from the -status bar overrides this. A file with an extension Kate doesn't know, like `.txt`, stays plain. +status bar overrides this. A file with an extension no definition claims, like `.txt`, stays plain. ## Also included @@ -76,8 +76,7 @@ not recovered. ## Not done yet -Vi mode, spell checking, snippets, reopening a file with a chosen encoding, and Kate's C++ plugins, which -can't load into a Rust app. Long lines are not virtualised. It runs one window per launch. Linux only for now. +Vi mode, spell checking, snippets, and reopening a file with a chosen encoding. Long lines are not virtualised. It runs one window per launch. Linux only for now. ## Install from source diff --git a/packaging/damson.desktop b/packaging/damson.desktop index 329e8ca..6114ab8 100644 --- a/packaging/damson.desktop +++ b/packaging/damson.desktop @@ -8,7 +8,7 @@ TryExec=damson Icon=damson Terminal=false Categories=Development;TextEditor; -Keywords=code;editor;programming;kate;text; +Keywords=code;editor;programming;text; MimeType=text/plain;text/x-csrc;text/x-c++src;text/x-python;text/rust;text/x-shellscript;text/markdown;application/json;application/xml; StartupWMClass=damson Actions=new-window;new-file;open-folder;terminal; diff --git a/src/ui/welcome.rs b/src/ui/welcome.rs index 1f9556b..f64b800 100644 --- a/src/ui/welcome.rs +++ b/src/ui/welcome.rs @@ -21,7 +21,7 @@ impl App { icons::paint(ui.ctx(), ui.painter(), c, 42.0 * k, "code", t.on_primary_container); if ui.input(|i| i.focused) { motion::keep_alive() } ui.painter().text(c + vec2(0.0, 92.0), Align2::CENTER_CENTER, "Damson", fonts::med(26.0), t.on_surface); - ui.painter().text(c + vec2(0.0, 124.0), Align2::CENTER_CENTER, format!("{} languages from Kate, ready when you are", self.reg.languages.len()), fonts::ui(14.0), t.on_variant); + ui.painter().text(c + vec2(0.0, 124.0), Align2::CENTER_CENTER, format!("{} languages, ready when you are", self.reg.languages.len()), fonts::ui(14.0), t.on_variant); let y = c.y + 156.0; let bw = 136.0; let cx = rect.center().x;