bruno icon indicating copy to clipboard operation
bruno copied to clipboard

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

Open iamrajiv opened this issue 7 months ago • 1 comments

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:

  • [x] The pull request only addresses one issue or adds one feature.
  • [x] The pull request does not introduce any breaking changes
  • [x] I have added screenshots or gifs to help explain the change if applicable.
  • [x] I have read the contribution guidelines.
  • [x] 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 avatar May 15 '25 00:05 iamrajiv

@helloanoop can u take a look and run the ci

iamrajiv avatar May 16 '25 10:05 iamrajiv

@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?

helloanoop avatar May 27 '25 21:05 helloanoop

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

iamrajiv avatar May 28 '25 18:05 iamrajiv