feat(sidebar): keyboard shortcut to focus the table filter#412
Merged
Conversation
New "focus_table_filter" navigation shortcut (⌘⇧F / Ctrl+Shift+F, rebindable in Settings) dispatches a tabularis:focus-table-filter event; ExplorerSidebar focuses the first visible "Filter tables…" input across the flat, per-schema, and per-database layouts (via a data-table-filter hook), and works even while another input is focused. i18n added for all 8 locales.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Today the only way to reach the sidebar's "Filter tables…" input is with the mouse. This adds a keyboard shortcut — ⌘⇧F / Ctrl+Shift+F — that focuses it.
Changes
focus_table_filtershortcut inshortcuts.json(navigation,overridable) — so it shows up under Settings → Shortcuts and can be rebound.useGlobalShortcuts: it dispatches atabularis:focus-table-filterevent and is whitelisted in the "ignore while typing" guard (like the Quick Navigator), so you can jump to the filter even from the SQL editor.ExplorerSidebarfocuses (and selects) the first visible "Filter tables…" input. That input is rendered three ways — flat (MySQL/SQLite), per-schema (Postgres), and per-database (multi-DB) — so it's targeted via a stabledata-table-filterattribute rather than the translated placeholder.settings.shortcuts.focusTableFilteradded to all 8 locales.