Exemple #1
0
 public Result Create(IPublicAPI contextApi)
 {
     return(new Result
     {
         Title = Title,
         IcoPath = Path,
         SubTitle = $"Folder: {Subtitle}",
         QueryTextDisplay = Path,
         TitleHighlightData = StringMatcher.FuzzySearch(Search, Title).MatchData,
         ContextData = new SearchResult {
             Type = ResultType.Folder, FullPath = Path
         },
         Action = c => _explorerAction.Execute(Path, contextApi),
     });
 }
 public Result Create(IPublicAPI contextApi)
 {
     return(new Result
     {
         Title = Title,
         IcoPath = Path,
         SubTitle = string.Format(CultureInfo.CurrentCulture, Properties.Resources.wox_plugin_folder_select_folder_result_subtitle, Subtitle),
         QueryTextDisplay = Path,
         TitleHighlightData = StringMatcher.FuzzySearch(Search, Title).MatchData,
         ContextData = new SearchResult {
             Type = ResultType.Folder, FullPath = Path
         },
         Action = c => _explorerAction.Execute(Path, contextApi),
     });
 }
Exemple #3
0
        public Wox.Plugin.Result Create(IPublicAPI contextApi)
        {
            var result = new Wox.Plugin.Result
            {
                Title              = Title,
                SubTitle           = "Folder: " + FilePath,
                IcoPath            = FilePath,
                TitleHighlightData = StringMatcher.FuzzySearch(Search, Path.GetFileName(FilePath)).MatchData,
                Action             = c => ExplorerAction.Execute(FilePath, contextApi),
                ContextData        = new SearchResult {
                    Type = ResultType.File, FullPath = FilePath
                },
            };

            return(result);
        }
Exemple #4
0
        public Wox.Plugin.Result Create(IPublicAPI contextApi)
        {
            var result = new Wox.Plugin.Result
            {
                Title              = Title,
                SubTitle           = string.Format(CultureInfo.CurrentCulture, Properties.Resources.wox_plugin_folder_select_file_result_subtitle, FilePath),
                IcoPath            = FilePath,
                TitleHighlightData = StringMatcher.FuzzySearch(Search, Path.GetFileName(FilePath)).MatchData,
                Action             = c => ExplorerAction.Execute(FilePath, contextApi),
                ContextData        = new SearchResult {
                    Type = ResultType.File, FullPath = FilePath
                },
            };

            return(result);
        }