Skip to content

[Feature Request] Open table in a new tab from a FK #11

Closed

Description

@giquo

Problem/Motivation

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

Activity

  1. giquo commented on Nov 4, 2026

    @giquo
    Author

    my workaround was using the Table DDL and go from there memorizing names and ids (yl), but having 4 or 5 tables ... yeah.

  2. kackerx commented on Nov 19, 2026

    @kackerx
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions