src/modules/launcher/Wox.Core/Plugin/PluginManager.cs
/// <summary>
/// used to add action keyword for multiple action keyword plugin
/// e.g. web search
/// </summary>
used to add action keyword for multiple action keyword plugin
e.g. web search
used to add action keyword for multiple action keyword plugin e . g . web search
public static void RemoveActionKeyword(string id, string oldActionkeyword)
        {
            var plugin = GetPluginForId(id);
            if (oldActionkeyword == Query.GlobalPluginWildcardSign
                && 
                plugin.Metadata.ActionKeywords
                                    .Where(x => x == Query.GlobalPluginWildcardSign)
                                    .ToList()
                                    .Count == 1)
            {
                GlobalPlugins.Remove(plugin);
            }
            if(oldActionkeyword != Query.GlobalPluginWildcardSign)
                NonGlobalPlugins.Remove(oldActionkeyword);
            plugin.Metadata.ActionKeywords.Remove(oldActionkeyword);
        }
public static void RemoveActionKeyword ( string id , string oldActionkeyword ) { var plugin = GetPluginForId ( id ) ; if ( oldActionkeyword == Query . GlobalPluginWildcardSign && plugin . Metadata . ActionKeywords . Where ( x => x == Query . GlobalPluginWildcardSign ) . ToList ( ) . Count == 1 ) { GlobalPlugins . Remove ( plugin ) ; } if ( oldActionkeyword != Query . GlobalPluginWildcardSign ) NonGlobalPlugins . Remove ( oldActionkeyword ) ; plugin . Metadata . ActionKeywords . Remove ( oldActionkeyword ) ; }
used to add action keyword for multiple action keyword plugin
e.g.
used to add action keyword for multiple action keyword plugin e . g .
// Plugins may have multiple ActionKeywords that are global, eg. WebSearch
id
string
oldActionkeyword
string