Skip to content

New preview mode added to the tab page #751

@stolenzc

Description

@stolenzc

Problem

VS Code has a preview mode, and we'd like to add this mode to TablePro. Specifically, we want newly opened table tabs to be in preview mode, with the current tab being replaced by the new table tab. If a tab is no longer in preview mode, opening other tables will create a new tab instead of replacing the current one.

The following points should be noted:

  1. Newly opened query tab will never be in preview mode.

  2. Newly opened tables are in preview mode by default (if this setting exists and is enabled).

  3. Preview mode tab titles are italicized (refer to VS Code or TablePlus).

  4. Double-clicking the tab title or making any changes to a preview mode tab will automatically exit preview mode.

Implementing this feature will make multi-tab operations and management more convenient and make the behavior of multiple tabs more predictable.

Here is a example from vscode, .gitignore tab not in preview mode, and readme file in preview mode

Image

Proposed solution

Added setting to enable or disable new tab preview

Alternatives considered

Do not add any settings, just start the preview mode.

Related database type

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions