Skip to content

GitWorkbench 1.0.1

Choose a tag to compare

@gpambrozio gpambrozio released this 06 Jun 20:50

What's new in 1.0.1

Custom file actions on the Changes tab. Attach your own right-click and double-click behavior to file rows with view modifiers on GitWorkbenchView. Each callback receives the clicked file's URL — absolute when you set WorkbenchConfiguration.repositoryURL (typically the same URL you give CLIGitProvider).

GitWorkbenchView(store: store)
    .onChangesDoubleClick { url in NSWorkspace.shared.open(url) }
    .onChangesRightClick { url in /* run an action */ }
    .onChangesRightClickPopover { url in FileActionsMenu(url: url) }  // show your own popover

Everything is opt-in: with no modifier attached, rows behave exactly as before — single-click still selects, and the stage box, discard button, and hover are untouched. Double-clicks landing on the stage box or discard button are ignored so they don't fire your action on top of those controls.

Requirements

  • macOS 15+
  • Swift 6 (language mode v6)

Installation

.package(url: "https://github.com/gpambrozio/GitWorkbench.git", from: "1.0.1"),