Version: (using KDE KDE 3.5.6) Installed from: Ubuntu Packages OS: Linux Kate does not automatically apply indentation settings to new files. Steps to reproduce: 1. Create a new file (File -> New) 2. Go to Settings -> Configure Kate -> Editor -> Indentation and set Indentation mode to Python Style. Hit OK. (If Indentation mode was already set to Python Style, change it to something else, hit Apply, then change it back before hitting OK.) 3. Type the following (<angled brackets> indicate a keypress and not something to be typed verbatim): class asdf: <return> The second line should now contain a single tab (or whatever your indentation settings are configured to do). 4. Create another new file and then repeat the previous step. The second line will not be automatically indented. Check Settings -> Configure Kate -> Editor -> Indentation to confirm that Indentation mode is still set to Python Style. It should either use the saved setting for new files, or reset the setting. Running KDE 3.5.6 on Kubuntu Feisty 7.04 Originally filed here: https://launchpad.net/ubuntu/+source/kdebase/+bug/71273
Every new file (File->New) has the indentation mode set to my default.
Saving the setting, then exiting kate, then starting it again: The first file follows the indentation setting, subsequent new files still don't.
On Friday 23 February 2007, Yuriy Kozlov wrote: > Saving the setting, then exiting kate, then starting it again: > The first file follows the indentation setting, subsequent new files still > don't. It obviously does here, my default is 'normal' rather than 'none' which is the default. Are you sure the setting is actually saved?
I don't know what the other indentation settings are supposed to do at all, but the symptoms I described happen with the Python and XML indentation settings. The setting dialog shows the setting as whatever was saved, and the first file follows the setting, but new files don't.
Pease check in the Tools->Indentation Mode that your files have the expected mode set.
For KDE Version 2.5.5 (KDE 3.5.5, Debian Package 4:3.5.5a.dfsg.1-6 (4.0)) Application Advanced Text Editor Operating System Linux (i686) release 2.6.18-4-k7 Compiler Target: i486-linux-gnu, steps 1..3 described Yuriy also apply for Ruby indentation. 4, I didn't check out, nor the Tools->Indentation Mode, suggested by Anders. - Currently, I have to achieve some programming goal, hence, sorry, no time for in-depth bug-checking.
The new file does have the mode set in Tools > Indentation
I've got the same problem here and took a look in some config files. It looks like the default session overrides the the indentation mode. ~/.kde/share/apps/kate/sessions/default.katesession [Document 0] Bookmarks= Encoding=UTF-8 Highlighting=None Indentation Mode=0 URL= After deleting this session file the default indentation mode is applied.
This report seems to be a dup of #153564. On http://bugs.kde.org/show_bug.cgi?id=153564#c3 Anders says that in new kate version (3.0) the indentation is unset for new documents. Is this the right behaviour?
I can reproduce this on both kate 2.5.9 (Kubuntu 8.04) and kate 3.0.83 (Kubuntu Intrepid Alpha 1).
*** Bug 153564 has been marked as a duplicate of this bug. ***
That works for me in KDE 4.4, each session remembers the right settings.