feat: Editor mit Zeilennummern und deutlich mehr Textformaten

- Zeilennummern in Ansicht und Editor, Statuszeile mit Zeile/Spalte,
  Zeilenanzahl, Kodierung, Zeilenende und Änderungsmarker.
- Tab/Umschalt+Tab rücken (auch mehrere Zeilen) ein/aus, Enter übernimmt
  die Einrückung, Strg+G springt zu einer Zeile.
- Vor dem Speichern: JSON muss gültig sein, YAML darf nicht mit Tabs
  eingerückt sein (mit Option, trotzdem zu speichern).
- Über 200 Endungen und typische Dateinamen (go, hosts, Dockerfile …);
  unbekannte Dateien werden am Inhalt als Text erkannt, "Als Text öffnen".
- Windows-1252-Dateien werden angezeigt und in ihrer Kodierung
  gespeichert (vorher leere Antwort); CRLF bleibt erhalten.
- Paket 2026.11.21.r006.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Mikei386andClaude Opus 5.5 committed 2026-11-21 13:45:05 +01:00
1 parent 0592a02c8e
commit 1ca0d5aaae
9 files changed
+457 -31

No files matched your search

+84
View File
@@ -1806,3 +1806,87 @@
.u-nav .transfer-panel-header .link-button {
margin-left: auto;
}
/* --- code editor / text view with line numbers ------------------------------- */
.u-nav .preview-body.with-status {
grid-template-rows: auto minmax(0, 1fr) auto;
}
.u-nav .code-view {
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: 7px;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
min-height: 0;
overflow: auto;
}
.u-nav .code-view.editing {
border-color: var(--accent);
overflow: hidden;
}
.u-nav .code-view .line-gutter {
background: var(--surface-3);
border-right: 1px solid var(--line);
color: var(--muted);
font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
margin: 0;
min-width: 3.2em;
overflow: hidden;
padding: 10px 8px 10px 6px;
position: sticky;
left: 0;
text-align: right;
user-select: none;
white-space: pre;
}
.u-nav .code-view .preview-text,
.u-nav .code-view .preview-editor {
background: transparent;
border: 0;
border-radius: 0;
box-shadow: none;
font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
min-height: 0;
padding: 10px;
}
/* View mode: gutter and text grow with the content; the code-view itself scrolls. */
.u-nav .code-view:not(.editing) {
align-items: start;
}
.u-nav .code-view .preview-text {
overflow: visible;
}
.u-nav .code-view.editing .line-gutter,
.u-nav .code-view.editing .preview-editor {
height: 100%;
}
.u-nav .code-view .preview-editor {
overflow: auto;
white-space: pre;
}
.u-nav .editor-status {
align-items: center;
color: var(--muted);
display: flex;
font-size: 12px;
gap: 12px;
min-height: 20px;
}
.u-nav .editor-status .muted {
margin-left: auto;
}
.u-nav .editor-dirty {
color: var(--accent);
font-weight: 600;
}