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

enhancement: see full sql in query history #693

Closed
khorsky opened this issue Jun 27, 2019 · 4 comments
Labels
Milestone

Comments

@khorsky
Copy link

@khorsky khorsky commented Jun 27, 2019

  1. Run any query in query window
  2. Look at query history
  3. hover over any query in history

Current behavior

I can see only first line of the query sql, which is helpful only for short/easy queries. I often use (formatted) queries that are 10-15 lines long - the only difference are their conditions. Conditions are on the end of the query - so the query hint is not useful at all for this use case.

The only way is to open the query one by one - that works, but takes time.

Expected behavior

I would like to be able to see complete query sql in query history hint.

HeidiSQL version:
AFAIK all versions

@WesleyM77

This comment has been minimized.

Copy link

@WesleyM77 WesleyM77 commented Jun 27, 2019

I feel like putting the entire query in a tooltip could potentially cause some issues, especially with long ones as you mentioned. I know some of mine get quite large as well. Might I suggest that it would show a preview of the query in the query tab where it will be placed? If done this way, it might be a good idea to keep the tooltip as-is to reinforce to the user that the preview is shown as a result of where the cursor is.

@ansgarbecker

This comment has been minimized.

Copy link
Collaborator

@ansgarbecker ansgarbecker commented Jun 27, 2019

Sounds reasonable. I recall I already tried to do that, but had probklems in setting up the VirtualTree instance in a way that tooltips are only shown when necessairy, but I should definitely give it a new try.

@ansgarbecker ansgarbecker added this to the v10.3 milestone Jun 27, 2019
@ansgarbecker

This comment has been minimized.

Copy link
Collaborator

@ansgarbecker ansgarbecker commented Oct 27, 2019

These tooltips were just clipped when displayed, while they were always fully loaded. I just changed the HintMode for that tree to hmHint, so it's now capable of displaying multiple lines in a tooltip.
Not sure why I did not activate that by default for all other trees, except for data grids.

@khorsky

This comment has been minimized.

Copy link
Author

@khorsky khorsky commented Oct 27, 2019

It works perfectly. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.