Add option for username tab completion only with an @ prefix (#1573)
* add an additional check for username completion without an @ prefix * Changed setting name * default userCompletionOnlyWithAt to false
This commit is contained in:
@@ -127,7 +127,7 @@ void CompletionModel::refresh(const QString &prefix, bool isFirstWord)
|
|||||||
TaggedString::Type::Username);
|
TaggedString::Type::Username);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (!getSettings()->userCompletionOnlyWithAt)
|
||||||
{
|
{
|
||||||
for (const auto &name :
|
for (const auto &name :
|
||||||
usernames->subrange(Prefix(usernamePrefix)))
|
usernames->subrange(Prefix(usernamePrefix)))
|
||||||
|
|||||||
@@ -134,6 +134,8 @@ public:
|
|||||||
"/behaviour/autocompletion/smallStreamerLimit", 1000};
|
"/behaviour/autocompletion/smallStreamerLimit", 1000};
|
||||||
BoolSetting prefixOnlyEmoteCompletion = {
|
BoolSetting prefixOnlyEmoteCompletion = {
|
||||||
"/behaviour/autocompletion/prefixOnlyCompletion", true};
|
"/behaviour/autocompletion/prefixOnlyCompletion", true};
|
||||||
|
BoolSetting userCompletionOnlyWithAt = {
|
||||||
|
"/behaviour/autocompletion/userCompletionOnlyWithAt", false};
|
||||||
|
|
||||||
FloatSetting pauseOnHoverDuration = {"/behaviour/pauseOnHoverDuration", 0};
|
FloatSetting pauseOnHoverDuration = {"/behaviour/pauseOnHoverDuration", 0};
|
||||||
EnumSetting<Qt::KeyboardModifier> pauseChatModifier = {
|
EnumSetting<Qt::KeyboardModifier> pauseChatModifier = {
|
||||||
|
|||||||
@@ -525,6 +525,8 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
|||||||
layout.addCheckbox(
|
layout.addCheckbox(
|
||||||
"Only search for emote autocompletion at the start of emote names",
|
"Only search for emote autocompletion at the start of emote names",
|
||||||
s.prefixOnlyEmoteCompletion);
|
s.prefixOnlyEmoteCompletion);
|
||||||
|
layout.addCheckbox("Only search for username autocompletion with an @",
|
||||||
|
s.userCompletionOnlyWithAt);
|
||||||
|
|
||||||
layout.addCheckbox("Show twitch whispers inline", s.inlineWhispers);
|
layout.addCheckbox("Show twitch whispers inline", s.inlineWhispers);
|
||||||
layout.addCheckbox("Highlight received inline whispers",
|
layout.addCheckbox("Highlight received inline whispers",
|
||||||
|
|||||||
Reference in New Issue
Block a user