Merge pull request #1 from Flow-Launcher/rebrand_name

Rebrand- name
This commit is contained in:
Jeremy Wu 2020-04-25 12:41:00 +10:00 committed by GitHub
commit 0f298ec8dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
554 changed files with 2726 additions and 2721 deletions

2
.gitignore vendored
View file

@ -285,7 +285,7 @@ paket-files/
# New to Visual Studio
*.VC.db
## Wox specific
## Flow Launcher specific
Output/*
/Python.Runtime.dll
Thumbs.db

View file

@ -1,5 +1,5 @@

namespace Wox.Core.Configuration
namespace Flow.Launcher.Core.Configuration
{
public interface IPortable
{

View file

@ -4,12 +4,13 @@ using System;
using System.IO;
using System.Reflection;
using System.Windows;
using Wox.Infrastructure;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.UserSettings;
using Wox.Plugin.SharedCommands;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin.SharedCommands;
using System.Linq;
namespace Wox.Core.Configuration
namespace Flow.Launcher.Core.Configuration
{
public class Portable : IPortable
{
@ -19,7 +20,11 @@ namespace Wox.Core.Configuration
/// <returns></returns>
private UpdateManager NewUpdateManager()
{
return new UpdateManager(string.Empty, Constant.Wox, Constant.RootDirectory);
var applicationFolderName = Constant.ApplicationDirectory
.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None)
.Last();
return new UpdateManager(string.Empty, applicationFolderName, Constant.RootDirectory);
}
public void DisablePortableMode()
@ -36,7 +41,7 @@ namespace Wox.Core.Configuration
#endif
IndicateDeletion(DataLocation.PortableDataPath);
MessageBox.Show("Wox needs to restart to finish disabling portable mode, " +
MessageBox.Show("Flow Launcher needs to restart to finish disabling portable mode, " +
"after the restart your portable data profile will be deleted and roaming data profile kept");
UpdateManager.RestartApp(Constant.ApplicationFileName);
@ -64,7 +69,7 @@ namespace Wox.Core.Configuration
#endif
IndicateDeletion(DataLocation.RoamingDataPath);
MessageBox.Show("Wox needs to restart to finish enabling portable mode, " +
MessageBox.Show("Flow Launcher needs to restart to finish enabling portable mode, " +
"after the restart your roaming data profile will be deleted and portable data profile kept");
UpdateManager.RestartApp(Constant.ApplicationFileName);
@ -126,7 +131,7 @@ namespace Wox.Core.Configuration
.CreateSubKey("Uninstall", RegistryKeyPermissionCheck.ReadWriteSubTree)) {; }
var key = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, RegistryView.Default)
.CreateSubKey(uninstallRegSubKey + "\\" + Constant.Wox, RegistryKeyPermissionCheck.ReadWriteSubTree);
.CreateSubKey(uninstallRegSubKey + "\\" + Constant.FlowLauncher, RegistryKeyPermissionCheck.ReadWriteSubTree);
key.SetValue("DisplayIcon", Constant.ApplicationDirectory + "\\app.ico", RegistryValueKind.String);
using (var portabilityUpdater = NewUpdateManager())
@ -142,13 +147,13 @@ namespace Wox.Core.Configuration
///<summary>
///This method should be run at first before all methods during start up and should be run before determining which data location
///will be used for Wox.
///will be used for Flow Launcher.
///</summary>
public void PreStartCleanUpAfterPortabilityUpdate()
{
// Specify here so this method does not rely on other environment variables to initialise
var portableDataPath = Path.Combine(Directory.GetParent(Assembly.GetExecutingAssembly().Location.NonNull()).ToString(), "UserData");
var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Wox");
var roamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher");
bool DataLocationPortableDeleteRequired = false;
bool DataLocationRoamingDeleteRequired = false;
@ -163,7 +168,7 @@ namespace Wox.Core.Configuration
{
FilesFolders.RemoveFolderIfExists(roamingDataPath);
if (MessageBox.Show("Wox has detected you enabled portable mode, " +
if (MessageBox.Show("Flow Launcher has detected you enabled portable mode, " +
"would you like to move it to a different location?", string.Empty,
MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
@ -179,7 +184,7 @@ namespace Wox.Core.Configuration
{
FilesFolders.RemoveFolderIfExists(portableDataPath);
MessageBox.Show("Wox has detected you disabled portable mode, " +
MessageBox.Show("Flow Launcher has detected you disabled portable mode, " +
"the relevant shortcuts and uninstaller entry have been created");
return;
@ -193,7 +198,7 @@ namespace Wox.Core.Configuration
if(roamingLocationExists && portableLocationExists)
{
MessageBox.Show(string.Format("Wox detected your user data exists both in {0} and " +
MessageBox.Show(string.Format("Flow Launcher detected your user data exists both in {0} and " +
"{1}. {2}{2}Please delete {1} in order to proceed. No changes have occured.",
DataLocation.PortableDataPath, DataLocation.RoamingDataPath, Environment.NewLine));

View file

@ -6,8 +6,8 @@
<UseWindowsForms>true</UseWindowsForms>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Wox.Core</RootNamespace>
<AssemblyName>Wox.Core</AssemblyName>
<RootNamespace>Flow.Launcher.Core</RootNamespace>
<AssemblyName>Flow.Launcher.Core</AssemblyName>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
@ -68,8 +68,8 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Wox.Infrastructure\Wox.Infrastructure.csproj" />
<ProjectReference Include="..\Wox.Plugin\Wox.Plugin.csproj" />
<ProjectReference Include="..\Flow.Launcher.Infrastructure\Flow.Launcher.Infrastructure.csproj" />
<ProjectReference Include="..\Flow.Launcher.Plugin\Flow.Launcher.Plugin.csproj" />
</ItemGroup>
</Project>

View file

@ -1,8 +1,8 @@
using System;
using System.Diagnostics;
using Wox.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
internal class ExecutablePlugin : JsonRPCPlugin
{

View file

@ -1,23 +1,23 @@

/* We basically follow the Json-RPC 2.0 spec (http://www.jsonrpc.org/specification) to invoke methods between Wox and other plugins,
/* We basically follow the Json-RPC 2.0 spec (http://www.jsonrpc.org/specification) to invoke methods between Flow Launcher and other plugins,
* like python or other self-execute program. But, we added addtional infos (proxy and so on) into rpc request. Also, we didn't use the
* "id" and "jsonrpc" in the request, since it's not so useful in our request model.
*
* When execute a query:
* Wox -------JsonRPCServerRequestModel--------> client
* Wox <------JsonRPCQueryResponseModel--------- client
* Flow Launcher -------JsonRPCServerRequestModel--------> client
* Flow Launcher <------JsonRPCQueryResponseModel--------- client
*
* When execute a action (which mean user select an item in reulst item):
* Wox -------JsonRPCServerRequestModel--------> client
* Wox <------JsonRPCResponseModel-------------- client
* Flow Launcher -------JsonRPCServerRequestModel--------> client
* Flow Launcher <------JsonRPCResponseModel-------------- client
*
*/
using System.Collections.Generic;
using System.Linq;
using Wox.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
public class JsonRPCErrorModel
{
@ -98,7 +98,7 @@ namespace Wox.Core.Plugin
}
/// <summary>
/// Json RPC Request that Wox sent to client
/// Json RPC Request that Flow Launcher sent to client
/// </summary>
public class JsonRPCServerRequestModel : JsonRPCRequestModel
{
@ -110,7 +110,7 @@ namespace Wox.Core.Plugin
}
/// <summary>
/// Json RPC Request(in query response) that client sent to Wox
/// Json RPC Request(in query response) that client sent to Flow Launcher
/// </summary>
public class JsonRPCClientRequestModel : JsonRPCRequestModel
{
@ -124,9 +124,9 @@ namespace Wox.Core.Plugin
}
/// <summary>
/// Represent the json-rpc result item that client send to Wox
/// Represent the json-rpc result item that client send to Flow Launcher
/// Typically, we will send back this request model to client after user select the result item
/// But if the request method starts with "Wox.", we will invoke the public APIs we expose.
/// But if the request method starts with "Flow Launcher.", we will invoke the public APIs we expose.
/// </summary>
public class JsonRPCResult : Result
{

View file

@ -7,11 +7,11 @@ using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using Newtonsoft.Json;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
using Wox.Plugin;
using Flow.Launcher.Infrastructure.Exception;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
/// <summary>
/// Represent the plugin that using JsonPRC
@ -77,9 +77,9 @@ namespace Wox.Core.Plugin
if (!String.IsNullOrEmpty(result1.JsonRPCAction.Method))
{
if (result1.JsonRPCAction.Method.StartsWith("Wox."))
if (result1.JsonRPCAction.Method.StartsWith("Flow.Launcher."))
{
ExecuteWoxAPI(result1.JsonRPCAction.Method.Substring(4), result1.JsonRPCAction.Parameters);
ExecuteFlowLauncherAPI(result1.JsonRPCAction.Method.Substring(4), result1.JsonRPCAction.Parameters);
}
else
{
@ -87,9 +87,9 @@ namespace Wox.Core.Plugin
JsonRPCRequestModel jsonRpcRequestModel = JsonConvert.DeserializeObject<JsonRPCRequestModel>(actionReponse);
if (jsonRpcRequestModel != null
&& !String.IsNullOrEmpty(jsonRpcRequestModel.Method)
&& jsonRpcRequestModel.Method.StartsWith("Wox."))
&& jsonRpcRequestModel.Method.StartsWith("Flow.Launcher."))
{
ExecuteWoxAPI(jsonRpcRequestModel.Method.Substring(4), jsonRpcRequestModel.Parameters);
ExecuteFlowLauncherAPI(jsonRpcRequestModel.Method.Substring(4), jsonRpcRequestModel.Parameters);
}
}
}
@ -105,7 +105,7 @@ namespace Wox.Core.Plugin
}
}
private void ExecuteWoxAPI(string method, object[] parameters)
private void ExecuteFlowLauncherAPI(string method, object[] parameters)
{
MethodInfo methodInfo = PluginManager.API.GetType().GetMethod(method);
if (methodInfo != null)

View file

@ -4,11 +4,11 @@ using System.Linq;
using System.IO;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
using Wox.Plugin;
using Flow.Launcher.Infrastructure.Exception;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
internal abstract class PluginConfig

View file

@ -3,9 +3,9 @@ using System.IO;
using System.Windows;
using ICSharpCode.SharpZipLib.Zip;
using Newtonsoft.Json;
using Wox.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
internal class PluginInstaller
{
@ -13,7 +13,7 @@ namespace Wox.Core.Plugin
{
if (File.Exists(path))
{
string tempFoler = Path.Combine(Path.GetTempPath(), "wox\\plugins");
string tempFoler = Path.Combine(Path.GetTempPath(), "flowlauncher\\plugins");
if (Directory.Exists(tempFoler))
{
Directory.Delete(tempFoler, true);
@ -77,13 +77,13 @@ namespace Wox.Core.Plugin
//exsiting plugins may be has loaded by application,
//if we try to delelte those kind of plugins, we will get a error that indicate the
//file is been used now.
//current solution is to restart wox. Ugly.
//current solution is to restart Flow Launcher. Ugly.
//if (MainWindow.Initialized)
//{
// Plugins.Initialize();
//}
if (MessageBox.Show($"You have installed plugin {plugin.Name} successfully.{Environment.NewLine}" +
"Restart Wox to take effect?",
"Restart Flow Launcher to take effect?",
"Install plugin", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
{
PluginManager.API.RestarApp();

View file

@ -4,23 +4,23 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Wox.Infrastructure;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.Storage;
using Wox.Infrastructure.UserSettings;
using Wox.Plugin;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Storage;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
/// <summary>
/// The entry for managing Wox plugins
/// The entry for managing Flow Launcher plugins
/// </summary>
public static class PluginManager
{
private static IEnumerable<PluginPair> _contextMenuPlugins;
/// <summary>
/// Directories that will hold Wox plugin directory
/// Directories that will hold Flow Launcher plugin directory
/// </summary>
public static List<PluginPair> AllPlugins { get; private set; }
@ -44,7 +44,7 @@ namespace Wox.Core.Plugin
private static void DeletePythonBinding()
{
const string binding = "wox.py";
const string binding = "flowlauncher.py";
var directory = DataLocation.PluginsDirectory;
foreach (var subDirectory in Directory.GetDirectories(directory))
{

View file

@ -4,13 +4,13 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Loader;
using Wox.Infrastructure;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.UserSettings;
using Wox.Plugin;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Exception;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
public static class PluginsLoader
{

View file

@ -1,10 +1,10 @@
using System;
using System.Diagnostics;
using System.IO;
using Wox.Infrastructure;
using Wox.Plugin;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
internal class PythonPlugin : JsonRPCPlugin
{

View file

@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Wox.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Core.Plugin
namespace Flow.Launcher.Core.Plugin
{
public static class QueryBuilder
{

View file

@ -1,8 +1,8 @@
What does Wox.Core do?
What does Flow.Launcher.Core do?
=====
* Handle Query
* Define Wox exceptions
* Define Flow.Launcher exceptions
* Manage Plugins (including system plugin and user plugin)
* Manage Themes
* Manage i18n

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Wox.Core.Resource
namespace Flow.Launcher.Core.Resource
{
internal static class AvailableLanguages
{

View file

@ -3,7 +3,7 @@ using System.Linq;
using System.Windows;
using System.Windows.Media;
namespace Wox.Core.Resource
namespace Flow.Launcher.Core.Resource
{
public static class FontHelper
{

View file

@ -4,13 +4,13 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows;
using Wox.Core.Plugin;
using Wox.Infrastructure;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.UserSettings;
using Wox.Plugin;
using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
namespace Wox.Core.Resource
namespace Flow.Launcher.Core.Resource
{
public class Internationalization
{
@ -26,12 +26,12 @@ namespace Wox.Core.Resource
AddPluginLanguageDirectories();
LoadDefaultLanguage();
// we don't want to load /Languages/en.xaml twice
// so add wox language directory after load plugin language files
AddWoxLanguageDirectory();
// so add flowlauncher language directory after load plugin language files
AddFlowLauncherLanguageDirectory();
}
private void AddWoxLanguageDirectory()
private void AddFlowLauncherLanguageDirectory()
{
var directory = Path.Combine(Constant.ProgramDirectory, Folder);
_languageDirectories.Add(directory);

View file

@ -1,4 +1,4 @@
namespace Wox.Core.Resource
namespace Flow.Launcher.Core.Resource
{
public static class InternationalizationManager
{

View file

@ -1,4 +1,4 @@
namespace Wox.Core.Resource
namespace Flow.Launcher.Core.Resource
{
public class Language
{

View file

@ -4,7 +4,7 @@ using System.Globalization;
using System.Reflection;
using System.Windows.Data;
namespace Wox.Core
namespace Flow.Launcher.Core
{
public class LocalizationConverter : IValueConverter
{

View file

@ -1,7 +1,7 @@
using System.ComponentModel;
using Wox.Core.Resource;
using Flow.Launcher.Core.Resource;
namespace Wox.Core
namespace Flow.Launcher.Core
{
public class LocalizedDescriptionAttribute : DescriptionAttribute
{

View file

@ -8,11 +8,11 @@ using System.Windows.Controls;
using System.Windows.Interop;
using System.Windows.Markup;
using System.Windows.Media;
using Wox.Infrastructure;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.UserSettings;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Wox.Core.Resource
namespace Flow.Launcher.Core.Resource
{
public class Theme
{

View file

@ -1,4 +1,4 @@
namespace Wox.Core.Resource
namespace Flow.Launcher.Core.Resource
{
public class ThemeManager
{

View file

@ -9,15 +9,15 @@ using System.Windows;
using JetBrains.Annotations;
using Squirrel;
using Newtonsoft.Json;
using Wox.Core.Resource;
using Wox.Plugin.SharedCommands;
using Wox.Infrastructure;
using Wox.Infrastructure.Http;
using Wox.Infrastructure.Logger;
using Flow.Launcher.Core.Resource;
using Flow.Launcher.Plugin.SharedCommands;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Infrastructure.Http;
using Flow.Launcher.Infrastructure.Logger;
using System.IO;
using Wox.Infrastructure.UserSettings;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Wox.Core
namespace Flow.Launcher.Core
{
public class Updater
{
@ -63,7 +63,7 @@ namespace Wox.Core
if (newReleaseVersion <= currentVersion)
{
if (!silentIfLatestVersion)
MessageBox.Show("You already have the latest Wox version");
MessageBox.Show("You already have the latest Flow Launcher version");
updateManager.Dispose();
return;
}
@ -86,7 +86,7 @@ namespace Wox.Core
var targetDestination = updateManager.RootAppDirectory + $"\\app-{newReleaseVersion.ToString()}\\{DataLocation.PortableFolderName}";
FilesFolders.Copy(DataLocation.PortableDataPath, targetDestination);
if (!FilesFolders.VerifyBothFolderFilesEqual(DataLocation.PortableDataPath, targetDestination))
MessageBox.Show(string.Format("Wox was not able to move your user profile data to the new update version. Please manually" +
MessageBox.Show(string.Format("Flow Launcher was not able to move your user profile data to the new update version. Please manually" +
"move your profile data folder from {0} to {1}", DataLocation.PortableDataPath, targetDestination));
}
else

View file

@ -7,8 +7,8 @@
<ProjectGuid>{2FEB2298-7653-4009-B1EA-FFFB1A768BCC}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Wox.CrashReporter</RootNamespace>
<AssemblyName>Wox.CrashReporter</AssemblyName>
<RootNamespace>Flow.Launcher.CrashReporter</RootNamespace>
<AssemblyName>Flow.Launcher.CrashReporter</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
@ -74,13 +74,13 @@
</Page>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Wox.Core\Wox.Core.csproj">
<ProjectReference Include="..\Flow.Launcher.Core\Flow.Launcher.Core.csproj">
<Project>{B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}</Project>
<Name>Wox.Core</Name>
<Name>Flow.Launcher.Core</Name>
</ProjectReference>
<ProjectReference Include="..\Wox.Infrastructure\Wox.Infrastructure.csproj">
<ProjectReference Include="..\Flow.Launcher.Infrastructure\Flow.Launcher.Infrastructure.csproj">
<Project>{4fd29318-a8ab-4d8f-aa47-60bc241b8da3}</Project>
<Name>Wox.Infrastructure</Name>
<Name>Flow.Launcher.Infrastructure</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

Before

Width:  |  Height:  |  Size: 738 B

After

Width:  |  Height:  |  Size: 738 B

View file

@ -1,5 +1,5 @@
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Wox.CrashReporter")]
[assembly: AssemblyTitle("Flow.Launcher.CrashReporter")]
[assembly: Guid("0ea3743c-2c0d-4b13-b9ce-e5e1f85aea23")]

View file

@ -6,11 +6,11 @@ using System.Text;
using hyjiacan.util.p4n;
using hyjiacan.util.p4n.format;
using JetBrains.Annotations;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.Storage;
using Wox.Infrastructure.UserSettings;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Storage;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Wox.Infrastructure
namespace Flow.Launcher.Infrastructure
{
public interface IAlphabet
{
@ -34,7 +34,7 @@ namespace Wox.Infrastructure
{
Format.setToneType(HanyuPinyinToneType.WITHOUT_TONE);
Stopwatch.Normal("|Wox.Infrastructure.Alphabet.Initialize|Preload pinyin cache", () =>
Stopwatch.Normal("|Flow Launcher.Infrastructure.Alphabet.Initialize|Preload pinyin cache", () =>
{
_pinyinStorage = new BinaryStorage<Dictionary<string, string[][]>>("Pinyin");
@ -48,7 +48,7 @@ namespace Wox.Infrastructure
// force pinyin library static constructor initialize
PinyinHelper.toHanyuPinyinStringArray('T', Format);
});
Log.Info($"|Wox.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination<{PinyinCache.Count}>");
Log.Info($"|Flow Launcher.Infrastructure.Alphabet.Initialize|Number of preload pinyin combination<{PinyinCache.Count}>");
}
public string Translate(string str)

View file

@ -2,23 +2,23 @@ using System.Diagnostics;
using System.IO;
using System.Reflection;
namespace Wox.Infrastructure
namespace Flow.Launcher.Infrastructure
{
public static class Constant
{
public const string Wox = "Wox";
public const string FlowLauncher = "Flow.Launcher";
public const string Plugins = "Plugins";
public const string ApplicationFileName = Wox + ".exe";
public const string ApplicationFileName = FlowLauncher + ".exe";
private static readonly Assembly Assembly = Assembly.GetExecutingAssembly();
public static readonly string ProgramDirectory = Directory.GetParent(Assembly.Location.NonNull()).ToString();
public static readonly string ExecutablePath = Path.Combine(ProgramDirectory, Wox + ".exe");
public static readonly string ExecutablePath = Path.Combine(ProgramDirectory, FlowLauncher + ".exe");
public static readonly string ApplicationDirectory = Directory.GetParent(ProgramDirectory).ToString();
public static readonly string RootDirectory = Directory.GetParent(ApplicationDirectory).ToString();
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
public const string Issue = "https://github.com/jjw24/Wox/issues/new";
public const string Issue = "https://github.com/Flow-Launcher/Flow.Launcher/issues/new";
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).ProductVersion;
public static readonly int ThumbnailSize = 64;

View file

@ -6,7 +6,7 @@ using System.Text;
using System.Xml;
using Microsoft.Win32;
namespace Wox.Infrastructure.Exception
namespace Flow.Launcher.Infrastructure.Exception
{
public class ExceptionFormatter
{
@ -62,7 +62,7 @@ namespace Wox.Infrastructure.Exception
sb.AppendLine("## Environment");
sb.AppendLine($"* Command Line: {Environment.CommandLine}");
sb.AppendLine($"* Timestamp: {DateTime.Now.ToString(CultureInfo.InvariantCulture)}");
sb.AppendLine($"* Wox version: {Constant.Version}");
sb.AppendLine($"* Flow Launcher version: {Constant.Version}");
sb.AppendLine($"* OS Version: {Environment.OSVersion.VersionString}");
sb.AppendLine($"* IntPtr Length: {IntPtr.Size}");
sb.AppendLine($"* x64: {Environment.Is64BitOperatingSystem}");

View file

@ -6,8 +6,8 @@
<OutputType>Library</OutputType>
<UseWpf>true</UseWpf>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Wox.Infrastructure</RootNamespace>
<AssemblyName>Wox.Infrastructure</AssemblyName>
<RootNamespace>Flow.Launcher.Infrastructure</RootNamespace>
<AssemblyName>Flow.Launcher.Infrastructure</AssemblyName>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
@ -41,9 +41,9 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Wox.Plugin\Wox.Plugin.csproj">
<ProjectReference Include="..\Flow.Launcher.Plugin\Flow.Launcher.Plugin.csproj">
<Project>{8451ecdd-2ea4-4966-bb0a-7bbc40138e80}</Project>
<Name>Wox.Plugin</Name>
<Name>Flow.Launcher.Plugin</Name>
</ProjectReference>
</ItemGroup>

View file

@ -1,6 +1,6 @@
using System;
namespace Wox.Infrastructure
namespace Flow.Launcher.Infrastructure
{
[Obsolete("This class is obsolete and should not be used. Please use the static function StringMatcher.FuzzySearch")]
public class FuzzyMatcher

View file

@ -3,7 +3,7 @@ using System.IO;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
namespace Wox.Infrastructure
namespace Flow.Launcher.Infrastructure
{
public static class Helper
{

View file

@ -1,9 +1,9 @@
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Wox.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Infrastructure.Hotkey
namespace Flow.Launcher.Infrastructure.Hotkey
{
/// <summary>
/// Listens keyboard globally.

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Windows.Input;
namespace Wox.Infrastructure.Hotkey
namespace Flow.Launcher.Infrastructure.Hotkey
{
public class HotkeyModel
{

View file

@ -2,7 +2,7 @@ using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace Wox.Infrastructure.Hotkey
namespace Flow.Launcher.Infrastructure.Hotkey
{
internal static class InterceptKeys
{

View file

@ -1,4 +1,4 @@
namespace Wox.Infrastructure.Hotkey
namespace Flow.Launcher.Infrastructure.Hotkey
{
public enum KeyEvent
{

View file

@ -4,10 +4,10 @@ using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.UserSettings;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Wox.Infrastructure.Http
namespace Flow.Launcher.Infrastructure.Http
{
public static class Http
{

View file

@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Windows.Media;
namespace Wox.Infrastructure.Image
namespace Flow.Launcher.Infrastructure.Image
{
[Serializable]
public class ImageCache

View file

@ -4,7 +4,7 @@ using System.Security.Cryptography;
using System.Windows.Media;
using System.Windows.Media.Imaging;
namespace Wox.Infrastructure.Image
namespace Flow.Launcher.Infrastructure.Image
{
public interface IImageHashGenerator
{

View file

@ -6,10 +6,10 @@ using System.Linq;
using System.Threading.Tasks;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.Storage;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Storage;
namespace Wox.Infrastructure.Image
namespace Flow.Launcher.Infrastructure.Image
{
public static class ImageLoader
{
@ -129,7 +129,7 @@ namespace Wox.Infrastructure.Image
/* Directories can also have thumbnails instead of shell icons.
* Generating thumbnails for a bunch of folders while scrolling through
* results from Everything makes a big impact on performance and
* Wox responsibility.
* Flow.Launcher responsibility.
* - Solution: just load the icon
*/
type = ImageType.Folder;

View file

@ -5,7 +5,7 @@ using System.Windows.Interop;
using System.Windows.Media.Imaging;
using System.Windows;
namespace Wox.Infrastructure.Image
namespace Flow.Launcher.Infrastructure.Image
{
[Flags]
public enum ThumbnailOptions

View file

@ -4,9 +4,9 @@ using System.Runtime.CompilerServices;
using NLog;
using NLog.Config;
using NLog.Targets;
using Wox.Infrastructure.UserSettings;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Wox.Infrastructure.Logger
namespace Flow.Launcher.Infrastructure.Logger
{
public static class Log
{

View file

@ -0,0 +1,5 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Flow.Launcher")]
[assembly: InternalsVisibleTo("Flow.Launcher.Core")]
[assembly: InternalsVisibleTo("Flow.Launcher.Test")]

View file

@ -1,8 +1,8 @@
using System;
using System.Collections.Generic;
using Wox.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Logger;
namespace Wox.Infrastructure
namespace Flow.Launcher.Infrastructure
{
public static class Stopwatch
{

View file

@ -4,10 +4,10 @@ using System.Reflection;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Serialization.Formatters.Binary;
using Wox.Infrastructure.Logger;
using Wox.Infrastructure.UserSettings;
using Flow.Launcher.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Wox.Infrastructure.Storage
namespace Flow.Launcher.Infrastructure.Storage
{
/// <summary>
/// Stroage object using binary data

View file

@ -1,4 +1,4 @@
namespace Wox.Infrastructure.Storage
namespace Flow.Launcher.Infrastructure.Storage
{
/// <summary>
/// Save plugin settings/cache,

View file

@ -2,9 +2,9 @@
using System.Globalization;
using System.IO;
using Newtonsoft.Json;
using Wox.Infrastructure.Logger;
using Flow.Launcher.Infrastructure.Logger;
namespace Wox.Infrastructure.Storage
namespace Flow.Launcher.Infrastructure.Storage
{
/// <summary>
/// Serialize object using json format.

View file

@ -1,7 +1,7 @@
using System.IO;
using Wox.Infrastructure.UserSettings;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Wox.Infrastructure.Storage
namespace Flow.Launcher.Infrastructure.Storage
{
public class PluginJsonStorage<T> :JsonStrorage<T> where T : new()
{

View file

@ -4,13 +4,13 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wox.Infrastructure.UserSettings;
using Flow.Launcher.Infrastructure.UserSettings;
namespace Wox.Infrastructure.Storage
namespace Flow.Launcher.Infrastructure.Storage
{
public class WoxJsonStorage<T> : JsonStrorage<T> where T : new()
public class FlowLauncherJsonStorage<T> : JsonStrorage<T> where T : new()
{
public WoxJsonStorage()
public FlowLauncherJsonStorage()
{
var directoryPath = Path.Combine(DataLocation.DataDirectory(), DirectoryName);
Helper.ValidateDirectory(directoryPath);

View file

@ -2,9 +2,9 @@ using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using static Wox.Infrastructure.StringMatcher;
using static Flow.Launcher.Infrastructure.StringMatcher;
namespace Wox.Infrastructure
namespace Flow.Launcher.Infrastructure
{
public class StringMatcher
{

View file

@ -1,7 +1,7 @@
using System;
using System.Windows.Markup;
namespace Wox.Infrastructure.UI
namespace Flow.Launcher.Infrastructure.UI
{
public class EnumBindingSourceExtension : MarkupExtension
{

View file

@ -5,14 +5,14 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wox.Infrastructure.UserSettings
namespace Flow.Launcher.Infrastructure.UserSettings
{
public static class DataLocation
{
public const string PortableFolderName = "UserData";
public const string DeletionIndicatorFile = ".dead";
public static string PortableDataPath = Path.Combine(Constant.ProgramDirectory, PortableFolderName);
public static string RoamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Constant.Wox);
public static string RoamingDataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "FlowLauncher");
public static string DataDirectory()
{
if (PortableDataLocationInUse())

View file

@ -1,4 +1,4 @@
namespace Wox.Infrastructure.UserSettings
namespace Flow.Launcher.Infrastructure.UserSettings
{
public class HttpProxy
{

View file

@ -1,6 +1,6 @@
using Wox.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Infrastructure.UserSettings
namespace Flow.Launcher.Infrastructure.UserSettings
{
public class CustomPluginHotkey : BaseModel
{

View file

@ -1,7 +1,7 @@
using System.Collections.Generic;
using Wox.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Infrastructure.UserSettings
namespace Flow.Launcher.Infrastructure.UserSettings
{
public class PluginsSettings : BaseModel
{

View file

@ -3,9 +3,9 @@ using System.Collections.ObjectModel;
using System.Drawing;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Wox.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Infrastructure.UserSettings
namespace Flow.Launcher.Infrastructure.UserSettings
{
public class Settings : BaseModel
{
@ -76,7 +76,7 @@ namespace Wox.Infrastructure.UserSettings
public bool DontPromptUpdateMsg { get; set; }
public bool EnableUpdateLog { get; set; }
public bool StartWoxOnSystemStartup { get; set; } = true;
public bool StartFlowLauncherOnSystemStartup { get; set; } = true;
public bool HideOnStartup { get; set; }
bool _hideNotifyIcon { get; set; }
public bool HideNotifyIcon

View file

@ -1,4 +1,4 @@
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public class ActionContext
{

View file

@ -1,4 +1,4 @@
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public static class AllowedLanguage
{

View file

@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public class BaseModel : INotifyPropertyChanged
{

View file

@ -1,10 +1,10 @@
using System.Windows;
using System.Windows.Input;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public delegate void WoxKeyDownEventHandler(WoxKeyDownEventArgs e);
public delegate void AfterWoxQueryEventHandler(WoxQueryEventArgs e);
public delegate void FlowLauncherKeyDownEventHandler(FlowLauncherKeyDownEventArgs e);
public delegate void AfterFlowLauncherQueryEventHandler(FlowLauncherQueryEventArgs e);
public delegate void ResultItemDropEventHandler(Result result, IDataObject dropObject, DragEventArgs e);
@ -15,15 +15,15 @@ namespace Wox.Plugin
/// <param name="vkcode"></param>
/// <param name="state"></param>
/// <returns>return true to continue handling, return false to intercept system handling</returns>
public delegate bool WoxGlobalKeyboardEventHandler(int keyevent, int vkcode, SpecialKeyState state);
public delegate bool FlowLauncherGlobalKeyboardEventHandler(int keyevent, int vkcode, SpecialKeyState state);
public class WoxKeyDownEventArgs
public class FlowLauncherKeyDownEventArgs
{
public string Query { get; set; }
public KeyEventArgs keyEventArgs { get; set; }
}
public class WoxQueryEventArgs
public class FlowLauncherQueryEventArgs
{
public Query Query { get; set; }
}

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Collections.Specialized;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public interface IFeatures { }
@ -22,7 +22,7 @@ namespace Wox.Plugin
/// Represent plugin query will be executed in UI thread directly. Don't do long-running operation in Query method if you implement this interface
/// <remarks>This will improve the performance of instant search like websearch or cmd plugin</remarks>
/// </summary>
[Obsolete("Wox is fast enough now, executed on ui thread is no longer needed")]
[Obsolete("Flow Launcher is fast enough now, executed on ui thread is no longer needed")]
public interface IInstantQuery : IFeatures
{
bool IsInstantQuery(string query);

View file

@ -0,0 +1,9 @@
using System;
namespace Flow.Launcher.Plugin.Features
{
[Obsolete("Delete Flow.Launcher.Plugin.Features using directive, " +
"and use Flow.Launcher.Plugin.Feature.IContextMenu instead, " +
"this method will be removed in v1.3.0")]
public interface IContextMenu { }
}

View file

@ -0,0 +1,9 @@
using System;
namespace Flow.Launcher.Plugin.Features
{
[Obsolete("Delete Flow.Launcher.Plugin.Features using directive, " +
"and use Flow.Launcher.Plugin.Feature.IInstantQuery instead, " +
"this method will be removed in v1.3.0")]
public interface IExclusiveQuery { }
}

View file

@ -0,0 +1,9 @@
using System;
namespace Flow.Launcher.Plugin.Features
{
[Obsolete("Delete Flow.Launcher.Plugin.Features using directive, " +
"and use Flow.Launcher.Plugin.Feature.IInstantQuery instead, " +
"this method will be removed in v1.3.0")]
public interface IInstantQuery { }
}

View file

@ -6,8 +6,8 @@
<UseWPF>true</UseWPF>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Wox.Plugin</RootNamespace>
<AssemblyName>Wox.Plugin</AssemblyName>
<RootNamespace>Flow.Launcher.Plugin</RootNamespace>
<AssemblyName>Flow.Launcher.Plugin</AssemblyName>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>

View file

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public interface IPlugin
{

View file

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
/// <summary>
/// Public APIs that plugin can use
@ -14,16 +14,16 @@ namespace Wox.Plugin
/// <param name="query"></param>
/// <param name="plugin"></param>
/// <param name="results"></param>
[Obsolete("This method will be removed in Wox 1.3")]
[Obsolete("This method will be removed in Flow Launcher 1.3")]
void PushResults(Query query, PluginMetadata plugin, List<Result> results);
/// <summary>
/// Change Wox query
/// Change Flow.Launcher query
/// </summary>
/// <param name="query">query text</param>
/// <param name="requery">
/// force requery By default, Wox will not fire query if your query is same with existing one.
/// Set this to true to force Wox requerying
/// force requery By default, Flow Launcher will not fire query if your query is same with existing one.
/// Set this to true to force Flow Launcher requerying
/// </param>
void ChangeQuery(string query, bool requery = false);
@ -35,30 +35,30 @@ namespace Wox.Plugin
void ChangeQueryText(string query, bool selectAll = false);
/// <summary>
/// Close Wox
/// Close Flow Launcher
/// </summary>
[Obsolete]
void CloseApp();
/// <summary>
/// Restart Wox
/// Restart Flow Launcher
/// </summary>
void RestarApp();
/// <summary>
/// Hide Wox
/// Hide Flow Launcher
/// </summary>
[Obsolete]
void HideApp();
/// <summary>
/// Show Wox
/// Show Flow Launcher
/// </summary>
[Obsolete]
void ShowApp();
/// <summary>
/// Save all Wox settings
/// Save all Flow Launcher settings
/// </summary>
void SaveAppAllSettings();
@ -71,7 +71,7 @@ namespace Wox.Plugin
void ReloadAllPluginData();
/// <summary>
/// Check for new Wox update
/// Check for new Flow Launcher update
/// </summary>
void CheckForNewUpdate();
@ -110,9 +110,9 @@ namespace Wox.Plugin
void StopLoadingBar();
/// <summary>
/// Install Wox plugin
/// Install Flow Launcher plugin
/// </summary>
/// <param name="path">Plugin path (ends with .wox)</param>
/// <param name="path">Plugin path (ends with .flowlauncher)</param>
void InstallPlugin(string path);
/// <summary>
@ -133,6 +133,6 @@ namespace Wox.Plugin
/// Fired after global keyboard events
/// if you want to hook something like Ctrl+R, you should use this event
/// </summary>
event WoxGlobalKeyboardEventHandler GlobalKeyboardEvent;
event FlowLauncherGlobalKeyboardEventHandler GlobalKeyboardEvent;
}
}

View file

@ -1,6 +1,6 @@
using System.Windows.Controls;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public interface ISettingProvider
{

View file

@ -1,4 +1,4 @@
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
/// <summary>
/// This interface is to indicate and allow plugins to reload their

View file

@ -1,6 +1,6 @@
using System;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public class PluginInitContext
{

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO;
using Newtonsoft.Json;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
[JsonObject(MemberSerialization.OptOut)]
public class PluginMetadata : BaseModel

View file

@ -1,4 +1,4 @@
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public class PluginPair
{

View file

@ -0,0 +1,5 @@
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Flow.Launcher")]
[assembly: InternalsVisibleTo("Flow.Launcher.Core")]
[assembly: InternalsVisibleTo("Flow.Launcher.Test")]

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public class Query
{

View file

@ -1,4 +1,4 @@
What does Wox.Plugin do?
What does Flow.Launcher.Plugin do?
====
* Defines base objects and interfaces for plugins

View file

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Windows.Media;
namespace Wox.Plugin
namespace Flow.Launcher.Plugin
{
public class Result
@ -42,7 +42,7 @@ namespace Wox.Plugin
/// <summary>
/// return true to hide wox after select result
/// return true to hide flowlauncher after select result
/// </summary>
public Func<ActionContext, bool> Action { get; set; }

View file

@ -3,7 +3,7 @@ using System.Diagnostics;
using System.IO;
using System.Windows;
namespace Wox.Plugin.SharedCommands
namespace Flow.Launcher.Plugin.SharedCommands
{
public static class FilesFolders
{

View file

@ -3,7 +3,7 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Wox.Plugin.SharedCommands
namespace Flow.Launcher.Plugin.SharedCommands
{
public static class SearchWeb
{

View file

@ -7,7 +7,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Wox.Plugin.SharedCommands
namespace Flow.Launcher.Plugin.SharedCommands
{
public static class ShellCommand
{

View file

@ -5,8 +5,8 @@
<ProjectGuid>{FF742965-9A80-41A5-B042-D6C7D3A21708}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Wox.Test</RootNamespace>
<AssemblyName>Wox.Test</AssemblyName>
<RootNamespace>Flow.Launcher.Test</RootNamespace>
<AssemblyName>Flow.Launcher.Test</AssemblyName>
<ApplicationIcon />
<StartupObject />
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
@ -38,10 +38,10 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Plugins\Wox.Plugin.Url\Wox.Plugin.Url.csproj" />
<ProjectReference Include="..\Wox.Core\Wox.Core.csproj" />
<ProjectReference Include="..\Wox.Infrastructure\Wox.Infrastructure.csproj" />
<ProjectReference Include="..\Wox.Plugin\Wox.Plugin.csproj" />
<ProjectReference Include="..\Plugins\Flow.Launcher.Plugin.Url\Flow.Launcher.Plugin.Url.csproj" />
<ProjectReference Include="..\Flow.Launcher.Core\Flow.Launcher.Core.csproj" />
<ProjectReference Include="..\Flow.Launcher.Infrastructure\Flow.Launcher.Infrastructure.csproj" />
<ProjectReference Include="..\Flow.Launcher.Plugin\Flow.Launcher.Plugin.csproj" />
</ItemGroup>
<ItemGroup>

View file

@ -3,10 +3,10 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using NUnit.Framework;
using Wox.Infrastructure;
using Wox.Plugin;
using Flow.Launcher.Infrastructure;
using Flow.Launcher.Plugin;
namespace Wox.Test
namespace Flow.Launcher.Test
{
[TestFixture]
public class FuzzyMatcherTest

View file

@ -0,0 +1,17 @@
using NUnit.Framework;
using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Infrastructure.Exception;
namespace Flow.Launcher.Test.Plugins
{
[TestFixture]
public class PluginInitTest
{
[Test]
public void PublicAPIIsNullTest()
{
//Assert.Throws(typeof(Flow.LauncherFatalException), () => PluginManager.Initialize(null));
}
}
}

View file

@ -1,9 +1,9 @@
using System.Collections.Generic;
using NUnit.Framework;
using Wox.Core.Plugin;
using Wox.Plugin;
using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Plugin;
namespace Wox.Test
namespace Flow.Launcher.Test
{
public class QueryBuilderTest
{

View file

@ -1,7 +1,7 @@
using NUnit.Framework;
using Wox.Plugin.Url;
using Flow.Launcher.Plugin.Url;
namespace Wox.Test
namespace Flow.Launcher.Test
{
[TestFixture]
public class UrlPluginTest

View file

@ -3,16 +3,16 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29806.167
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Test", "Wox.Test\Wox.Test.csproj", "{FF742965-9A80-41A5-B042-D6C7D3A21708}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Test", "Flow.Launcher.Test\Flow.Launcher.Test.csproj", "{FF742965-9A80-41A5-B042-D6C7D3A21708}"
ProjectSection(ProjectDependencies) = postProject
{DB90F671-D861-46BB-93A3-F1304F5BA1C5} = {DB90F671-D861-46BB-93A3-F1304F5BA1C5}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin", "Wox.Plugin\Wox.Plugin.csproj", "{8451ECDD-2EA4-4966-BB0A-7BBC40138E80}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin", "Flow.Launcher.Plugin\Flow.Launcher.Plugin.csproj", "{8451ECDD-2EA4-4966-BB0A-7BBC40138E80}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{3A73F5A7-0335-40D8-BF7C-F20BE5D0BA87}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox", "Wox\Wox.csproj", "{DB90F671-D861-46BB-93A3-F1304F5BA1C5}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher", "Flow.Launcher\Flow.Launcher.csproj", "{DB90F671-D861-46BB-93A3-F1304F5BA1C5}"
ProjectSection(ProjectDependencies) = postProject
{230AE83F-E92E-4E69-8355-426B305DA9C0} = {230AE83F-E92E-4E69-8355-426B305DA9C0}
{1EE20B48-82FB-48A2-8086-675D6DDAB4F0} = {1EE20B48-82FB-48A2-8086-675D6DDAB4F0}
@ -29,29 +29,29 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox", "Wox\Wox.csproj", "{D
{403B57F2-1856-4FC7-8A24-36AB346B763E} = {403B57F2-1856-4FC7-8A24-36AB346B763E}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Infrastructure", "Wox.Infrastructure\Wox.Infrastructure.csproj", "{4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Infrastructure", "Flow.Launcher.Infrastructure\Flow.Launcher.Infrastructure.csproj", "{4FD29318-A8AB-4D8F-AA47-60BC241B8DA3}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.PluginManagement", "Plugins\Wox.Plugin.PluginManagement\Wox.Plugin.PluginManagement.csproj", "{049490F0-ECD2-4148-9B39-2135EC346EBE}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.PluginManagement", "Plugins\Flow.Launcher.Plugin.PluginManagement\Flow.Launcher.Plugin.PluginManagement.csproj", "{049490F0-ECD2-4148-9B39-2135EC346EBE}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Core", "Wox.Core\Wox.Core.csproj", "{B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Core", "Flow.Launcher.Core\Flow.Launcher.Core.csproj", "{B749F0DB-8E75-47DB-9E5E-265D16D0C0D2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.Program", "Plugins\Wox.Plugin.Program\Wox.Plugin.Program.csproj", "{FDB3555B-58EF-4AE6-B5F1-904719637AB4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Program", "Plugins\Flow.Launcher.Plugin.Program\Flow.Launcher.Plugin.Program.csproj", "{FDB3555B-58EF-4AE6-B5F1-904719637AB4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.WebSearch", "Plugins\Wox.Plugin.WebSearch\Wox.Plugin.WebSearch.csproj", "{403B57F2-1856-4FC7-8A24-36AB346B763E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.WebSearch", "Plugins\Flow.Launcher.Plugin.WebSearch\Flow.Launcher.Plugin.WebSearch.csproj", "{403B57F2-1856-4FC7-8A24-36AB346B763E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.ControlPanel", "Plugins\Wox.Plugin.ControlPanel\Wox.Plugin.ControlPanel.csproj", "{1EE20B48-82FB-48A2-8086-675D6DDAB4F0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.ControlPanel", "Plugins\Flow.Launcher.Plugin.ControlPanel\Flow.Launcher.Plugin.ControlPanel.csproj", "{1EE20B48-82FB-48A2-8086-675D6DDAB4F0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.Folder", "Plugins\Wox.Plugin.Folder\Wox.Plugin.Folder.csproj", "{787B8AA6-CA93-4C84-96FE-DF31110AD1C4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Folder", "Plugins\Flow.Launcher.Plugin.Folder\Flow.Launcher.Plugin.Folder.csproj", "{787B8AA6-CA93-4C84-96FE-DF31110AD1C4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.PluginIndicator", "Plugins\Wox.Plugin.PluginIndicator\Wox.Plugin.PluginIndicator.csproj", "{FDED22C8-B637-42E8-824A-63B5B6E05A3A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.PluginIndicator", "Plugins\Flow.Launcher.Plugin.PluginIndicator\Flow.Launcher.Plugin.PluginIndicator.csproj", "{FDED22C8-B637-42E8-824A-63B5B6E05A3A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.Sys", "Plugins\Wox.Plugin.Sys\Wox.Plugin.Sys.csproj", "{0B9DE348-9361-4940-ADB6-F5953BFFCCEC}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Sys", "Plugins\Flow.Launcher.Plugin.Sys\Flow.Launcher.Plugin.Sys.csproj", "{0B9DE348-9361-4940-ADB6-F5953BFFCCEC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.Url", "Plugins\Wox.Plugin.Url\Wox.Plugin.Url.csproj", "{A3DCCBCA-ACC1-421D-B16E-210896234C26}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Url", "Plugins\Flow.Launcher.Plugin.Url\Flow.Launcher.Plugin.Url.csproj", "{A3DCCBCA-ACC1-421D-B16E-210896234C26}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.Color", "Plugins\Wox.Plugin.Color\Wox.Plugin.Color.csproj", "{F35190AA-4758-4D9E-A193-E3BDF6AD3567}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Color", "Plugins\Flow.Launcher.Plugin.Color\Flow.Launcher.Plugin.Color.csproj", "{F35190AA-4758-4D9E-A193-E3BDF6AD3567}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.Everything", "Plugins\Wox.Plugin.Everything\Wox.Plugin.Everything.csproj", "{230AE83F-E92E-4E69-8355-426B305DA9C0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Everything", "Plugins\Flow.Launcher.Plugin.Everything\Flow.Launcher.Plugin.Everything.csproj", "{230AE83F-E92E-4E69-8355-426B305DA9C0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FFD651C7-0546-441F-BC8C-D4EE8FD01EA7}"
ProjectSection(SolutionItems) = preProject
@ -62,17 +62,17 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Scripts\post_build.ps1 = Scripts\post_build.ps1
README.md = README.md
SolutionAssemblyInfo.cs = SolutionAssemblyInfo.cs
Scripts\wox.nuspec = Scripts\wox.nuspec
Scripts\wox.plugin.nuspec = Scripts\wox.plugin.nuspec
Scripts\flowlauncher.nuspec = Scripts\flowlauncher.nuspec
Scripts\flowlauncher.plugin.nuspec = Scripts\flowlauncher.plugin.nuspec
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HelloWorldCSharp", "Plugins\HelloWorldCSharp\HelloWorldCSharp.csproj", "{03FFA443-5F50-48D5-8869-F3DF316803AA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.Shell", "Plugins\Wox.Plugin.Shell\Wox.Plugin.Shell.csproj", "{C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Shell", "Plugins\Flow.Launcher.Plugin.Shell\Flow.Launcher.Plugin.Shell.csproj", "{C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.BrowserBookmark", "Plugins\Wox.Plugin.BrowserBookmark\Wox.Plugin.BrowserBookmark.csproj", "{9B130CC5-14FB-41FF-B310-0A95B6894C37}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.BrowserBookmark", "Plugins\Flow.Launcher.Plugin.BrowserBookmark\Flow.Launcher.Plugin.BrowserBookmark.csproj", "{9B130CC5-14FB-41FF-B310-0A95B6894C37}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Wox.Plugin.Calculator", "Plugins\Wox.Plugin.Calculator\Wox.Plugin.Calculator.csproj", "{59BD9891-3837-438A-958D-ADC7F91F6F7E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Calculator", "Plugins\Flow.Launcher.Plugin.Calculator\Flow.Launcher.Plugin.Calculator.csproj", "{59BD9891-3837-438A-958D-ADC7F91F6F7E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View file

@ -1,4 +1,4 @@
<Window x:Class="Wox.ActionKeywords"
<Window x:Class="Flow.Launcher.ActionKeywords"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ActionKeywords"

View file

@ -1,11 +1,11 @@
using System.Windows;
using Wox.Core.Plugin;
using Wox.Core.Resource;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.UserSettings;
using Wox.Plugin;
using Flow.Launcher.Core.Plugin;
using Flow.Launcher.Core.Resource;
using Flow.Launcher.Infrastructure.Exception;
using Flow.Launcher.Infrastructure.UserSettings;
using Flow.Launcher.Plugin;
namespace Wox
namespace Flow.Launcher
{
public partial class ActionKeywords : Window
{

View file

@ -1,4 +1,4 @@
<Application x:Class="Wox.App"
<Application x:Class="Flow.Launcher.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
ShutdownMode="OnMainWindowClose"

Some files were not shown because too many files have changed in this diff Show more