| Summary: | Indentation problem when using file->new | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Matthias <matthias> |
| Component: | indentation | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | finex |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Matthias
2007-12-06 14:56:17 UTC
For Kate to decide what sort of indentation to use, It needs to know a) the (mime) type of the file and b) what indentation to use for that file type. b) should be set up using file types. I can't remember if we ship such setups, but I have a file type that makes C style indentation the one for several C-style code lanuages (C, C++, Java ...) For a), you have to either save the document (then kate will detect the mime type) or select a file type from Tools->File type. An other alternative would be to set a default indentation type suitable for your language, but it would then always be used for files where nothing else were chosen. I think i might not have described the problem very well so i will try again: i start kate with no file opened and no parameter. i write test <return><tab>test<return> the cursor ends up at column 2 (1 level indented, tabsize is 2). then i do file->new and write the same test <return><tab>test<return> the cursor ends up in column 0, not indented. I can confirm that with Kate 2.5.8, and that is indeed odd. The indenter is set to 'normal' in both documents, but it hasent been set in the new document - if i set it actively it works. In Kate 3.0 the indentation is unset for new documents. Isn't this a dup of bug #142087 ? *** This bug has been marked as a duplicate of bug 142087 *** |