custom icon with virtual folder

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zzjean
Posts: 104
Joined: 22 Nov 2009 14:56

custom icon with virtual folder

Post by zzjean »

Hello

I happily use virtual folders from the catalog. It's really very practical.
I have two questions :
1 - Is it possible to put a custom icon on the tab of a virtual folder? (very useful if you iconize the tab)
2- can we force the opening of virtual folders in a new tab?
I didn't find how to do it

Thank you for your help

admin
Site Admin
Posts: 60633
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: custom icon with virtual folder

Post by admin »

1. You can define custom tab icons via Rename Tab:
RenameTab.png
RenameTab.png (4.41 KiB) Viewed 280 times
2. Hold SHIFT while you click the catalog item. This will always open the location in a new tab.

zzjean
Posts: 104
Joined: 22 Nov 2009 14:56

Re: custom icon with virtual folder

Post by zzjean »

Hello

Thanks for defining the icon. I do not know.

For SHIFT I always forget to press the key. It's just a little annoying :)

zzjean
Posts: 104
Joined: 22 Nov 2009 14:56

Re: custom icon with virtual folder

Post by zzjean »

Bonjour,

I did this in the catalog :

tab("new","vi:|t|<get pick 5.m d:\rep1> <get pick 5.m d:\rep2>");
tab("rename","last|dernier.ico");
tab("iconize",);

It seems to work. I get the latest files from rep1 and rep2 in a new iconized tab.
Only problem I only have 4 rep1 files instead of 5

jupe
Posts: 2809
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: custom icon with virtual folder

Post by jupe »

tab("new","vi:<get pick 5.m d:\rep1><crlf><get pick 5.m d:\rep2>");

zzjean
Posts: 104
Joined: 22 Nov 2009 14:56

Re: custom icon with virtual folder

Post by zzjean »

Thank you so much.
I'm not very familiar with scripting. All I've ever learned is a little bit of fortran from the early 70's (yes I'm getting old) not very useful :)

kiwichick
Posts: 559
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: custom icon with virtual folder

Post by kiwichick »

admin wrote: 27 Feb 2024 09:01 Hold SHIFT while you click the catalog item. This will always open the location in a new tab.
Using mouse middle-click is much easier to remember and a catalog item that points to a single folder will open in a new tab using mouse middle-click. However, doing the same with a virtual folder opens it in the current tab AND a new tab. Is that expected behaviour?
Windows 10 Pro 22H2

admin
Site Admin
Posts: 60633
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: custom icon with virtual folder

Post by admin »

jupe wrote: 28 Feb 2024 06:47 tab("new","vi:<get pick 5.m d:\rep1><crlf><get pick 5.m d:\rep2>");
Oh, yeah. I'll have to add that to the help. :tup:

PS: with a pipe it works as well (and you can drop the get):
tab("new","vi:<pick 5.m d:\rep1>|<pick 5.m d:\rep2>");

admin
Site Admin
Posts: 60633
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: custom icon with virtual folder

Post by admin »

kiwichick wrote: 28 Feb 2024 08:26 Using mouse middle-click is much easier to remember and a catalog item that points to a single folder will open in a new tab using mouse middle-click. However, doing the same with a virtual folder opens it in the current tab AND a new tab. Is that expected behaviour?
It doesn't do that here. What is the catalog item?

jupe
Posts: 2809
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: custom icon with virtual folder

Post by jupe »

admin wrote: 28 Feb 2024 08:43 PS: with a pipe it works as well
Yeah I know, I personally just avoid using it, because if you happen to use other scripts that use <get tabs> with that vi tab open, then the parsing gets messed up.

admin
Site Admin
Posts: 60633
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: custom icon with virtual folder

Post by admin »

Ah, I see, I see.

jupe
Posts: 2809
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: custom icon with virtual folder

Post by jupe »

admin wrote: 28 Feb 2024 09:04
kiwichick wrote: 28 Feb 2024 08:26 Using mouse middle-click is much easier to remember and a catalog item that points to a single folder will open in a new tab using mouse middle-click. However, doing the same with a virtual folder opens it in the current tab AND a new tab. Is that expected behaviour?
It doesn't do that here. What is the catalog item?
kiwichick possibly has CEA\Middle-click on folder == Open in Background Tab, in that case you'd see that behavior, additionally when vi: tabs are opened in the BG (via various means) the tabicon isn't set properly either.

admin
Site Admin
Posts: 60633
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: custom icon with virtual folder

Post by admin »

Oh yes. Both fixed in next beta.

kiwichick
Posts: 559
Joined: 08 Aug 2012 04:14
Location: Pahiatua, New Zealand

Re: custom icon with virtual folder

Post by kiwichick »

jupe wrote: 29 Feb 2024 04:17 kiwichick possibly has CEA\Middle-click on folder == Open in Background Tab
I didn't even think about that but, yes, you are correct.
Windows 10 Pro 22H2

Post Reply