SUMMARY Setting "Disabled" for "Align dynamically wrapped lines to..." is ignored. STEPS TO REPRODUCE 1. "Configure Kate", "Appearance", "General" 2. Check "Dynamic Word Wrap" and set "Align dynamically wrapped lines to..." to 0% (Disabled) 3. Apply or save, and close OBSERVED RESULT When I open again "Configure Kate", the "Disabled" setting has been forgotten. When I start a paragraph with three spaces, the result is indentation for the whole paragraph. EXPECTED RESULT The setting "Disabled" should be saved and respected. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Slackware-current (14.2), Linux 5.10.3-smp, xfce Qt Version: qt5-5.15.2-i586-2 ADDITIONAL INFORMATION The problem appeared this month only, not with the older versions. * Another bug? I have Default indentation mode: None Indent using: Tabulators (only) The field "Indentation width" is greyed (correctly), showing "4 characters". Yet, with 3 initial spaces I obtain (unwanted) indentation!
Created attachment 134484 [details] Per filetype Indentation Mode setting I can confirm that the "Align dynamically wrapped lines to indentation depth" does not properly store the "Disabled" option properly and instead reverts to the previous percentage. A workaround would be to set it to "1%" since that would be small enough to never get trigerred (unless you have a very wide screen). For the other bug, I have the same kate version but can't reproduce (Setting "Default Indentation mode" to "None" disables automatic indentation for normal text files). What type of file are you getting the problem with? If, for example, you are working with markdown files, you can set the Indentation mode to None in Settings > Open/Save > Modes & Filetypes > Indentation mode.
Created attachment 134487 [details] attachment-11579-0.html Thanks!!! I forgot to point out that I use a 32-bit computer. I am telling you because you could not reproduce the "second bug". The text mode is just Normal. Today I did what you suggest (None in Settings > Open/Save > Modes & Filetypes > Indentation mode) for Normal mode (it was "default") but nothing changed. Best regards, George K. On Sat, Jan 2, 2021 at 22:14, Jan Paul Batrina wrote: https://bugs.kde.org/show_bug.cgi?id=430987 (https://bugs.kde.org/show_bug.cgi?id=430987) Jan Paul Batrina changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jpmbatrina01@gmail.com (mailto:jpmbatrina01@gmail.com) --- Comment #1 from Jan Paul Batrina --- Created attachment 134484 [details] --> https://bugs.kde.org/attachment.cgi?id=134484&action=edit (https://bugs.kde.org/attachment.cgi?id=134484&action=edit) Per filetype Indentation Mode setting I can confirm that the "Align dynamically wrapped lines to indentation depth" does not properly store the "Disabled" option properly and instead reverts to the previous percentage. A workaround would be to set it to "1%" since that would be small enough to never get trigerred (unless you have a very wide screen). For the other bug, I have the same kate version but can't reproduce (Setting "Default Indentation mode" to "None" disables automatic indentation for normal text files). What type of file are you getting the problem with? If, for example, you are working with markdown files, you can set the Indentation mode to None in Settings > Open/Save > Modes & Filetypes > Indentation mode.
That's weird. I'll try finding a 32-bit system I can test on and report back (might take a while). For now, I think the Indentation mode bug should be filed in a separate bug report so that discussions are easier to handle :)
My previous message was not clear enough, because I was sleepy; sorry! Your workaround (using 1% instead of 0%) works well, even at full screen (width 1280, font Monospace 8). Thanks! The "second bug" now becomes a wish, which I had also with the older versions of Kate. New users may feel frustrated because "Indentation mode: None" does not work as expected, and they may give up on Kate before they discover the solution ("Align..." to 0% or 1%). I shall make a suggestion in a separate report. Here is the preview: When one selects "Indentation mode: None", the field "Align..." should be set to 0% (or 1%, until the bug is fixed) internally and the previous value should be shown greyed, to be reused when the user selects another indentation mode. Thanks, again! George K.
Created attachment 134492 [details] attachment-32298-0.html Thanks! I have updated my reply at https://bugs.kde.org/show_bug.cgi?id=430987 (https://bugs.kde.org/show_bug.cgi?id=430987)
Created attachment 134495 [details] Indentation vs "Align..." From what I can understand, the Indentation Mode setting only affects the automatic indentation of multiple (adjacent) lines (shown by the left window), while the "Align..." option only affects wrapping for long lines (shown by the right window). If you were talking about the alignment of a single long line, then the Indentation mode is an irrelevant option (I apologize for not clarifying sooner) and a new bug report won't be needed.
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/59
Git commit d4854f94296896875fb5051240c035aa1815786d by Jan Paul Batrina. Committed on 03/01/2021 at 10:21. Pushed by dhaumann into branch 'master'. Allow "Dynamic Word Wrap Align Indent" to be disabled M +1 -1 src/utils/kateconfig.cpp https://invent.kde.org/frameworks/ktexteditor/commit/d4854f94296896875fb5051240c035aa1815786d
Please only one bug report per bug. The part about the None indentation will be ignored. PS: It does not have anything to do with a 32 bit system, I'm pretty sure. Are you sure you did not overwrite the indentation mode manually via the menu Tools > Indentation? The default indentation also is just for empty documents, of if no other indentation mode is set. But maybe in the config page in Open/Save > Modes & Filetypes, there you have an "Indentation Mode" as well that is either "Default" or some other indenter. I am pretty sure this is your problem. But it functions as designed. If you still think there is a bug, please open a new one. Let's not continue the discussion here.