Add shared commands and move to shared

This commit is contained in:
Jeremy Wu
2019-08-06 21:49:51 +10:00
parent c0095dc385
commit 06d4a82706
4 changed files with 4 additions and 32 deletions

View File

@@ -3,14 +3,14 @@ using System.Diagnostics;
using System.IO;
using System.Linq;
namespace Wox.Plugin.WebSearch.Commands
namespace Wox.Plugin.SharedCommands
{
internal static class SearchWeb
public static class SearchWeb
{
/// <summary> Opens search in a new browser. If no browser path is passed in then Chrome is used.
/// Leave browser path blank to use Chrome.
/// </summary>
internal static void NewBrowserWindow(this string url, string browserPath)
public static void NewBrowserWindow(this string url, string browserPath)
{
var browserExecutableName = browserPath?
.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None)