Skip to content

feat: Add "Reopen Last Closed Tab" feature (Cmd+Shift+T/Ctrl+Shift+T) #4677

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

iamrajiv
Copy link

Description

This PR adds the ability to reopen recently closed tabs in Bruno, similar to how browsers work.

Features

  • Added keyboard shortcut to reopen closed tabs (⌘+Shift+T on Mac, Ctrl+Shift+T on Windows)
  • Stores up to 10 recently closed tabs in Redux
  • Automatically reopens tabs in reverse order of closing
  • Shortcut appears in Keybindings preferences

Testing

Tested by:

  1. Opening multiple tabs
  2. Closing several tabs
  3. Using the shortcut to reopen them in reverse order

Closes #[issue number if applicable]

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.

Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.

Publishing to New Package Managers

Please see here for more information.

@iamrajiv
Copy link
Author

@helloanoop can u take a look and run the ci

@helloanoop
Copy link
Contributor

@iamrajiv Thanks for the PR.

The implementation looks fine to me. Onboard to support the Ctrl+Shift+T to reopen recently closed tabs.
Recently, we've been improving the test harness of the app

Could you add a Jest unit test in tabs.spec.js to cover the reopenLastClosedTab behaviour?

@pull-request-size pull-request-size bot added size/L and removed size/M labels May 28, 2025
@iamrajiv
Copy link
Author

Thanks, @helloanoop. I’ve added the test. Can you review it now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants