Skip to content

Conversation

@taooceros
Copy link
Member

@taooceros taooceros commented Nov 4, 2020

Link to #193
This is only for program plugin for now.

@taooceros taooceros changed the title Add Exploere Customize to Program Plugin Add Exploere Customization Nov 4, 2020
@taooceros taooceros requested a review from jjw24 November 4, 2020 00:06
@taooceros
Copy link
Member Author

Question: Maybe this should be a global setting?

@jjw24 jjw24 added enhancement New feature or request review in progress Indicates that a review is in progress for this PR labels Nov 4, 2020
@jjw24
Copy link
Member

jjw24 commented Nov 4, 2020

Question: Maybe this should be a global setting?

I think this can be a global setting. This basically allows the user to open the containing folder using another program other than Windows explorer right? This can be useful for Explorer plugin as well.

@jjw24
Copy link
Member

jjw24 commented Nov 4, 2020

hey in the code 'Explorer' has a typo in several places. Can you see if there is something in SharedCommands class that you can use rather than hardcoding the word in.

@jjw24
Copy link
Member

jjw24 commented Nov 4, 2020

Question: Maybe this should be a global setting?

I think this can be a global setting. This basically allows the user to open the containing folder using another program other than Windows explorer right? This can be useful for Explorer plugin as well.

On second thought, maybe no need for global, leave this to the individual plugin to implement, because not all plugins do this.

@taooceros
Copy link
Member Author

True, but I think program plugin, explorer, and potential everything plugin may use the same setting? Though I think setting them seperately is not hard.

@jjw24
Copy link
Member

jjw24 commented Nov 8, 2020

hey @taooceros just made a couple minor changes, let me know if it is all good

Copy link
Member Author

@taooceros taooceros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I plan to add the customized args aligning with what I have done in the Everything plugin, by adding the default args with select,[path], and allows users to use %s and %f to customize their selection for the containing folder.

Main.StartProcess(Process.Start, new ProcessStartInfo(Package.Location));
Main.StartProcess(Process.Start, new ProcessStartInfo(
!string.IsNullOrEmpty(Main._settings.CustomizedExplorer) ? Main._settings.CustomizedExplorer:Settings.Explorer,
$"{Main._settings.CustomizedArgs} \"{Package.Location}\"".Trim()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does UWP work with Args? Since "/select,%f" is now the default init

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well...That's an issue... Let me take a look on solution.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i got it working by removing CustomizedAgs, if it doesnt work at all for UWP, perhaps remove it?

<system:String x:Key="flowlauncher_plugin_program_customizedexplorer">Customized Explorer</system:String>
<system:String x:Key="flowlauncher_plugin_program_args">Args</system:String>
<system:String x:Key="flowlauncher_plugin_program_tooltip_customizedexplorer">You can customized the explorer used for opening the container folder by inputing the Environmental Variable of the explorer you want to use. It will be useful to use CMD to test whether the Environmental Variable is avaliable.</system:String>
<system:String x:Key="flowlauncher_plugin_program_tooltip_args">Enter the customized args you want to add for your customized explorer. %s for parent directory, %f for full path (which only works for win32). Check the explorer's website for details.</system:String>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry i am not too across how the %s and %f option can be used. Could you give me an example?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%s is the parent directory and %f is the file path (.exe, .lnk, etc.) I get the idea from the everything plugin which can select the file while opening the parent directory. However, that seems may work not good for uwp.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh ok so this option allows for win32 programs to open both file and parent directory when using 'open containing folder' ?

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, let me think how I can fix that. If I can't, I will remove that

Copy link
Member Author

@taooceros taooceros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

It seems that for me, the layout is a bit exceed the border

@jjw24
Copy link
Member

jjw24 commented Nov 9, 2020

image

It seems that for me, the layout is a bit exceed the border

Oh that's strange. Maybe you can reduce the width of the CustomizeExplorer textbox a little bit. I was trying to align them up with the others.

@jjw24
Copy link
Member

jjw24 commented Nov 9, 2020

Once uwp is sorted we can get this in

@taooceros
Copy link
Member Author

Once uwp is sorted we can get this in

Oh sorry I forget to mention, it has been solved by moving the default to %s.

@jjw24
Copy link
Member

jjw24 commented Nov 10, 2020

Once uwp is sorted we can get this in

Oh sorry I forget to mention, it has been solved by moving the default to %s.

hey I just tested it out, UWP still not working...

@taooceros
Copy link
Member Author

taooceros commented Nov 10, 2020

hey I just tested it out, UWP still not working...

Hey I have tested, too, it works....... Which explorer and args are you using?

@jjw24
Copy link
Member

jjw24 commented Nov 10, 2020

hey I just tested it out, UWP still not working...

Hey I have tested, too, it works....... Which explorer and args are you using?

Strange. I just remove roaming profile then start, using the default, which is %s for args

@taooceros
Copy link
Member Author

taooceros commented Nov 10, 2020

Strange. I just remove roaming profile then start, using the default, which is %s for args

Sorry I have found the issue; I will fix that soon. It works fine for me before is because I clear the args box.......😅

@jjw24 jjw24 removed the review in progress Indicates that a review is in progress for this PR label Nov 10, 2020
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.

👍

@jjw24 jjw24 merged commit 8010179 into Flow-Launcher:dev Nov 10, 2020
@taooceros taooceros deleted the CustomizeExplorer branch November 30, 2020 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants