turn off repetiton filter by default, use google by default, increase max hook count, replace regex with capture

This commit is contained in:
Akash Mozumdar 2021-06-05 01:48:10 -06:00
parent 1782292662
commit b4aa113fac
4 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ extern const char* EXTEN_WINDOW_INSTRUCTIONS;
namespace namespace
{ {
constexpr auto EXTEN_SAVE_FILE = u8"SavedExtensions.txt"; constexpr auto EXTEN_SAVE_FILE = u8"SavedExtensions.txt";
constexpr auto DEFAULT_EXTENSIONS = u8"Remove Repeated Characters>Remove Repeated Phrases>Regex Filter>Copy to Clipboard>Bing Translate>Extra Window>Extra Newlines>Styler"; constexpr auto DEFAULT_EXTENSIONS = u8"Remove Repeated Characters>Remove Repeated Phrases>Regex Filter>Copy to Clipboard>Google Translate>Extra Window>Extra Newlines>Styler";
struct Extension struct Extension
{ {

View File

@ -8,7 +8,7 @@ public:
using OutputCallback = bool(*)(TextThread&, std::wstring&); using OutputCallback = bool(*)(TextThread&, std::wstring&);
inline static OutputCallback Output; inline static OutputCallback Output;
inline static bool filterRepetition = true; inline static bool filterRepetition = false;
inline static int flushDelay = 400; // flush every 400ms by default inline static int flushDelay = 400; // flush every 400ms by default
inline static int maxBufferSize = 1000; inline static int maxBufferSize = 1000;
inline static int maxHistorySize = 10'000'000; inline static int maxHistorySize = 10'000'000;

View File

@ -12,7 +12,7 @@ extern const char* CURRENT_FILTER;
const char* REGEX_SAVE_FILE = "SavedRegexFilters.txt"; const char* REGEX_SAVE_FILE = "SavedRegexFilters.txt";
std::optional<std::wregex> regex; std::optional<std::wregex> regex;
std::wstring replace; std::wstring replace = L"$1";
std::shared_mutex m; std::shared_mutex m;
DWORD (*GetSelectedProcessId)() = nullptr; DWORD (*GetSelectedProcessId)() = nullptr;

View File

@ -51,6 +51,6 @@ private:
}; };
enum { MAX_HOOK = 300, HOOK_BUFFER_SIZE = MAX_HOOK * sizeof(TextHook), HOOK_SECTION_SIZE = HOOK_BUFFER_SIZE * 2 }; enum { MAX_HOOK = 2500, HOOK_BUFFER_SIZE = MAX_HOOK * sizeof(TextHook), HOOK_SECTION_SIZE = HOOK_BUFFER_SIZE * 2 };
// EOF // EOF