What is the best way to open a new lister with a set of left and
right tabs and a local toolbar?
I had this,
sync:dopusrt /cmd Go NEW LAYOUT=PJC
sync:dopusrt /cmd Toolbar NAME=ABC_local LOCAL STATE=center TOGGLE
sync:dopusrt /cmd GO TABGROUPLOAD=ABC OPENINLEFT
sync:dopusrt /cmd GO TABGROUPLOAD=ABCData OPENINRIGHT
but i got the impression that the sync:dopusrt /cmd was no
longer necessary so i tried,
@sync
Go NEW LAYOUT=PJC
Toolbar NAME=ABC_local LOCAL STATE=center TOGGLE
GO TABGROUPLOAD=ABC OPENINLEFT
GO TABGROUPLOAD=ABCData OPENINRIGHT
but this opens the tabs and toolbar in the current lister then switches to a new lister.
I have one of these buttons each for several major projects. The
toolbar and tabs differ among these projects. At least sort of.
The are all basically the same except for the parent directory
they start in (i.e., project ABC has tabs of folders in
.../ABC/tab1, ABC/tab2,... and project XYZ has tabs of folders
in .../XYZ/tab1, ABC/tab2,... Is there a better way to
accomodate this?
You can save the tabs as part of the layout to reduce the button from four lines to two lines (open layout, open local toolbar).
You will still need the dopusrt line. dopusrt isn't needed for passing arguments to internal commands anymore in Opus 9 but it is still needed for things like this where you want to launch a command from one lister and have it affect another lister.
Try something like this:
Go NEW LAYOUT=PJC
@sync: dopusrt /cmd Toolbar NAME=ABC_local LOCAL STATE=center TOGGLE
If it's unreliable then you might need to add a delay between the two lines, so that the new lister has always finished appearing before the second line adds the toolbar to the active window. (If it hasn't finished appearing then the active window will still be the one that launched the command.)
That works, i saved/loaded a lister style. I honestly dont see a clear conceptual distinction. On that, I used
Go NEW
@sync dopusrt /cmd Toolbar NAME=ABT_local LOCAL STATE=center TOGGLE
@sync dopusrt /cmd Prefs STYLE=ABT
instead.
Is there a way to add tab groups to the style editor? Its a little cumbersome to add those in manually---especially if you already have tab groups set up for them. I could copy the data from
C:\Documents and Settings...\Directory Opus\TabGroups
but if i update the tab group i still have to update the style. Maybe i am missing something...
The main difference between styles and layouts is that Layouts can save/load more than one lister (window) while styles only affect one lister (window).
You don't have to define the tabs via the Preferences dialog. You can also set up a lister how you want it and then right-click the Styles tabbar and chose Add Style. That seems to store the current folder tabs as part of the style.
Saving a layout will also store the current folder tabs into the new layout automatically.
You can use the "ping" hack to add a delay, like in the horrible button I posted in this thread. Maybe there are better ways...
PS: I just noticed that I missed out the : from @sync: in my example. I've edited my post. (I'm not sure if the : is strictly required but that's what the docs say so it should probably be used.)