Add clipboard plugin.

This commit is contained in:
qianlifeng
2014-02-28 23:21:01 +08:00
parent 7d1ee33e1f
commit 7f769e00b9
31 changed files with 455 additions and 65 deletions

View File

@@ -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; }
}
}

View File

@@ -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;
}
}
}

View File

@@ -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