hankinsoft / SQLPro

SQLPro bug & features tracking.
100 stars 27 forks source link

Feature Request: Visualize Indent Levels #939

Closed neema-esfandi closed 8 months ago

neema-esfandi commented 9 months ago

Is your feature request related to a problem? Please describe. It's very difficult to keep track of of the opening partner of a closed parentheses when working with multiple levels of indentation.

Describe the solution you'd like A visualization of the different indent levels similar to VSCode's implementation (the color coding is nice but not necessary)

Describe alternatives you've considered No real alternatives available

Additional context See VSCode example here image.

Environment (please complete the following information):

Requests will be closed until environmental details are provided.

hankinsoft commented 9 months ago

I like this and will look into adding it for a future build.

hankinsoft commented 8 months ago

Could you give this version a try:

https://sqlprostudio.s3.us-east-1.amazonaws.com/postgres/SQLProPostgres.2023.58.app.zip?

That should add the vertical indent levels for curly brackets.

neema-esfandi commented 8 months ago

Great, thanks for the work on this. I found one issue with (see attached picture). I replaced a small script's parantheses with the curly brackets and noticed if a blank indention is made , the curly brackets respective vertical indent levels did not shift over with the brackets.

This might just be because of how vertical indent lines are only attached to the curly brackets at the moment , but it might useful to have the indent lines for all tabulations?

Screenshot 2023-10-10 at 1 34 58 PM

hankinsoft commented 8 months ago

Could you give this build a try? It should include indents for each level.

https://sqlprostudio.s3.us-east-1.amazonaws.com/postgres/SQLProPostgres.2023.60.app.zip

neema-esfandi commented 8 months ago

This looks great! Exactly what I was looking for

neema-esfandi commented 8 months ago

While using it , I have noticed some performance problems with long queries (500+ rows). Lagging cursor and text

hankinsoft commented 8 months ago

Can you try: https://sqlprostudio.s3.us-east-1.amazonaws.com/postgres/SQLProPostgres.2023.61.app.zip

That should resolve the performance issues. Please let me know if you get the chance.

hankinsoft commented 8 months ago

Going to mark this as closed. Please let me know if you run into any additional issues.