Skip to content

If a command is rerun after exiting, close the old tab#3370

Merged
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:3138-reap-instead-of-recycle
Sep 29, 2023
Merged

If a command is rerun after exiting, close the old tab#3370
datho7561 merged 1 commit intoredhat-developer:mainfrom
datho7561:3138-reap-instead-of-recycle

Conversation

@datho7561
Copy link
Copy Markdown
Contributor

@datho7561 datho7561 commented Sep 28, 2023

When you start a new command in the terminal, check if there is a tab open where that command was run and has exited. If there is, close that tab before opening an new tab to run the rerun of the command. Not quite the same as recycling the tab, but it has a much simpler implementation.

Closes #3138

Signed-off-by: David Thompson davthomp@redhat.com

When you start a new command in the terminal,
check if there is a tab open where that command was run and has exited.
If there is, close that tab before opening an new tab to run the
rerun of the command.
Not quite the same as recycling the tab, but it has a much simpler
implementation.

Closes redhat-developer#3138

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561 datho7561 force-pushed the 3138-reap-instead-of-recycle branch from b28ef38 to c3eb3a5 Compare September 28, 2023 15:08
@datho7561 datho7561 requested a review from vrubezhny September 28, 2023 20:03
Copy link
Copy Markdown
Contributor

@vrubezhny vrubezhny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Thanks!

@datho7561 datho7561 merged commit 881c2fe into redhat-developer:main Sep 29, 2023
@datho7561 datho7561 deleted the 3138-reap-instead-of-recycle branch September 29, 2023 12:55
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.

Investigate reusing terminals to avoid too many tabs open

2 participants