Please note I have tried to implement with setfilter but any not making much headway.
Edit|Select On/off toggle
-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Edit|Select On/off toggle
Is there a way - or can a script be constructed - to emulate the "Toggle No/Last Visual Filter" button for the current Selection Filter?
Please note I have tried to implement with setfilter but any not making much headway.
Please note I have tried to implement with setfilter but any not making much headway.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Edit|Select On/off toggle
You can use command ID #355.aurumdigitus wrote:Is there a way - or can a script be constructed - to emulate the "Toggle No/Last Visual Filter" button for the current Selection Filter?
Please note I have tried to implement with setfilter but any not making much headway.
Code: Select all
//Toggle last filter
#355-
aurumdigitus
- Posts: 1075
- Joined: 30 May 2008 21:02
- Location: Lake Erie
Re: Edit|Select On/off toggle
As LBJ liked to quote, "Come let us reason together".
The goal is to do for Selection Filter what #355 does for Visual Filter. Since no command ID fits have been playing with setfilter. Have been able to get script to Select but the Toggle aspect has not found a solution.
The goal is to do for Selection Filter what #355 does for Visual Filter. Since no command ID fits have been playing with setfilter. Have been able to get script to Select but the Toggle aspect has not found a solution.
-
serendipity
- Posts: 3360
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: Edit|Select On/off toggle
Oh I see. It is possible. I made a quick and dirty script and it does work, but creates a file called ToggleSelection.ini inside XYplorer folder (which can be changed). Like i said it does work fine for me. Try out and see if this is what you want. And feel free to tweak it the way you want.aurumdigitus wrote:As LBJ liked to quote, "Come let us reason together".
The goal is to do for Selection Filter what #355 does for Visual Filter. Since no command ID fits have been playing with setfilter. Have been able to get script to Select but the Toggle aspect has not found a solution.
Code: Select all
//Toggle Selected items
$count= getinfo ("CountSelected");
IF ($count => 1) {
$items= getinfo ("SelectedItemsNames", |);
setkey $items, "Items", "Selected", "ToggleSelection.ini";
#251;
}
ELSE {
getkey $items, "Items", "Selected", "ToggleSelection.ini";
selfilter $items;
focus;
}
XYplorer Beta Club