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

feat(ux): rerun command pane #1787

Merged
merged 80 commits into from
Oct 11, 2022
Merged

feat(ux): rerun command pane #1787

merged 80 commits into from
Oct 11, 2022

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Oct 11, 2022

This PR makes all panes that run a command (eg. from the CLI or from a layout) become "command panes".

A command pane does not immediately exit when its command does, but instead displays its exit status on the pane frame, as well as helpful keyboard tips. When in this state, the user can:

  1. Press <ENTER> to re-run the command in the pane
  2. Press <Ctrl-c> to close the pane

This can be very powerful for commands that we run many times. Think of anything you do up-arrow + ENTER for.
It can also be really nice when combining with the "Tab Sync" feature (by default ctrl+t + s): imagine re-running a few of these commands together by navigating to a tab that has all of them open (eg. with a layout) and just pressing <ENTER>.

A short demo:

2022-10-10.20-09-19.mp4

@imsnif imsnif temporarily deployed to cachix October 11, 2022 13:44 Inactive
@imsnif imsnif merged commit c64bf52 into main Oct 11, 2022
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