opencode icon indicating copy to clipboard operation
opencode copied to clipboard

desktop: add Ctrl+H shortcut to search recently closed tabs

Open cepice opened this issue 1 week ago • 1 comments

Summary

The Desktop app keeps recently closed tabs, but there is no quick keyboard shortcut to open and search that history. Add a searchable "Recently closed tabs" command bound to Ctrl+H by default on Windows/Linux.

Environment

  • OpenCode version: Desktop 2.4.1
  • OS: Windows 11 (build 10.0.26300.10075)
  • Terminal: N/A (Desktop app)
  • Shell: N/A (Desktop app)
  • Install/channel: Packaged Desktop, latest
  • Active plugins: None configured

Reproduction

  1. Open OpenCode Desktop.
  2. Open several session tabs.
  3. Close two or more tabs.
  4. Press Ctrl+H.

Expected Behavior

A searchable recently-closed-tabs picker opens. Typing filters by tab title, session, or project, and selecting an entry reopens that tab. Tabs that are already open should not be duplicated.

The command should also appear in Settings → Keybinds so the shortcut can be customized. Ctrl+Shift+T should remain the quick action for reopening the last closed tab.

Actual Behavior

Ctrl+H does not open closed-tab history. Recovering an older closed tab requires navigating through the UI.

Additional Context

This would bring Desktop closer to browser-style tab recovery and make it faster to restore an accidentally closed conversation without searching through all sessions.

cepice avatar Nov 24 '26 22:11 cepice

Thanks for the suggestion, @cepice!

To restate it: you'd like a keyboard command, Ctrl+H by default on Windows and Linux, that opens a searchable picker of recently closed tabs. It should also be customizable in Settings → Keybinds, and Ctrl+Shift+T should stay as the quick way to reopen the last closed tab.

The app already has a searchable recently closed menu next to the new tab control (from #51973 and #55721), and Ctrl+Shift+T reopens the last closed tab. In the code I read, I did not find a command or shortcut that opens that menu from the keyboard, so this would add one. Maintainers will consider it.

Related:

  • #48635: a similar request for browser-style tab history and recovery in the TUI
  • #51973, #55721: the pull requests that added the recently closed menu and its search

opencodejr[bot] avatar Nov 24 '26 22:11 opencodejr[bot]