restores Helder in all its glory
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user