feat: spellcheck input (#6446)

Reviewed-by: Mm2PL <mm2pl+gh@kotmisia.pl>
Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
Reviewed-by: fourtf <tf.four@gmail.com>
This commit is contained in:
Nerixyz
2026-01-02 15:56:29 +01:00
committed by GitHub
parent f4212028d6
commit 95bc67fea0
33 changed files with 854 additions and 14 deletions
+1
View File
@@ -145,6 +145,7 @@ void Paths::initSubDirectories()
this->pluginsDirectory = makePath("Plugins");
this->themesDirectory = makePath("Themes");
this->crashdumpDirectory = makePath("Crashes");
this->dictionariesDirectory = makePath("Dictionaries");
#ifdef Q_OS_WIN
this->ipcDirectory = makePath("IPC");
#else
+3
View File
@@ -39,6 +39,9 @@ public:
// Custom themes live here. <appDataDirectory>/Themes
QString themesDirectory;
// Spell checking dictionaries <appDataDirectory>/Dictionaries
QString dictionariesDirectory;
// Directory for shared memory files.
// <appDataDirectory>/IPC on Windows
// /tmp elsewhere
+3
View File
@@ -353,6 +353,9 @@ public:
false,
};
BoolSetting enableSpellChecking = {"/behaviour/spellChecking/enabled",
false};
FloatSetting pauseOnHoverDuration = {"/behaviour/pauseOnHoverDuration", 0};
EnumSetting<Qt::KeyboardModifier> pauseChatModifier = {
"/behaviour/pauseChatModifier", Qt::KeyboardModifier::NoModifier};
+6
View File
@@ -681,6 +681,12 @@ void WindowManager::encodeNodeRecursively(SplitNode *node, QJsonObject &obj)
QJsonArray filters;
WindowManager::encodeFilters(node->getSplit(), filters);
obj.insert("filters", filters);
auto spellOverride = node->getSplit()->checkSpellingOverride();
if (spellOverride)
{
obj["checkSpelling"] = *spellOverride;
}
}
break;
case SplitNode::Type::HorizontalContainer: