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
Setting "Use spaces?" stopped working #7269
Comments
I have the same experience. Some additional information: |
The issue is still reproducible on the latest snapshot build. |
I couldn't reproduce this on latest source code. Attaching screen recording. Screen.Recording.2024-03-23.at.11.28.11.mov |
Attaching behaviour from version 8.3 if Screen.Recording.2024-03-23.at.12.06.02.PM.mov |
Are you expecting to replace all the tabs with spaces when "Use spaces" is used? If yes, then that's absurd. Once a tab is pressed, on backspace a tab will be removed. Use spaces means from here on it will use spaces for tabs. |
No. I have attached only the previous behaviour and if the current one is the correct then we can ignore. |
I just tested v8.2, it has the same behaviour like the new. No matter use spaces is enabled or not, existing tabs are not replaced with spaces even in old. |
I am not saying it should replace the existing tabs with space. I am talking about behaviour on the backspace. We can connect offline and I can show you what exactly I mean. |
The issue has been resolved. Verified on snapshot build. |
While version 8.5 now inserts spaces when pressing the [tab] key as set up in the preferences (thank you!), some issues remain:
This is the exact opposite of how it should be:
|
Can't reproduce. It adds spaces based on preference.
This is a default behaviour in most of standard IDEs. I guess we'll need to add more preferences for Editor. Check my comment here - #7317 (comment) |
Pressing [tab] should align at the next tab position - whether with a single tab character or the required number of spaces. Currently, with "Use spaces?" enabled, a fixed number of spaces is entered, alignment is not observed. This is just wrong. But maybe the work done in #7317 also takes care of this? I'll have to hope for version 8.6 ... |
@brsa You don't need to wait for the 8.6 release to test this. You can test with daily nightly builds generated here - https://www.postgresql.org/ftp/pgadmin/pgadmin4/snapshots/ |
Waited for release 8.6 to verify.
|
v8.6 has already been released yesterday. |
I know, I already installed it. As also stated in my comment: "... this is not the case in 8.6." |
With "Use spaces?" activated, pressing [tab] does not align at the next tab position, as reported. The bug is still present in version 8.6. Reopen this one or create a new issue? |
Hi, |
It's very simple. How can there be misunderstanding? To reproduce, activate "Use spaces?" with "Tab size" = 3 (for example). Then, in the query tool:
I am running Ubuntu Ubuntu 20.04.6 LTS. This is what "About pgAdmin4" dumps: Version 8.6 |
Probably because English is not my first language and don't hold any literature degree in English. |
@brsa Anyway, you can create a separate ticket with details you just mentioned. |
Maybe this will clarify things: tabs (history) Yes, it at least goes back to the typewriter era, like other concepts (at least the "carriage", "return", "linefeed" and even the "bell"). The bell (physically present) was to signal the typist he or she was near the end of the line. In case of editors for coding nowadays it is widely accepted (even expected) to have the cursor going to the next position to the multiple of "the number the spaces" as configured (the width of the tab). |
One more broken item in the Query Tool for v8.4 - a follow up to #7268
There is the option "Use spaces?"
Used to work and insert spaces instead of tabs. Now the setting seems to be ignored and (unwanted) tabs are inserted.
The text was updated successfully, but these errors were encountered: