restores Helder in all its glory

This commit is contained in:
2026-09-28 11:34:49 +02:00
parent c2b38b853c
commit 1d29d0952d
280 changed files with 29205 additions and 7 deletions
+21
View File
@@ -0,0 +1,21 @@
import Foundation
/// The view the editor shows for the open file. Raw values are stored in sessions, so `.actual` stays "updated".
///
/// `.diff` is the full-screen side-by-side overlay, not a pane mode.
public enum ViewMode: String, Codable, Sendable, CaseIterable {
/// The live buffer with changed lines marked.
case actual = "updated"
case diff
/// An unchanged file: the plain editable buffer.
case code
/// Rendered Markdown.
case preview
public init(_ mode: DefaultDiffMode) {
switch mode {
case .updated: self = .actual
case .diff: self = .diff
}
}
}