Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run commands in a new Ghostty window/tab/split #2111

Closed
wants to merge 2 commits into from

Conversation

jcollie
Copy link
Collaborator

@jcollie jcollie commented Aug 17, 2024

This PR adds the plumbing to launch new commands in a Ghostty surface.

This is used to do the following:

  • Adds options to write_scrollback_file, write_screen_file, and write_selection_file to create a new window, tab, or split and open up that file using your editor.

  • Clicking on a URL can create a new window, tab, or split and run a custom command in that new surface.

Screencast.from.2024-08-16.22-47-37.webm
Screencast.from.2024-08-17.22-13-41.webm

This adds options to `write_scrollback_file`, `write_screen_file`, and
`write_selection_file` to create a new window, tab, or split and open
up that file using your editor.

To do so, the plumbing has been added to the core to create new surfaces
with a custom configuration.
This makes launching commands in Ghostty surfaces a little more general
and uses that to add the ability to launch commands in new surfaces when
clicking on a URI.
@jcollie jcollie changed the title Open scrollback in your editor inside Ghostty Run commands in a new Ghostty window/tab/split Aug 18, 2024
@jcollie jcollie mentioned this pull request Aug 21, 2024
@jcollie jcollie closed this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant