Page 1 of 1
Lock Icon for Locked Tabs
Posted: 08 Oct 2024 13:44
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
XYLockedFolders.jpg
Re: Lock Icon for Locked Folders
Posted: 09 Oct 2024 04:46
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
Re: Lock Icon for Locked Folders
Posted: 09 Oct 2024 04:51
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.
Re: Lock Icon for Locked Folders
Posted: 09 Oct 2024 05:17
by AgentSmith007
Is there a way to remove underline in the locked tab?
Re: Lock Icon for Locked Folders
Posted: 09 Oct 2024 07:12
by highend
Afaik: no
Re: Lock Icon for Locked Folders
Posted: 09 Oct 2024 11:27
by admin
I'll add a tweak to make it possible.
Re: Lock Icon for Locked Folders
Posted: 09 Oct 2024 11:46
by highend
You could add a tweak to let the user choose his own icon that gets automatically applied to locked tabs as well
I'd like it

Re: Lock Icon for Locked Folders
Posted: 09 Oct 2024 11:48
by admin
I'd find it odd if all locked tabs showed the same icon. I use icons for orientation.
Re: Lock Icon for Locked Tabs
Posted: 09 Oct 2024 17:57
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!!!
Re: Lock Icon for Locked Tabs
Posted: 09 Oct 2024 18:38
by admin
So you found out how to tweak by yourself? Smart!

Re: Lock Icon for Locked Tabs
Posted: 09 Oct 2024 18:45
by AgentSmith007
admin wrote: ↑09 Oct 2024 18:38
So you found out how to tweak by yourself? Smart!
Thanks.
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.

Re: Lock Icon for Locked Tabs
Posted: 09 Oct 2024 18:54
by admin
Sounds like a plan.
