feat: Add "Reopen Last Closed Tab" feature (Cmd+Shift+T/Ctrl+Shift+T)
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:
- Opening multiple tabs
- Closing several tabs
- 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.
@helloanoop can u take a look and run the ci
@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?
Thanks, @helloanoop. I’ve added the test. Can you review it now?