From 89e2d52d2743960327927ed7306410f0ab667e53 Mon Sep 17 00:00:00 2001
From: Jeremy Wu
Date: Sun, 18 Dec 2022 15:11:04 +1100
Subject: [PATCH 01/13] Update sponsors
Update sponsors
---
README.md | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 0f2270dcc..dcc1da935 100644
--- a/README.md
+++ b/README.md
@@ -327,10 +327,9 @@ And you can download
-
-
-
itsonlyfrans
-
+
+
+
### Mentions
From b4f44da154fc666b69dd0fcd8caf63407b1dc99a Mon Sep 17 00:00:00 2001
From: Jeremy Wu
Date: Sun, 18 Dec 2022 15:28:02 +1100
Subject: [PATCH 02/13] version bump
---
appveyor.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/appveyor.yml b/appveyor.yml
index f296c76fb..4f371e132 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,4 +1,4 @@
-version: '1.10.0.{build}'
+version: '1.10.1.{build}'
init:
- ps: |
From 13eba18ac5bc70d5e5efad41373830077beac00b Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Sat, 17 Dec 2022 21:29:25 +0800
Subject: [PATCH 03/13] Disable PATH programs by default
---
Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs | 2 +-
Plugins/Flow.Launcher.Plugin.Program/Settings.cs | 2 +-
.../Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs
index e89970fb4..f8c220610 100644
--- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs
+++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs
@@ -620,7 +620,7 @@ namespace Flow.Launcher.Plugin.Program.Programs
autoIndexPrograms = autoIndexPrograms.Concat(startMenu);
}
- if (settings.EnablePATHSource)
+ if (settings.EnablePathSource)
{
var path = PATHPrograms(settings.GetSuffixes(), protocols, commonParents);
programs = programs.Concat(path);
diff --git a/Plugins/Flow.Launcher.Plugin.Program/Settings.cs b/Plugins/Flow.Launcher.Plugin.Program/Settings.cs
index e3e8b99b9..34da42f1f 100644
--- a/Plugins/Flow.Launcher.Plugin.Program/Settings.cs
+++ b/Plugins/Flow.Launcher.Plugin.Program/Settings.cs
@@ -118,7 +118,7 @@ namespace Flow.Launcher.Plugin.Program
public bool EnableDescription { get; set; } = false;
public bool HideAppsPath { get; set; } = true;
public bool EnableRegistrySource { get; set; } = true;
- public bool EnablePATHSource { get; set; } = true;
+ public bool EnablePathSource { get; set; } = false;
public string CustomizedExplorer { get; set; } = Explorer;
public string CustomizedArgs { get; set; } = ExplorerArgs;
diff --git a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs
index 7da224b69..4abb39225 100644
--- a/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs
+++ b/Plugins/Flow.Launcher.Plugin.Program/Views/ProgramSetting.xaml.cs
@@ -69,10 +69,10 @@ namespace Flow.Launcher.Plugin.Program.Views
public bool EnablePATHSource
{
- get => _settings.EnablePATHSource;
+ get => _settings.EnablePathSource;
set
{
- _settings.EnablePATHSource = value;
+ _settings.EnablePathSource = value;
ReIndexing();
}
}
From 4fd5039e66f5a0a58b48a44afbac80fb4a50d682 Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Mon, 19 Dec 2022 00:37:02 +0800
Subject: [PATCH 04/13] Fix item can't be unselected after editing shortcut
---
Flow.Launcher/ViewModel/SettingWindowViewModel.cs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs
index a97a328e6..f160c2e04 100644
--- a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs
+++ b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs
@@ -775,8 +775,11 @@ namespace Flow.Launcher.ViewModel
var shortcutSettingWindow = new CustomShortcutSetting(item.Key, item.Value, this);
if (shortcutSettingWindow.ShowDialog() == true)
{
+ // https://stackoverflow.com/questions/16789360/wpf-listbox-items-with-changing-hashcode
+ SelectedCustomShortcut = null;
item.Key = shortcutSettingWindow.Key;
item.Value = shortcutSettingWindow.Value;
+ SelectedCustomShortcut = item;
return true;
}
return false;
From 9564092e4115334078b6e728a752395b51ab1a3f Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Mon, 19 Dec 2022 22:06:11 +0000
Subject: [PATCH 05/13] Bump nunit from 3.13.2 to 3.13.3
Bumps [nunit](https://github.com/nunit/nunit) from 3.13.2 to 3.13.3.
- [Release notes](https://github.com/nunit/nunit/releases)
- [Changelog](https://github.com/nunit/nunit/blob/v3.13.3/CHANGES.md)
- [Commits](https://github.com/nunit/nunit/compare/v3.13.2...v3.13.3)
---
updated-dependencies:
- dependency-name: nunit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot]
---
Flow.Launcher.Test/Flow.Launcher.Test.csproj | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Flow.Launcher.Test/Flow.Launcher.Test.csproj b/Flow.Launcher.Test/Flow.Launcher.Test.csproj
index c4341288f..c67a5cf22 100644
--- a/Flow.Launcher.Test/Flow.Launcher.Test.csproj
+++ b/Flow.Launcher.Test/Flow.Launcher.Test.csproj
@@ -49,7 +49,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
From 5cc4a36762de2a726cde2dbb231f63b77fa73b8d Mon Sep 17 00:00:00 2001
From: DB p
Date: Tue, 20 Dec 2022 13:35:20 +0900
Subject: [PATCH 06/13] Add StartEn Setting
---
.../UserSettings/Settings.cs | 1 +
Flow.Launcher/Languages/en.xaml | 2 ++
Flow.Launcher/MainWindow.xaml | 1 +
Flow.Launcher/MainWindow.xaml.cs | 21 +++++++++++++
Flow.Launcher/SettingWindow.xaml | 31 ++++++++++++++++---
5 files changed, 52 insertions(+), 4 deletions(-)
diff --git a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs
index 09fad990b..9ae1748da 100644
--- a/Flow.Launcher.Infrastructure/UserSettings/Settings.cs
+++ b/Flow.Launcher.Infrastructure/UserSettings/Settings.cs
@@ -147,6 +147,7 @@ namespace Flow.Launcher.Infrastructure.UserSettings
///
public bool ShouldUsePinyin { get; set; } = false;
public bool AlwaysPreview { get; set; } = false;
+ public bool AlwaysStartEn { get; set; } = false;
[JsonInclude, JsonConverter(typeof(JsonStringEnumConverter))]
public SearchPrecisionScore QuerySearchPrecision { get; private set; } = SearchPrecisionScore.Regular;
diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index d0bdfee9b..c1fafa8db 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -55,6 +55,8 @@
Select the file manager to use when opening the folder.
Default Web Browser
Setting for New Tab, New Window, Private Mode.
+ Always Start in English Layout
+ If you are using both native language and English keyboard layouts, start the flow in English layout state.
Python Directory
Auto Update
Select
diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml
index 9f8d523e0..3941c5e0a 100644
--- a/Flow.Launcher/MainWindow.xaml
+++ b/Flow.Launcher/MainWindow.xaml
@@ -244,6 +244,7 @@
+
-
@@ -943,13 +945,34 @@
Text="{Binding Settings.PluginSettings.PythonDirectory, TargetNullValue='No Setting'}" />
+
+
+
+
+
+
+
+
+
+
+
+
+
From d0b5a5a37b44573ee2f4f069532ec691d457ad1c Mon Sep 17 00:00:00 2001
From: Jeremy Wu
Date: Tue, 20 Dec 2022 21:05:00 +1100
Subject: [PATCH 07/13] version bump Program plugin
---
Plugins/Flow.Launcher.Plugin.Program/plugin.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Plugins/Flow.Launcher.Plugin.Program/plugin.json b/Plugins/Flow.Launcher.Plugin.Program/plugin.json
index 3c719e28b..c904c2e7d 100644
--- a/Plugins/Flow.Launcher.Plugin.Program/plugin.json
+++ b/Plugins/Flow.Launcher.Plugin.Program/plugin.json
@@ -4,7 +4,7 @@
"Name": "Program",
"Description": "Search programs in Flow.Launcher",
"Author": "qianlifeng",
- "Version": "2.0.0",
+ "Version": "2.0.1",
"Language": "csharp",
"Website": "https://github.com/Flow-Launcher/Flow.Launcher",
"ExecuteFileName": "Flow.Launcher.Plugin.Program.dll",
From ac1658fe040d4016ee55bbdb77caaa8fe9efb264 Mon Sep 17 00:00:00 2001
From: Jeremy Wu
Date: Tue, 20 Dec 2022 21:15:30 +1100
Subject: [PATCH 08/13] add comment
---
Flow.Launcher/ViewModel/SettingWindowViewModel.cs | 1 +
1 file changed, 1 insertion(+)
diff --git a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs
index f160c2e04..c7c1aaa40 100644
--- a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs
+++ b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs
@@ -775,6 +775,7 @@ namespace Flow.Launcher.ViewModel
var shortcutSettingWindow = new CustomShortcutSetting(item.Key, item.Value, this);
if (shortcutSettingWindow.ShowDialog() == true)
{
+ // Fix un-selectable shortcut item after the first selection
// https://stackoverflow.com/questions/16789360/wpf-listbox-items-with-changing-hashcode
SelectedCustomShortcut = null;
item.Key = shortcutSettingWindow.Key;
From 0d00734de3694041022889c38a6753f49c5b9815 Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Tue, 20 Dec 2022 19:00:52 +0800
Subject: [PATCH 09/13] Update wording
---
Flow.Launcher/Languages/en.xaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index c1fafa8db..8442e675a 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -55,8 +55,8 @@
Select the file manager to use when opening the folder.
Default Web Browser
Setting for New Tab, New Window, Private Mode.
- Always Start in English Layout
- If you are using both native language and English keyboard layouts, start the flow in English layout state.
+ Always Start Typing in English Mode
+ Automatically change your input method to English mode when activating Flow.
Python Directory
Auto Update
Select
From 179f28767a972913d22b94e288a22c9ab9d74cdc Mon Sep 17 00:00:00 2001
From: DB p
Date: Tue, 20 Dec 2022 20:29:00 +0900
Subject: [PATCH 10/13] Adjust Pinyin Item Position in General Tab
---
Flow.Launcher/SettingWindow.xaml | 36 ++++++++++++++++----------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/Flow.Launcher/SettingWindow.xaml b/Flow.Launcher/SettingWindow.xaml
index aeebf9ddd..0a786d89e 100644
--- a/Flow.Launcher/SettingWindow.xaml
+++ b/Flow.Launcher/SettingWindow.xaml
@@ -749,24 +749,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -973,6 +955,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
From c6e82cc7c376e0d46afb85bcbb0e2abde8cadd24 Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Tue, 20 Dec 2022 21:02:07 +0800
Subject: [PATCH 11/13] Update wording
---
Flow.Launcher/Languages/en.xaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Flow.Launcher/Languages/en.xaml b/Flow.Launcher/Languages/en.xaml
index 8442e675a..3350a4499 100644
--- a/Flow.Launcher/Languages/en.xaml
+++ b/Flow.Launcher/Languages/en.xaml
@@ -56,7 +56,7 @@
Default Web Browser
Setting for New Tab, New Window, Private Mode.
Always Start Typing in English Mode
- Automatically change your input method to English mode when activating Flow.
+ Temporarily change your input method to English mode when activating Flow.
Python Directory
Auto Update
Select
From ce303156fb89bda9fadbe4c23dfd310187849195 Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Tue, 20 Dec 2022 22:35:07 +0800
Subject: [PATCH 12/13] Use binding for ime conversion mode
---
.../BoolToIMEConversionModeConverter.cs | 31 +++++++++++++++++++
Flow.Launcher/MainWindow.xaml | 3 ++
Flow.Launcher/MainWindow.xaml.cs | 31 -------------------
Flow.Launcher/ViewModel/MainViewModel.cs | 5 +++
4 files changed, 39 insertions(+), 31 deletions(-)
create mode 100644 Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs
diff --git a/Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs b/Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs
new file mode 100644
index 000000000..f3771e6d9
--- /dev/null
+++ b/Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs
@@ -0,0 +1,31 @@
+using System;
+using System.Globalization;
+using System.Windows.Data;
+using System.Windows.Input;
+
+namespace Flow.Launcher.Converters
+{
+ internal class BoolToIMEConversionModeConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ if (value is bool v)
+ {
+ if (v)
+ {
+ return ImeConversionModeValues.Alphanumeric;
+ }
+ else
+ {
+ return ImeConversionModeValues.DoNotCare;
+ }
+ }
+ return ImeConversionModeValues.DoNotCare;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml
index 3941c5e0a..eca9fcdca 100644
--- a/Flow.Launcher/MainWindow.xaml
+++ b/Flow.Launcher/MainWindow.xaml
@@ -9,6 +9,7 @@
xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
xmlns:ui="http://schemas.modernwpf.com/2019"
xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
+ d:DataContext="{d:DesignInstance Type=vm:MainViewModel}"
Name="FlowMainWindow"
Title="Flow Launcher"
MinWidth="{Binding MainWindowWidth, Mode=OneWay}"
@@ -37,6 +38,7 @@
+
@@ -204,6 +206,7 @@
PreviewKeyUp="QueryTextBox_KeyUp"
Style="{DynamicResource QueryBoxStyle}"
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
+ InputMethod.PreferredImeConversionMode="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEConversionModeConverter}}"
Visibility="Visible">
diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs
index e639b668c..a645a702c 100644
--- a/Flow.Launcher/MainWindow.xaml.cs
+++ b/Flow.Launcher/MainWindow.xaml.cs
@@ -20,22 +20,9 @@ using Flow.Launcher.Infrastructure;
using System.Windows.Media;
using Flow.Launcher.Infrastructure.Hotkey;
using Flow.Launcher.Plugin.SharedCommands;
-using System.Text;
-using DataObject = System.Windows.DataObject;
-using System.Diagnostics;
-using Microsoft.AspNetCore.Http;
-using System.IO;
using System.Windows.Threading;
using System.Windows.Data;
using ModernWpf.Controls;
-using System.Drawing;
-using System.Windows.Forms.Design.Behavior;
-using System.Security.Cryptography;
-using System.Runtime.CompilerServices;
-using Microsoft.VisualBasic.Devices;
-using Microsoft.FSharp.Data.UnitSystems.SI.UnitNames;
-using NLog.Targets;
-using YamlDotNet.Core.Tokens;
using Key = System.Windows.Input.Key;
namespace Flow.Launcher
@@ -131,7 +118,6 @@ namespace Flow.Launcher
UpdatePosition();
PreviewReset();
Activate();
- QueryTextBox_StartEn();
QueryTextBox.Focus();
_settings.ActivateTimes++;
if (!_viewModel.LastQuerySelected)
@@ -195,9 +181,6 @@ namespace Flow.Launcher
case nameof(Settings.Language):
UpdateNotifyIconText();
break;
- case nameof(Settings.AlwaysStartEn):
- QueryTextBox_StartEn();
- break;
case nameof(Settings.Hotkey):
UpdateNotifyIconText();
break;
@@ -703,19 +686,5 @@ namespace Flow.Launcher
be.UpdateSource();
}
}
-
- private void QueryTextBox_StartEn()
- {
- if (_settings.AlwaysStartEn)
- {
- QueryTextBox.SetValue(InputMethod.PreferredImeConversionModeProperty, ImeConversionModeValues.Alphanumeric);
- QueryTextBox.SetValue(InputMethod.PreferredImeStateProperty, InputMethodState.Off);
- }
- else
- {
- QueryTextBox.ClearValue(InputMethod.PreferredImeConversionModeProperty);
- QueryTextBox.ClearValue(InputMethod.PreferredImeStateProperty);
- }
- }
}
}
diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs
index e05e47041..09bba6e5c 100644
--- a/Flow.Launcher/ViewModel/MainViewModel.cs
+++ b/Flow.Launcher/ViewModel/MainViewModel.cs
@@ -71,6 +71,9 @@ namespace Flow.Launcher.ViewModel
case nameof(Settings.WindowSize):
OnPropertyChanged(nameof(MainWindowWidth));
break;
+ case nameof(Settings.AlwaysStartEn):
+ OnPropertyChanged(nameof(StartWithEnglishMode));
+ break;
}
};
@@ -514,6 +517,8 @@ namespace Flow.Launcher.ViewModel
public string Image => Constant.QueryTextBoxIconImagePath;
+ public bool StartWithEnglishMode => Settings.AlwaysStartEn;
+
#endregion
public void Query()
From 9d59933a08677717176ac9266f2122a5d986a2eb Mon Sep 17 00:00:00 2001
From: Vic <10308169+VictoriousRaptor@users.noreply.github.com>
Date: Tue, 20 Dec 2022 23:13:15 +0800
Subject: [PATCH 13/13] Add IME state
---
.../BoolToIMEConversionModeConverter.cs | 24 +++++++++++++++++++
Flow.Launcher/MainWindow.xaml | 2 ++
2 files changed, 26 insertions(+)
diff --git a/Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs b/Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs
index f3771e6d9..0bff23fe1 100644
--- a/Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs
+++ b/Flow.Launcher/Converters/BoolToIMEConversionModeConverter.cs
@@ -28,4 +28,28 @@ namespace Flow.Launcher.Converters
throw new NotImplementedException();
}
}
+
+ internal class BoolToIMEStateConverter : IValueConverter
+ {
+ public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ if (value is bool v)
+ {
+ if (v)
+ {
+ return InputMethodState.Off;
+ }
+ else
+ {
+ return InputMethodState.DoNotCare;
+ }
+ }
+ return InputMethodState.DoNotCare;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
+ {
+ throw new NotImplementedException();
+ }
+ }
}
diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml
index eca9fcdca..095382e76 100644
--- a/Flow.Launcher/MainWindow.xaml
+++ b/Flow.Launcher/MainWindow.xaml
@@ -39,6 +39,7 @@
+
@@ -207,6 +208,7 @@
Style="{DynamicResource QueryBoxStyle}"
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
InputMethod.PreferredImeConversionMode="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEConversionModeConverter}}"
+ InputMethod.PreferredImeState="{Binding StartWithEnglishMode, Converter={StaticResource BoolToIMEStateConverter}}"
Visibility="Visible">