Bug 432955 - enabling WYTIWYG comments
Summary: enabling WYTIWYG comments
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-15 00:54 UTC by Nicole Sharp
Modified: 2023-08-17 18:18 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicole Sharp 2021-02-15 00:54:59 UTC
SUMMARY

There needs to be a WYTIWYG ("what you type is what you get") mode for KATE.  Currently it is very difficult to always disable automatic indentations for certain filetypes.  A strict WYTIWYG mode would mean that KATE will never insert any characters (including spaces or indents) that were not typed by the user, regardless of the filetype.

STEPS TO REPRODUCE
1.  For file "style.css", type "/*" and hit enter.
2.  " * " is automatically inserted by KATE.
3.  No option in settings to disable automatic indentation for all filetypes.

SOFTWARE/OS VERSIONS
KATE 20.12.2 for 64-bit Microsoft Windows 10 Education
Comment 1 Boris Petrov 2021-03-15 14:28:39 UTC
Hi, I can't try this on Windows but on my Linux installation (same version of Kate though), there is the section Indentation in the Tools' menu which determines (I think because it works on my side, but I'm not sure) whether characters are automatically inserted or not. Could you try to set it to None and see if characters are still inserted ?

If this solves it, I guess this bug can be closed.
Comment 2 tim 2022-12-20 13:00:18 UTC
Just found this issue.

@Boris Petrov, the "none" option does turn the auto-indenting off, but the setting doesn't "stick" so the next file you open it will be back on again, keeping auto-indent off is a constant battle. So the menu option helps mitigate this, but does not solve the problem. Even when indentation is off for a specific file type in the settings, Kate sometimes inexplicably loads the file with the indentation on.

It could just be the way I type/my brain works, but I find it really confusing to have stuff I didn't type appear under my cursor. Also, the auto-completion, indentation etc seems to get it wrong more often that it gets it right, so I'm forever deleting and correcting what it does if I leave it on. 

The problem is that there are so many options in kate in so many places that control these things it takes for ever to switch it all off for everything (eg you can't switch auto-indent off for every file type with a single control) and new settings always seem to creep in. So a single "WYTIWYG" mode that disables everything that tries to add/correct/change what I type would be very very appreciated.
Comment 3 Christoph Cullmann 2023-08-17 18:18:54 UTC
If somebody wants to have that, please provide a patch.

https://kate-editor.org/join-us/

I don't see that we have time nor interest to implement that ourselves, please
scratch you own itch, thanks.