ScrollSelectionIntoView - A small script command to automatically scroll the file display to the current selection.
I use it when toggling between details and thumbnails mode to keep the selected items visible. It won't do anything if nothing is selected.
(n.b. Opus 12 does this automatically. This was written for Opus 11. --Leo)
You may add it to your view-toggle button as I did or put it in a new button to have this separately available. It is nice for buttons where you set a show- or quickfilter as well, I somehow can't do without it anymore. o)
My view toggle button using this command looks like this:
@ifset:VIEW=Details Set VIEW=Thumbnails ScrollSelectionIntoView @ifset:else Set VIEW=Details ScrollSelectionIntoView
To install the command, download the *.js.txt file below and drag it to Preferences / Toolbars / Scripts.
After that create a separate button calling "ScrollSelectionIntoView" or edit existing view changing buttons and menues, to call it directly after any "Set VIEW.." command.
Latest: v1.2.1 - supports automatic updates/scriptwizard:
Command.GUI_ScrollSelectionIntoView.js.txt (4.47 KB)
v1.2 - using tab.stats to detect regular selection without extra checkbox toggle, commandline param PRIOCHECKBOXSELECTION added:
Command.GUI_ScrollSelectionIntoView.js.txt (3.35 KB)
v1.1 - supports selection in checkbox mode now as well, and parameter to priorize checkboxmode (defaults to false):
Command.GUI_ScrollSelectionIntoView.js.txt (3.54 KB)[/li][/ul]