mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
* Copy the existing calc. plugin foldeR * Blindly rename a bunch of things to Window Walker * Update the solution to reference the new plugin * Get basic Yo returned * Remove all the languages except english * Lower quality of icon as well as test showing it * Add the core non-ui parts to the plugin * Delete calculator png * Get it to compile * Added the actual code which apparently doesn't work * Finally start showing results * Fix up strings * Switch working * Remove unused classes * Remove unneeded async
46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information. Code forked from Betsegaw Tadele's https://github.com/betsegaw/windowwalker/
|
|
|
|
namespace Wox.Plugin.WindowWalker.Components
|
|
{
|
|
/// <summary>
|
|
/// A class to represent a search string
|
|
/// </summary>
|
|
/// <remarks>Class was added inorder to be able to attach various context data to
|
|
/// a search string</remarks>
|
|
internal class SearchString
|
|
{
|
|
/// <summary>
|
|
/// Gets where is the search string coming from (is it a shortcut
|
|
/// or direct string, etc...)
|
|
/// </summary>
|
|
public SearchResult.SearchType SearchType
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the actual text we are searching for
|
|
/// </summary>
|
|
public string SearchText
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="SearchString"/> class.
|
|
/// Constructor
|
|
/// </summary>
|
|
/// <param name="searchText"></param>
|
|
/// <param name="searchType"></param>
|
|
public SearchString(string searchText, SearchResult.SearchType searchType)
|
|
{
|
|
SearchText = searchText;
|
|
SearchType = searchType;
|
|
}
|
|
}
|
|
}
|