Skip to content

Copy Path in the linked SQL favorite context menu #2473

Closed

Description

@datlechin

Problem

Linked SQL favorites are real .sql files on disk, but their context menu has no way to get the path. It offers Open in Editor, Edit Metadata…, the Git commands inside a repository, Copy Query, Show in Finder and Move File to Trash (apple/TablePro/Views/Sidebar/Menu/FavoritesMenuSpec.swift:179). The parent linked folder row already has Copy Path (FavoritesMenuSpec.swift:215), so the file row is the odd one out. A linked subfolder row has no commands of its own at all (FavoritesMenuSpec.swift:120).

Today the path takes three steps: Show in Finder, ⌥⌘C in Finder, paste. That comes up whenever a saved query has to be named to something outside the app, such as a terminal, a script or an MCP client working with TablePro's MCP server. list_recent_tabs reports a tab's connection, table, database and title but no file path (apple/TablePro/Core/MCP/Protocol/Tools/MCPTabSnapshotProvider.swift:5), so a client has no way to know which query file is open.

Proposed solution

Add Copy Path to the linked favorite context menu, under Copy Query and next to Show in Finder, copying the absolute path of the .sql file.

Full scope so the surface stays consistent:

  • Copy Path on the linked favorite row, and hold ⌥ to swap it for Copy Relative Path (relative to the linked folder root).
  • The same pair on the linked folder row, which today has only the absolute variant, and on linked subfolder rows, which have neither.
  • ⌥⌘C for Copy Path and ⇧⌥⌘C for Copy Relative Path, matching Finder.
  • Multi-select copies one path per line.
  • The same pair in the File menu, enabled only while a path-backed row is selected.

Regular favorites live in sql_favorites.db rather than as files, so they get neither item.

Alternatives considered

Show in Finder then copy from Finder. It works, but it is three steps and a window switch for something the menu is already one click away from.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. changed the title [-]Feature request: "Copy Path" in the linked SQL favorite context menu[/-] [+]Copy Path in the linked SQL favorite context menu[/+] on Oct 19, 2026
  3. added
    platform-macos
    on Oct 19, 2026
  4. datlechin commented on Oct 21, 2026

    @datlechin
    MemberAuthor

    Fixed by #3711.

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

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions