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
+11
View File
@@ -31,6 +31,7 @@ option(CHATTERINO_LTO "Enable LTO for all targets" OFF)
option(CHATTERINO_PLUGINS "Enable ALPHA plugin support in Chatterino" ON)
option(CHATTERINO_USE_GDI_FONTENGINE "Use the legacy GDI fontengine instead of the new DirectWrite one on Windows (Qt 6.8.0 and later)" ON)
option(CHATTERINO_ALLOW_PRIVATE_QT_API "Allow uses of Qt's private API - when enabling this, Chatterino must use the EXACT Qt version it was compiled against" OFF)
option(CHATTERINO_SPELLCHECK "Enable spellchecking in Chatterino (requires Hunspell)" OFF)
option(CHATTERINO_SANITIZER_SUPPORT "Attempt to enable Sanitizer support on the test and app targets. Actual sanitizers can then be enabled with the SANITIZE_* options." OFF)
mark_as_advanced(CHATTERINO_SANITIZER_SUPPORT)
@@ -151,6 +152,16 @@ find_package(OpenSSL REQUIRED)
find_package(Threads REQUIRED)
if(CHATTERINO_SPELLCHECK)
# Find from package manager
find_package(hunspell QUIET CONFIG)
if(NOT hunspell_FOUND)
find_package(PkgConfig REQUIRED)
pkg_check_modules(hunspell REQUIRED IMPORTED_TARGET hunspell)
add_library(hunspell::hunspell ALIAS PkgConfig::hunspell)
endif()
endif()
find_library(LIBRT rt)
if (USE_SYSTEM_LIBCOMMUNI)