Script to toggle "visual filter by selection" ON/OFF?
-
ghost zero
- Posts: 842
- Joined: 26 Apr 2010 17:48
Script to toggle "visual filter by selection" ON/OFF?
Can anyone make me a script to toggle "visual filter by selection" ON/OFF? I want to make a toolbar button for it.
-
highend
- Posts: 14940
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Script to toggle "visual filter by selection" ON/OFF?
Code: Select all
#359;One of my scripts helped you out? Please donate via Paypal
-
kiwichick
- Posts: 675
- Joined: 08 Aug 2012 04:14
- Location: Windows 10 Pro 22H2, 150% scaling
Re: Script to toggle "visual filter by selection" ON/OFF?
Or if you'd rather have an actual script for it:
Code: Select all
"View selected items (toggle)"
//Toggle between Selected items and All items
$tab= tab("get","term");
IF($tab Like "*|*") {
filter;
}
ELSE{
filter '"' . getinfo("SelectedItemsNames", """|""") . '"';
}
Windows 10 Pro 22H2
XYplorer Beta Club