| Summary: | Some .kateconfig settings are applied only after file reload (pressing F5) | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Chris K <chris-k> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | kdedev |
| Priority: | NOR | ||
| Version First Reported In: | 23.08.5 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/-/commit/58a165c5e067b780a260bb0e10a0b50e2b7f3715 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
Chris K
2024-07-02 12:19:27 UTC
The bug says some settings are applied after a reload. Can you let me know one or two settings that are applied without a reload for testing purposes? I want to confirm if this is behavior by design or inconsistent behavior. Note: The current documentation doesn't mention whether it's expected that the user needs to reload a document to reflect changes in the .kateconfig file https://docs.kde.org/stable5/en/kate/katepart/config-variables.html (In reply to TraceyC from comment #1) > The bug says some settings are applied after a reload. Can you let me know > one or two settings that are applied without a reload for testing purposes? > I want to confirm if this is behavior by design or inconsistent behavior. > > Note: The current documentation doesn't mention whether it's expected that > the user needs to reload a document to reflect changes in the .kateconfig > file > https://docs.kde.org/stable5/en/kate/katepart/config-variables.html One thing that works directly (after opening a fitting file) is the *word-wrap-column* variable (as given in the original report). Another example is *replace-tabs* (off/on). This is definitely the intention; you cannot expect people to open a file and then immediately manually reload it, just to get the settings applied. The inconsistent behavior is the font family and size, which requires this kind of reload. Thank you for replying. I was able to replicate the inconsistent behavior you're seeing by creating a new .kateconfig file and experimenting with the values you mentioned. kate: word-wrap-column 20; This is applied right away to the .kateconfig file itself but not other files in a session It is applied when opening a file, as you observed, and also if reloading the file with F5 kate-wildcard(*.txt): word-wrap-column 20; font-size 18; font Noto Sans; When opening a text file, I observed - The word wrap is correctly at 20 columns without needing to reload the file - The font is *not* set to Noto Sans, it is using the same font as other files - Reloading the file with F5 changes the font to the one specified Git commit 58a165c5e067b780a260bb0e10a0b50e2b7f3715 by Waqar Ahmed. Committed on 29/09/2024 at 17:55. Pushed by cullmann into branch 'master'. Read dir kateconfig on view creation M +43 -30 src/document/katedocument.cpp M +14 -4 src/document/katedocument.h https://invent.kde.org/frameworks/ktexteditor/-/commit/58a165c5e067b780a260bb0e10a0b50e2b7f3715 Thank you! :-) |