Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Select Rows" menu item could automatically give meaningful names to tabs #214

Closed
claudio-silva opened this issue Aug 9, 2016 · 4 comments

Comments

@claudio-silva
Copy link

MySQLWorkbench, for instance, names the tabs with the table name being referenced on the query, so if we right click the Users table, for instance, and pick "Select Rows", a tab will open with the query and it will be named "Users".
That is very useful to distinguish between tabs, otherwise you'll have to open each one in turn to remember which table was being queried (as "SQLFile 1", "SQLFile 2", etc, is not useful at all for this use case).

@krolow
Copy link
Member

krolow commented Aug 9, 2016

what happens in MySQLWorkbench when you select more than one table at once?

@BornaP
Copy link
Member

BornaP commented Aug 10, 2016

I suggest naming tabs after database connection, instead of selected tables as several queries on different tables may be chosen in the same SQL tab.
If more then one tab is opened on the same database connection, it could be suffixed with integer. Ex. 'information_schema', 'information_schema 2' and so on.
This would give user quite useful info to distinguish tabs.

@claudio-silva
Copy link
Author

@krolow In MySQLWorkbench you can't use the "Select Rows" menu item when right clicking on multiple tables, it's only available for a single table.
MySQLWorkbench still names other query tabs as "Query 1", "Query 2", etc.
It only gives non-generic names to tabs when they are loaded from a file, or when they are opened from the "Select Rows" command on a single table.
Still, most of the time, this is quite enough. Complex queries get a "Query X" generic title, but tabs opened for viewing a single table get the table name.
If you later change the query to refer to another table, or to join other tables, the tab still retains its name.
It's just a simple functionality to help disambiguate tabs, it's nothing fancy, but it's still quite useful, and, IMHO, it would be better than the current way sqlectron-gui does it.

@BornaP
Copy link
Member

BornaP commented Sep 6, 2016

Nice 👍

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

No branches or pull requests

4 participants