alpha
Login
or
Join now
ptr.pet
/
ghostty
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
ghostty
/
macos
/
Sources
/
Features
/
AppleScript
/
at
main
12 files
Christo Wilken
macos: add pid and tty properties to AppleScript terminal class
4mo ago
9a900220
AppDelegate+AppleScript.swift
macos: add pid and tty properties to AppleScript terminal class Expose the foreground process PID and TTY device path as read-only properties on the AppleScript terminal class and App Intents TerminalEntity. This enables reliable process-to-terminal mapping for automation tools when multiple terminals share the same CWD. Closes #11592 Closes #10756 Session: 019d341c-a165-7843-a2f7-2f426114cf17
4 months ago
Ghostty.Input.Mods+AppleScript.swift
macos: add AppleScript commands for text input, key, and mouse events Add five new AppleScript commands to Ghostty.sdef mirroring the existing App Intents for terminal input: - `input text`: send text to a terminal as if pasted - `send key`: simulate a keyboard event with optional action and modifiers - `send mouse button`: send a mouse button press/release event - `send mouse position`: send a mouse cursor position event - `send mouse scroll`: send a scroll event with precision and momentum A shared `input action` enumeration (press/release) is used by both key and mouse button commands. Modifier keys are passed as a comma-separated string parameter (shift, control, option, command).
5 months ago
ScriptInputTextCommand.swift
macos: add macos-applescript config
5 months ago
ScriptKeyEventCommand.swift
macos: add macos-applescript config
5 months ago
ScriptMouseButtonCommand.swift
macos: add macos-applescript config
5 months ago
ScriptMousePosCommand.swift
macos: add macos-applescript config
5 months ago
ScriptMouseScrollCommand.swift
macos: add macos-applescript config
5 months ago
ScriptRecord.swift
macos: use value-style AppleScript surface configuration records Add a `surface configuration` record type to the scripting dictionary, implement `new surface configuration` (with optional copy-from), and allow `new window` to accept `with configuration`.
5 months ago
ScriptSurfaceConfiguration.swift
macos: rename surface config working directory to not be ambiguous
5 months ago
ScriptTab.swift
macos: new tab applescript command should not activate application Related to #11457
5 months ago
ScriptTerminal.swift
macos: add pid and tty properties to AppleScript terminal class Expose the foreground process PID and TTY device path as read-only properties on the AppleScript terminal class and App Intents TerminalEntity. This enables reliable process-to-terminal mapping for automation tools when multiple terminals share the same CWD. Closes #11592 Closes #10756 Session: 019d341c-a165-7843-a2f7-2f426114cf17
4 months ago
ScriptWindow.swift
macos: use direct parameters for object-targeting commands Change split, focus, close, activate window, select tab, close tab, and close window commands to accept their target object as a direct parameter instead of a named parameter. This produces natural AppleScript syntax: activate window (window 1) close tab (tab 1 of window 1) split (terminal 1) direction right instead of the awkward redundant form: activate window window (window 1) close tab tab (tab 1 of window 1) split terminal (terminal 1) direction right The implementation moves command logic from NSScriptCommand subclasses into responds-to handler methods on ScriptTerminal, ScriptWindow, and ScriptTab, which is the standard Cocoa Scripting pattern for commands whose direct parameter is an application class.
5 months ago