Minimize on double-click

Features wanted...
Post Reply
jpjnh
Posts: 5
Joined: 03 Mar 2008 22:32
Location: NH, USA

Minimize on double-click

Post by jpjnh »

I will often use XY to find a file and double-click it to open it in its default program. I usually don't need to have XY still in view after that. So it would be nice to have a setting that allows the choice to have XY minimize itself after a file is double-clicked in the file pane.

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Minimize on double-click

Post by zer0 »

This would probably be something that will be covered by Custom Event Actions (CEA, see roadmap in FAQs & Polls). However, in the meantime, you can create a script that opens <curitem> and then minimises XYplorer and assign 'Enter' to it. Not as good as double-click, but does give you a choice :)
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Minimize on double-click

Post by jacky »

If you don't care/use Portable File Associations (PFA), I think you should be able to get this behavior using the following PFA (Tools|Customize File Associations...):

Code: Select all

*>::open <curitem>, w; #1027;
That way, all files will be opened (on dbl-click) using that little script, which simply open the current item (i.e. the one dbl-clicked on) with the Windows associated application, and minimize XY.

Using the Windows association is required here, as otherwise this PFA would call itself, thus sending XY in an infinite loop and to a probable crash. You could of course have other PFAs above this one, but obviously when executed they would not get XY minimized (unless they also have a script ending with #1027; of course).
Proud XYplorer Fanatic

jpjnh
Posts: 5
Joined: 03 Mar 2008 22:32
Location: NH, USA

Re: Minimize on double-click

Post by jpjnh »

Thanks! I used the File Extensions suggestion and it works exactly as I wanted it to.

Post Reply