Skip to content

Conversation

@taooceros
Copy link
Member

fix #539

Copy link
Member

@jjw24 jjw24 left a 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

@jjw24 jjw24 enabled auto-merge July 2, 2021 12:15
Action = c =>
{
if (c.SpecialKeyState.CtrlPressed)
if (c.SpecialKeyState.CtrlPressed || !(Settings.EnabledPathSearchKeyword || Settings.EnableSearchActionKeyword))
Copy link
Member

@jjw24 jjw24 Jul 2, 2021

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) ?

Copy link
Member Author

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?

Copy link
Member Author

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.

Copy link
Member

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

@taooceros taooceros self-assigned this Jul 2, 2021
@taooceros taooceros added bug Something isn't working Explorer Plugin Issue or Enhancement Link to Explorer Plugin labels Jul 2, 2021
Context.API.ChangeQuery(string.IsNullOrEmpty(query.ActionKeyword) ?
changeTo :
query.ActionKeyword + " " + changeTo);
Context.API.ChangeQuery($"{keyword}{changeTo}");
Copy link
Member

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?

Copy link
Member Author

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.

@taooceros taooceros requested a review from jjw24 July 3, 2021 04:45
@jjw24
Copy link
Member

jjw24 commented Jul 3, 2021

Sorry, one more change, could we fix the typo for these
GetActionKeywordEnable
SetActionKeywordEnable

To:
GetActionKeywordEnabled
SetActionKeywordEnabled

@jjw24
Copy link
Member

jjw24 commented Jul 3, 2021

Sorry, one more change, could we fix the typo for these
GetActionKeywordEnable
SetActionKeywordEnable

To:
GetActionKeywordEnabled
SetActionKeywordEnabled

i am got this, i am in front of comp now

@taooceros
Copy link
Member Author

Sorry I was doing something else in the past hour🤣.

@jjw24
Copy link
Member

jjw24 commented Jul 3, 2021

nah all good, no probs

@jjw24 jjw24 merged commit bb84c74 into Flow-Launcher:dev Jul 3, 2021
@taooceros taooceros deleted the ExplorerActionKeyword branch July 5, 2021 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Explorer Plugin Issue or Enhancement Link to Explorer Plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change Actionkeyword for folder search

2 participants