adds nice git interface
This commit is contained in:
@@ -6,7 +6,7 @@ import HelderCore
|
||||
/// first responder when it names them.
|
||||
public enum FocusTarget: Equatable, Sendable {
|
||||
case panel(Panel)
|
||||
/// ⌘C without a selection, outside a terminal: the commit message field.
|
||||
/// The Git view's commit message field; ⌘G and ⌘C without a selection ask for it.
|
||||
case commitMessage
|
||||
}
|
||||
|
||||
@@ -72,9 +72,11 @@ public enum Command: Equatable, Sendable {
|
||||
|
||||
// MARK: Layout and focus
|
||||
|
||||
/// ⌘G: the Source Control pane toggle.
|
||||
/// ⌘G and the title bar's Git button: opens or closes the full-screen Git view.
|
||||
case toggleGit
|
||||
/// A title-bar pane toggle: shows or hides one column.
|
||||
/// Esc with the Git view open and no overlay over it.
|
||||
case closeGitView
|
||||
/// ⌘1–⌘3 and the title-bar pane toggles: shows or hides one column.
|
||||
case togglePane(Panel)
|
||||
/// ⌘L
|
||||
case toggleAutoFit
|
||||
@@ -85,11 +87,11 @@ public enum Command: Equatable, Sendable {
|
||||
/// ⌘←/⌘→ outside a text field.
|
||||
case focusNeighbour(step: Int)
|
||||
|
||||
// MARK: Row cursor in Source Control and Explorer
|
||||
// MARK: Row cursor in the Explorer
|
||||
|
||||
/// ↑/↓
|
||||
case moveRowCursor(Int)
|
||||
/// ↵: git row opens its half, a file opens, a folder toggles.
|
||||
/// ↵: a file opens, a folder toggles.
|
||||
case openSelectedRow
|
||||
/// ⌘→ on a row: its context menu, anchored to the column's right edge.
|
||||
case openRowMenu
|
||||
@@ -110,11 +112,18 @@ public enum Command: Equatable, Sendable {
|
||||
|
||||
// MARK: Git
|
||||
|
||||
/// ⌘↵
|
||||
/// ⌘↵ and the Commit button: always runs git, so its refusal shows in the console.
|
||||
case commit
|
||||
/// ⌘P
|
||||
case push
|
||||
/// ⌘C without a selection, outside a terminal
|
||||
case pull
|
||||
case stage([String])
|
||||
case unstage([String])
|
||||
/// A branch row in the Git view; a remote one switches by its local name.
|
||||
case switchBranch(String, remote: Bool)
|
||||
/// ↵ in the Git console.
|
||||
case submitConsoleInput
|
||||
/// ⌘C without a selection, outside a terminal: opens the Git view on its message field.
|
||||
case focusCommitMessage
|
||||
|
||||
// MARK: Clean copy
|
||||
|
||||
Reference in New Issue
Block a user