Workaround for #96

adjustments to templates
This commit is contained in:
Yu Chieh Victor Lin 2024-04-29 13:25:22 +08:00
parent da9cc0a9d7
commit a591981ea8
9 changed files with 27 additions and 17 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -287,7 +287,8 @@ namespace Community.PowerToys.Run.Plugin.Everything.Properties {
}
/// <summary>
/// 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.
/// </summary>
public static string RegEx_Description {
get {

View File

@ -194,7 +194,8 @@
<value>RegEx</value>
</data>
<data name="RegEx_Description" xml:space="preserve">
<value>Enable regular expression in search.</value>
<value>Enable regular expression in search.
Recommend using r: in query instead of enabling this option</value>
</data>
<data name="run_as_admin" xml:space="preserve">
<value>Run as administrator (Ctrl+Shift+Enter)</value>

View File

@ -167,7 +167,8 @@
<value>選取結果時更新搜尋詞,獲得更多資訊,但可能會變更搜尋結果</value>
</data>
<data name="RegEx_Description" xml:space="preserve">
<value>RegEx 正規表示式搜尋</value>
<value>RegEx 正規表示式搜尋
不建議啟用,建議在收尋詞裡使用 r:</value>
</data>
<data name="run_as_admin" xml:space="preserve">
<value>以系統管理員身分執行 (Ctrl+Shift+Enter)</value>

View File

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

View File

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