diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index eaa093c..fa59565 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,11 +1,16 @@ --- name: Bug report about: Create a report to help us improve -title: "[BUG] xx" +title: "🐛 xx" labels: bug --- +**Flight Check** +- [ ] I'm sure existing (open and closed) don't have duplicates +- [ ] I've tried reinstalling PT, Everything, EverythingPT + + **Describe the bug** A clear and concise description of what the bug is. @@ -27,10 +32,16 @@ If applicable, add screenshots to help explain your problem. or be found at %localappdata%\Microsoft\PowerToys\PowerToys Run\Logs -**Version (please provide the version of software you are using):** +**Version:** - PowerToy: - Everything: + - EverythingPT: - Windows: + **Installation method (How did you install the following softwares):** + - PowerToys: Github/Windows Store/Winget..etc + - Everything: + - EverythingPT: + **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 203a62e..b2ad632 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,7 +1,7 @@ --- name: Feature request about: Suggest an idea for this project -title: "[Request]" +title: "💡 xx" labels: enhancement --- @@ -12,8 +12,9 @@ A clear and concise description of what the problem is. Ex. I'm always frustrate **Describe the solution you'd like** A clear and concise description of what you want to happen. -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. +**Describe any research you've done** +I'd appreciate it if you could include some research on the possible methods of implementation or reasource references that'd help me implement your feature request. +If you're unsure if this feature is even plausible to implement, maybe use the discussions instead of a feature request. **Additional context** Add any other context or screenshots about the feature request here. diff --git a/Everything.cs b/Everything.cs index 53a1c9c..9297434 100644 --- a/Everything.cs +++ b/Everything.cs @@ -33,20 +33,13 @@ namespace Community.PowerToys.Run.Plugin.Everything if (orgqry.Contains(':')) { - StringBuilder sb = new(); foreach (var kv in setting.Filters) { if (query.Contains(kv.Key, StringComparison.OrdinalIgnoreCase)) { - sb.Append(kv.Value + ' '); - query = query.Replace(kv.Key, string.Empty); + query = query.Replace(kv.Key, kv.Value); } } - - if (sb.Length > 0) - { - query = query.Trim() + " " + sb.ToString(); - } } Everything_SetSearchW(query); diff --git a/Main.cs b/Main.cs index d0b80fc..175e618 100644 --- a/Main.cs +++ b/Main.cs @@ -117,6 +117,7 @@ namespace Community.PowerToys.Run.Plugin.Everything CheckArm(); if (_setting.Updates) Task.Run(() => new Update().UpdateAsync(Assembly.GetExecutingAssembly().GetName().Version, _setting)); + _setting.Getfilters(); _everything = new Everything(_setting); _contextMenuLoader = new ContextMenuLoader(context, _setting.Context); _contextMenuLoader.Update(_setting); diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 2075a07..cfc50a7 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -287,7 +287,8 @@ namespace Community.PowerToys.Run.Plugin.Everything.Properties { } /// - /// Looks up a localized string similar to Enable regular expression in search.. + /// Looks up a localized string similar to Enable regular expression in search. + ///Recommend using r: in query instead of enabling this option. /// public static string RegEx_Description { get { diff --git a/Properties/Resources.resx b/Properties/Resources.resx index 465e621..60e1315 100644 --- a/Properties/Resources.resx +++ b/Properties/Resources.resx @@ -194,7 +194,8 @@ RegEx - Enable regular expression in search. + Enable regular expression in search. +Recommend using r: in query instead of enabling this option Run as administrator (Ctrl+Shift+Enter) diff --git a/Properties/Resources.zh.resx b/Properties/Resources.zh.resx index 327ac08..09d0775 100644 --- a/Properties/Resources.zh.resx +++ b/Properties/Resources.zh.resx @@ -167,7 +167,8 @@ 選取結果時更新搜尋詞,獲得更多資訊,但可能會變更搜尋結果 - RegEx 正規表示式搜尋 + RegEx 正規表示式搜尋 +不建議啟用,建議在收尋詞裡使用 r: 以系統管理員身分執行 (Ctrl+Shift+Enter) diff --git a/plugin.json b/plugin.json index 97b7498..f3dfa74 100644 --- a/plugin.json +++ b/plugin.json @@ -4,7 +4,7 @@ "IsGlobal": true, "Name": "Everything", "Author": "Yu Chieh (Victor) Lin", - "Version": "0.80.1", + "Version": "0.81.0", "Language": "csharp", "Website": "https://github.com/Lin-ycv/EverythingPowerToys", "ExecuteFileName": "Community.PowerToys.Run.Plugin.Everything.dll", diff --git a/settings.toml b/settings.toml index 168183e..b773377 100644 --- a/settings.toml +++ b/settings.toml @@ -6,6 +6,7 @@ Doc: = ext:c;cc;chm;cpp;cs;css;csv;cxx;doc;docm;docx;dot;dotm;dotx;epub;gh;h;hpp Exe: = ext:bat;cmd;exe;msi;msp;msu;ps1;scr Pic: = ext:ani;apng;bmp;bpg;cur;gif;ico;jfi;jfif;jif;jpe;jpeg;jpg;pcx;png;psb;psd;rle;svg;tga;tif;tiff;webp;wmf Video: = ext:3g2;3gp;3gp2;3gpp;amv;asf;asx;avi;bdmv;bik;d2v;divx;drc;dsa;dsm;dss;dsv;evo;f4v;flc;fli;flic;flv;hdmov;ifo;ivf;m1v;m2p;m2t;m2ts;m2v;m4v;mkv;mp2v;mp4;mp4v;mpe;mpeg;mpg;mpls;mpv2;mpv4;mov;mts;ogm;ogv;pss;pva;qt;ram;ratdvd;rm;rmm;rmvb;roq;rpm;smil;smk;swf;tp;tpr;ts;vob;vp6;webm;wm;wmp;wmv +r: = regex: # Search filters, filters result with custom path(s), seperated by | # Demo: = C:\Windows\|C:\ProgramData \ No newline at end of file