You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Open table in a new tab from a FK #11
I tried to get from a Table 1 up to a Table 4 using foreign keys.
When using DBeaver it has so, when I place the mouse over a cell that is a foreign key, it allow me to go to the table where it comes from with the information filtered using that value.
So far so good I liked so much the pane split, and I'm having too much fun using it, I also liked how you displayed the UI, for me is great, specially now that I'm too much into TUI programs, thank you so much for your work and effort in this project, I'll be using it for now on, I'm really enjoying it
Thanks for the request, and for the kind words. This is in v0.11.0.
Put the cursor on a cell of a foreign key's column and press gd (or right-click the cell and pick Go to the referenced row; that item only shows on foreign-key columns). sqlmux opens the table the key points at, in the same pane, with the WHERE already set to referenced_column = <this row's value> (joined with and for a key over several columns). From there you can gd again, so Table 1 → Table 2 → … → Table 4 is a few keystrokes. The condition also goes into that table's WHERE history (C-r), and if the table was already open in the pane, its WHERE is replaced (the old one is in C-r too).
Not in this release: the other direction ("rows that reference this one"). If you need it, say so here.
Upgrade: brew upgrade kackerx/tap/sqlmux, npm install -g sqlmux@latest, or go install github.com/kackerx/sqlmux/cmd/sqlmux@latest. Closing as done; please reopen if it doesn't behave as you'd expect.
Activity
giquo commentedon Nov 4, 2026
my workaround was using the Table DDL and go from there memorizing names and ids (yl), but having 4 or 5 tables ... yeah.
kackerx commentedon Nov 19, 2026
Thanks for the request, and for the kind words. This is in v0.11.0.
Put the cursor on a cell of a foreign key's column and press
gd(or right-click the cell and pick Go to the referenced row; that item only shows on foreign-key columns). sqlmux opens the table the key points at, in the same pane, with the WHERE already set toreferenced_column = <this row's value>(joined withandfor a key over several columns). From there you cangdagain, so Table 1 → Table 2 → … → Table 4 is a few keystrokes. The condition also goes into that table's WHERE history (C-r), and if the table was already open in the pane, its WHERE is replaced (the old one is inC-rtoo).Not in this release: the other direction ("rows that reference this one"). If you need it, say so here.
Upgrade:
brew upgrade kackerx/tap/sqlmux,npm install -g sqlmux@latest, orgo install github.com/kackerx/sqlmux/cmd/sqlmux@latest. Closing as done; please reopen if it doesn't behave as you'd expect.