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 <[email protected]>
This commit is contained in:
parent
11c1a7808b
commit
8f6cd355f5
4 changed files with 8 additions and 9 deletions
|
|
@ -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]
|
||||
|
|
|
|||
11
README.md
11
README.md
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
<h1 align="center">Damson</h1>
|
||||
|
||||
<p align="center">A Material You code editor in Rust that reads Kate's own syntax definitions, with motion
|
||||
at the centre of how it works.</p>
|
||||
<p align="center">A Material You code editor in Rust with 462 languages built in, and motion at the centre of how
|
||||
it works.</p>
|
||||
|
||||

|
||||
|
||||
|
|
@ -26,7 +26,7 @@ at the centre of how it works.</p>
|
|||
|
||||
## 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
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue