Commit graph

32 commits

Author SHA1 Message Date
Ivailo Monev
6dae9f2a53 kate: remove TODO for templates selection feature
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-23 03:54:00 +03:00
Ivailo Monev
74a63ed2fe kate: templates rewrite and implement cursor
I guess selection was something unfinished/experimental

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-23 03:43:41 +03:00
Ivailo Monev
defd167bcc kate: adjust to ktexteditor changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-05-23 00:43:50 +03:00
Ivailo Monev
5ca5e4ea2d generic: adjust to KDirWatch changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-21 00:26:44 +02:00
Ivailo Monev
f3e5025c2f generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-17 15:43:14 +02:00
Ivailo Monev
46dc6aa2bb kate: register as plugin
KTextEditor::Factory does its own thing in terms of plugin lookup, view
creation and such. the plan is to remove the KTextEditor interface glue
code (because there is only one part providing the functionality for that
interface - katepart) and register KateDocument as part plugin via
K_PLUGIN_FACTORY() macro but until then that will work

fixes loading of the part in some cases (e.g. when Ark attempts to load it
from its previewer)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-12-01 02:25:20 +02:00
Ivailo Monev
9e697dfade kate: log the file (Kate::TextLoader) codec name
m_textCodec is used only to probe, if BOM is detected m_textCodec may be
null. fixes possible crash

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-24 03:12:29 +02:00
Ivailo Monev
4885185b98 kate: add QGuiPlatformPlugin class to cpp syntax data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-22 23:06:23 +02:00
Ivailo Monev
c5dc736536 kate: always use the KMessageWidget animation feature
note that the KMessageWidget animation is a fade effect so
KateFadeEffect was doing what KMessageWidget already has the feature
for, grow/shrink effect is not a thing

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-21 18:59:38 +02:00
Ivailo Monev
003d3b3fe7 kate: add Q_EXPORT_PLUGIN macro to cpp syntax data
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-14 15:41:18 +02:00
Ivailo Monev
8b2eba7361 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-13 01:41:49 +02:00
Ivailo Monev
b8cd7e451e kate: use QMutableListIterator<T> for iteration in KateCompletionWidget::startCompletion()
another iterator modified the wrong way, fixes possible crash

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-11-01 03:22:08 +02:00
Ivailo Monev
a99ed13bb7 kate: enable line numbers and disable folding bar by default
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-26 08:22:24 +03:00
Ivailo Monev
a6bf48c93c generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-26 01:44:49 +03:00
Ivailo Monev
bc155644ac kate: log KateWordCompletionView debug messages to Kate (Code Completion) area
13040 is reserved for Kate (Plugins)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-22 21:32:08 +03:00
Ivailo Monev
fbd2f9e65b generic: adjust to KDebug changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-22 19:31:24 +03:00
Ivailo Monev
94006c31a8 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-18 04:09:12 +03:00
Ivailo Monev
936c69c827 generic: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-14 16:19:24 +03:00
Ivailo Monev
0271c00f24 kate: remove non-operational feature to download highlight files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-10-11 12:02:41 +03:00
Ivailo Monev
d82746be82 generic: adjust to KLocale changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-30 20:19:42 +03:00
Ivailo Monev
cd7e05430e kate: adjust to KTextEditor interface classes changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-28 18:38:21 +03:00
Ivailo Monev
624185ad90 kate: include kcompletion instead of kshellcompletion header for the KCompletion reference
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-09-26 21:28:13 +03:00
Ivailo Monev
9893dc1317 kate: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-26 19:13:59 +03:00
Ivailo Monev
bd3968a3d3 kate: use json syntax highlighter for MIME types that claim to be in JSON format
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-15 05:23:52 +03:00
Ivailo Monev
1904c7fed1 kate: prepare for Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-15 00:16:51 +03:00
Ivailo Monev
9db4775e46 generic: adjust to Katie changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-09 06:07:40 +03:00
Ivailo Monev
38cdd9c0f4 generic: cast pointers with QObject as base class via qobject_cast<T>()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-01 21:54:59 +03:00
Ivailo Monev
92d1e03122 generic: minor optimizations
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-06-01 17:45:25 +03:00
Ivailo Monev
fe52270c14 kate: explicitly convert to range and cursor objects
lots of opportunities for optimizations by caching the converted objects

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-28 11:08:27 +03:00
Ivailo Monev
39ed818dec kate: set the stream codec once in TextBuffer::save()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-27 04:21:03 +03:00
Ivailo Monev
efb984cfae generic: bump minimum Katie version requirement to 4.12.0
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-22 03:59:41 +03:00
Ivailo Monev
f68295ea28 generic: move sub-projects from kde-baseapps [ci reset]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-14 21:56:54 +03:00