-
-
Notifications
You must be signed in to change notification settings - Fork 455
Fix Explorer unexpected action keyword for folder index search #541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jjw24
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good fix, see comments please
| Action = c => | ||
| { | ||
| if (c.SpecialKeyState.CtrlPressed) | ||
| if (c.SpecialKeyState.CtrlPressed || !(Settings.EnabledPathSearchKeyword || Settings.EnableSearchActionKeyword)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this saying both Settings.EnabledPathSearchKeyword and Settings.EnableSearchActionKeyword evaluate to false? Can we not just do (!Settings.EnabledPathSearchKeyword && !Settings.EnabledSearchActionKeyword) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we change it to Enabled, what about move Enabled to the end of the name, like PathSearchKeywordEnabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this saying both Settings.EnabledPathSearchKeyword and Settings.EnableSearchActionKeyword evaluate to false? Can we not just do (!Settings.EnabledPathSearchKeyword && !Settings.EnabledSearchActionKeyword) ?
That will have two !🤣, but it seems more clear. I will change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we change it to Enabled, what about move Enabled to the end of the name, like PathSearchKeywordEnabled?
Sorry for the late reply, I am ok moving Enabled to the end if you want to
| Context.API.ChangeQuery(string.IsNullOrEmpty(query.ActionKeyword) ? | ||
| changeTo : | ||
| query.ActionKeyword + " " + changeTo); | ||
| Context.API.ChangeQuery($"{keyword}{changeTo}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed the space here, is it meant to be added to line 47?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is supposed to be a space instead of empty string. Will fix it soom.
|
Sorry, one more change, could we fix the typo for these To: |
i am got this, i am in front of comp now |
|
Sorry I was doing something else in the past hour🤣. |
|
nah all good, no probs |
fix #539