Version: 3.2.0 (using 4.2.00 (KDE 4.2.0), Kubuntu packages) Compiler: cc OS: Linux (i686) release 2.6.27-11-generic With current options I am not able to insert a tab -- it gets replaced with spaces. Nor in the beginning, nor in the middle of line. Even more: I am not able even to paste come text with tabs! (they get replaced with spaces). Kate options: --Insert spaces instead of tabulators: no. --Adjust indentation of code pasted from clipboard: no. Some options are overriden with .kateconfig: kate: space-indent on; indent-width 2; As you can see, there is not option that forces tabs to be replaced with spaces. (I only set spaces as indenter, but never asked to replace tabs in the middle of line. And of course I didn't asked to modify pasted text.)
I could not reproduce this unless I explicitly used the command line (hit F7) and typed 'set-replace-tabs on'
Created attachment 31491 [details] "katerc" and ".kateconfig" files which reveal the issue Here I attached "katerc" and ".kateconfig" files which cause the described issue for me. (Other kate-like configs included too, although they seem to unrelated to the issue.) P.S.: It seems like combination of these files gives "set-replace-tabs on", although no one of these files really contains this option.
In the projects I work on, the indentation rule is to use 4 spaces (some still use tabs). If I set tab and indentation width to 4 characters and set "Insert spaces instead of tabulators", I can't insert tab characters. Make files need the actual tab character to work, so that is a problem. Bug 188632 is probably a duplicate of this one. What is the purpose for the "Insert spaces instead of tabulators" in the "General" tab in the settings? At the moment it totally disables the insertion of tab characters if set. Does this not belong to the "Indentation" tab? In KDE 3.5, there was also a "Use spaces to indent" which enabled to have space indentation but still use tab characters when needed. (OT: What does "Keep extra spaces" mean? ) Regards, Kåre
Yeah, there needs to be a way to insert a tab, even if the tab key indents and we have space indentation only. *** This bug has been marked as a duplicate of bug 145664 ***