Skip to content

Commit

Permalink
Fix #97
Browse files Browse the repository at this point in the history
Workaround for #96

adjustments to templates
  • Loading branch information
lin-ycv committed Apr 29, 2024
1 parent da9cc0a commit a591981
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 17 deletions.
15 changes: 13 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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.
7 changes: 4 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[Request]"
title: "💡 xx"
labels: enhancement

---
Expand All @@ -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.
9 changes: 1 addition & 8 deletions Everything.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,13 @@ internal IEnumerable<Result> Query(string query, Settings setting)

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);
Expand Down
1 change: 1 addition & 0 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public void Init(PluginInitContext context)
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);
Expand Down
3 changes: 2 additions & 1 deletion Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
3 changes: 2 additions & 1 deletion Properties/Resources.zh.resx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a591981

Please sign in to comment.