mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
Add clipboard plugin.
This commit is contained in:
@@ -16,5 +16,7 @@ namespace Wox.Plugin
|
||||
public Action ShowApp { get; set; }
|
||||
public Action<string,string,string> ShowMsg { get; set; }
|
||||
public Action OpenSettingDialog { get; set; }
|
||||
|
||||
public Action<string> ShowCurrentResultItemTooltip { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,7 @@ namespace Wox.Plugin
|
||||
if (string.IsNullOrEmpty(RawQuery)) return;
|
||||
|
||||
string[] strings = RawQuery.Split(' ');
|
||||
//todo:not exactly correct. query that didn't containing a space should be a valid query
|
||||
if (strings.Length == 1) return; //we consider a valid query must contain a space
|
||||
|
||||
ActionName = strings[0];
|
||||
@@ -31,5 +32,16 @@ namespace Wox.Plugin
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public string GetAllRemainingParameter()
|
||||
{
|
||||
string[] strings = RawQuery.Split(' ');
|
||||
if (strings.Length > 1)
|
||||
{
|
||||
return RawQuery.Substring(RawQuery.IndexOf(' ') + 1);
|
||||
}
|
||||
|
||||
return string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,10 +9,12 @@ namespace Wox.Plugin
|
||||
public string Title { get; set; }
|
||||
public string SubTitle { get; set; }
|
||||
public string IcoPath { get; set; }
|
||||
public Action<ActionContext> Action { get; set; }
|
||||
public int Score { get; set; }
|
||||
|
||||
public bool DontHideWoxAfterSelect { get; set; }
|
||||
/// <summary>
|
||||
/// return true to hide wox after select result
|
||||
/// </summary>
|
||||
public Func<ActionContext,bool> Action { get; set; }
|
||||
public int Score { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Auto add scores for MRU items
|
||||
|
||||
Reference in New Issue
Block a user