Lock Icon for Locked Tabs

Features wanted...
Post Reply
AgentSmith007
Posts: 15
Joined: 06 Oct 2024 18:11

Lock Icon for Locked Tabs

Post by AgentSmith007 »

I was using Xplorer2 for many years as file manager replacement for Windows' File Explorer. Last week I discovered this great file manager - XYplorer. I bought lifetime license and now in the process of switching all my home desktop and laptop computers to XYplorer. In Xplorer2, when tab is locked it puts lock icon in the tab. XYplorer using underline when tab is locked. So, my wish:

It would be nice to have lock icon implemented into locked tab instead of underline.
X2LockedFolders.jpg
X2LockedFolders.jpg (39.63 KiB) Viewed 728 times
XYLockedFolders.jpg
XYLockedFolders.jpg (44.55 KiB) Viewed 728 times
Last edited by AgentSmith007 on 09 Oct 2024 12:26, edited 1 time in total.
Rule #39: "There is no such thing as coincidences."

bossi
Posts: 49
Joined: 30 Jul 2022 11:09

Re: Lock Icon for Locked Folders

Post by bossi »

Code: Select all

"tab_lock_n_icon"
    $caption = tab("get", "caption");
    $icon_path = "path\to\icon";
    tab("lock");
    tab("rename","$caption|$icon_path") 
this does what you describe

AgentSmith007
Posts: 15
Joined: 06 Oct 2024 18:11

Re: Lock Icon for Locked Folders

Post by AgentSmith007 »

bossi wrote: 09 Oct 2024 04:46

Code: Select all

"tab_lock_n_icon"
    $caption = tab("get", "caption");
    $icon_path = "path\to\icon";
    tab("lock");
    tab("rename","$caption|$icon_path") 
this does what you describe
Thanks for this. But I am only using XY for a week and I don't have a clue where to put this script.

Can you provide some guidance, please?

P.S.

I figured it out. This is cool.
Rule #39: "There is no such thing as coincidences."

AgentSmith007
Posts: 15
Joined: 06 Oct 2024 18:11

Re: Lock Icon for Locked Folders

Post by AgentSmith007 »

Is there a way to remove underline in the locked tab?
Rule #39: "There is no such thing as coincidences."

highend
Posts: 13743
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Lock Icon for Locked Folders

Post by highend »

Afaik: no
One of my scripts helped you out? Please donate via Paypal

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

Re: Lock Icon for Locked Folders

Post by admin »

I'll add a tweak to make it possible.

highend
Posts: 13743
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Lock Icon for Locked Folders

Post by highend »

You could add a tweak to let the user choose his own icon that gets automatically applied to locked tabs as well :titter:

I'd like it :tup:
One of my scripts helped you out? Please donate via Paypal

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

Re: Lock Icon for Locked Folders

Post by admin »

I'd find it odd if all locked tabs showed the same icon. I use icons for orientation.

AgentSmith007
Posts: 15
Joined: 06 Oct 2024 18:11

Re: Lock Icon for Locked Tabs

Post by AgentSmith007 »

AgentSmith007 wrote: 09 Oct 2024 05:17 Is there a way to remove underline in the locked tab?
admin wrote: 09 Oct 2024 11:27 I'll add a tweak to make it possible.
viewtopic.php?p=224470#p224470
admin wrote: 09 Oct 2024 11:27 + Tabs: Added a tweak to control the underlining of the caption of locked tabs:
TabLockedUnderlined=0
The factory default and previous hard setting is TabLockedUnderlined=1.
Now you can switch it off
I installed latest beta on one PC. It works. Thank you!!!
Rule #39: "There is no such thing as coincidences."

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

Re: Lock Icon for Locked Tabs

Post by admin »

So you found out how to tweak by yourself? Smart! :tup: :beer:

AgentSmith007
Posts: 15
Joined: 06 Oct 2024 18:11

Re: Lock Icon for Locked Tabs

Post by AgentSmith007 »

admin wrote: 09 Oct 2024 18:38 So you found out how to tweak by yourself? Smart! :tup: :beer:
Thanks. :beer:

I am an IT guy. First four years of my IT career worked as desktop support for hardware and software, and then as webmaster/web designer for 25 years.
Now enjoying my retirement. :D
Rule #39: "There is no such thing as coincidences."

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

Re: Lock Icon for Locked Tabs

Post by admin »

Sounds like a plan. :biggrin:

Post Reply