Improve loads of fancy things in relation to the mouse pointer

This commit is contained in:
2026-10-07 13:02:52 +02:00
parent ed5a227c9d
commit a0b3ef9975
25 changed files with 334 additions and 89 deletions
@@ -93,6 +93,8 @@ extension WorkspaceModel {
overlay.present(.passOn(PassOnRequest(reference: reference, code: code, anchor: anchor)))
case let .passOnFileName(name):
overlay.present(.passOn(PassOnRequest(reference: name, anchor: anchor)))
case let .bouwen(name):
passToAgent("/bouwen \(name)", toast: "/bouwen \(name)")
case let .newFile(directory):
overlay.present(.namePrompt(NamePromptRequest(purpose: .newFile(inDirectory: directory), anchor: anchor)))
case let .newFolder(directory):
@@ -102,6 +104,8 @@ extension WorkspaceModel {
initialName: PathUtils.basename(path), anchor: anchor)))
case let .openDiff(path):
open(path, OpenOptions(showDiff: true))
case let .showDiff(path, line):
if editor?.activePath == path { editor?.openDiff(atLine: line) }
case let .copyTerminalSelection(kind):
if let text = terminal.selection(kind) { app.system.copy(text) }
case let .pasteIntoTerminal(kind):