before the great git rework

This commit is contained in:
2026-10-30 11:27:44 +01:00
parent 9bdda896af
commit b9c03a7637
45 changed files with 70 additions and 562 deletions
-5
View File
@@ -76,7 +76,6 @@ public struct KeyContext: Equatable, Sendable {
/// The overlay kinds the router tells apart.
public enum OverlayKind: Equatable, Sendable {
case none
case note
/// The full-screen Diff: the workspace shortcuts keep working over it. `busy` while its own
/// menu or pass-on prompt is open; those then own every key.
case diff(busy: Bool)
@@ -86,7 +85,6 @@ public enum OverlayKind: Equatable, Sendable {
public init(_ overlay: Overlay, diffBusy: Bool = false) {
switch overlay {
case .none: self = .none
case .note: self = .note
case .diff: self = .diff(busy: diffBusy)
default: self = .other
}
@@ -116,8 +114,6 @@ public enum KeyRouter {
case .none: break
case .diff:
if press == .cmd(.character("a")) { return .pass }
case .note:
return press == .cmd(.character("p")) ? .perform(.passNote) : .pass
case .other: return .pass
}
@@ -177,7 +173,6 @@ public enum KeyRouter {
switch c {
case "f": return .perform(.showSearch(seed: context.searchSeed))
case "p": return .perform(.push)
case "n": return .perform(.showNote)
case "s": return .perform(.save)
case "m": return .perform(.cycleMode)
case "w": return .perform(.closeFileOrWindow)