Skip to content

Commit c4f9dcb

Browse files
committed
Merge Dev (Conflict PluginsManifest Move)
2 parents 3d06404 + 3baaa2d commit c4f9dcb

File tree

7 files changed

+19
-13
lines changed

7 files changed

+19
-13
lines changed

Flow.Launcher.Core/Resource/Theme.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public ResourceDictionary GetResourceDictionary()
176176
dict["ItemSubTitleStyle"] is Style resultSubItemStyle &&
177177
dict["ItemSubTitleSelectedStyle"] is Style resultSubItemSelectedStyle &&
178178
dict["ItemTitleSelectedStyle"] is Style resultItemSelectedStyle &&
179+
dict["ItemHotkeyStyle"] is Style resultHotkeyItemStyle &&
179180
dict["ItemHotkeySelectedStyle"] is Style resultHotkeyItemSelectedStyle)
180181
{
181182
Setter fontFamily = new Setter(TextBlock.FontFamilyProperty, new FontFamily(Settings.ResultFont));
@@ -184,7 +185,9 @@ public ResourceDictionary GetResourceDictionary()
184185
Setter fontStretch = new Setter(TextBlock.FontStretchProperty, FontHelper.GetFontStretchFromInvariantStringOrNormal(Settings.ResultFontStretch));
185186

186187
Setter[] setters = { fontFamily, fontStyle, fontWeight, fontStretch };
187-
Array.ForEach(new[] { resultItemStyle, resultSubItemStyle, resultItemSelectedStyle, resultSubItemSelectedStyle, resultHotkeyItemSelectedStyle }, o => Array.ForEach(setters, p => o.Setters.Add(p)));
188+
Array.ForEach(
189+
new[] { resultItemStyle, resultSubItemStyle, resultItemSelectedStyle, resultSubItemSelectedStyle, resultHotkeyItemStyle, resultHotkeyItemSelectedStyle }, o
190+
=> Array.ForEach(setters, p => o.Setters.Add(p)));
188191
}
189192

190193
var windowStyle = dict["WindowStyle"] as Style;

Flow.Launcher/Helper/HotKeyMapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ internal static void SetCustomQueryHotkey(CustomPluginHotkey hotkey)
110110
return;
111111

112112
mainViewModel.MainWindowVisibility = Visibility.Visible;
113-
mainViewModel.ChangeQueryText(hotkey.ActionKeyword);
113+
mainViewModel.ChangeQueryText(hotkey.ActionKeyword, true);
114114
});
115115
}
116116

Flow.Launcher/PublicAPIInstance.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,7 @@ public PublicAPIInstance(SettingWindowViewModel settingsVM, MainViewModel mainVM
4848

4949
public void ChangeQuery(string query, bool requery = false)
5050
{
51-
_mainVM.ChangeQueryText(query);
52-
}
53-
54-
public void ChangeQueryText(string query, bool selectAll = false)
55-
{
56-
_mainVM.ChangeQueryText(query);
51+
_mainVM.ChangeQueryText(query, requery);
5752
}
5853

5954
public void RestartApp()

Flow.Launcher/ViewModel/MainViewModel.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,17 @@ public string QueryText
285285
/// but we don't want to move cursor to end when query is updated from TextBox
286286
/// </summary>
287287
/// <param name="queryText"></param>
288-
public void ChangeQueryText(string queryText)
288+
public void ChangeQueryText(string queryText, bool reQuery = false)
289289
{
290-
QueryText = queryText;
290+
if (QueryText!=queryText)
291+
{
292+
// re-query is done in QueryText's setter method
293+
QueryText = queryText;
294+
}
295+
else if (reQuery)
296+
{
297+
Query();
298+
}
291299
QueryTextCursorMovedToEnd = true;
292300
}
293301

Plugins/Flow.Launcher.Plugin.Explorer/Search/WindowsIndex/IndexSearch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal static class IndexSearch
1717
{
1818

1919
// Reserved keywords in oleDB
20-
private const string reservedStringPattern = @"^[`\@\#\^,\&\/\\\$\%_]+$";
20+
private const string reservedStringPattern = @"^[`\@\#\^,\&\/\\\$\%_;\[\]]+$";
2121

2222
internal static async Task<List<Result>> ExecuteWindowsIndexSearchAsync(string indexQueryString, string connectionString, Query query, CancellationToken token)
2323
{

Plugins/Flow.Launcher.Plugin.Explorer/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"Name": "Explorer",
1111
"Description": "Search and manage files and folders. Explorer utilises Windows Index Search",
1212
"Author": "Jeremy Wu",
13-
"Version": "1.9.0",
13+
"Version": "1.9.1",
1414
"Language": "csharp",
1515
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1616
"ExecuteFileName": "Flow.Launcher.Plugin.Explorer.dll",

Plugins/Flow.Launcher.Plugin.PluginsManager/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Name": "Plugins Manager",
77
"Description": "Management of installing, uninstalling or updating Flow Launcher plugins",
88
"Author": "Jeremy Wu",
9-
"Version": "1.8.5",
9+
"Version": "1.9.0",
1010
"Language": "csharp",
1111
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
1212
"ExecuteFileName": "Flow.Launcher.Plugin.PluginsManager.dll",

0 commit comments

Comments
 (0)