Page 2 of 2

Re: Closing All Other Tabs...

Posted: 29 Nov 2011 11:07
by Marco
Everything works as expected :)
Would it also be possible an addition like

Code: Select all

    + SC tab enhanced: New operation "lockhomezone", analog to "Lock Home Zone" in menu View | Tab.
      The "data" parameter, if missing, toggles the status, whereas 0 unlocks and 1 locks.
      The "index" parameter can be used to define the tab to lock to home zone
      (leftmost tab = 1). If missing then the current tab is closed.
      Examples:
        tab("lockhomezone");       //toggles the Lock Home Zone status of the current tab
        tab("lockhomezone", 1);    //sets the Lock Home Zone status of the current tab ON
        tab("lockhomezone", , 2);  //toggles the Lock Home Zone status of the second tab
        tab("lockhomezone", 1, 2); //sets the Lock Home Zone status of the second tab ON;
?

:roll: :D

Re: Closing All Other Tabs...

Posted: 29 Nov 2011 11:15
by admin
Marco wrote:Everything works as expected :)
Would it also be possible an addition like

Code: Select all

    + SC tab enhanced: New operation "lockhomezone", analog to "Lock Home Zone" in menu View | Tab.
      The "data" parameter, if missing, toggles the status, whereas 0 unlocks and 1 locks.
      The "index" parameter can be used to define the tab to lock to home zone
      (leftmost tab = 1). If missing then the current tab is closed.
      Examples:
        tab("lockhomezone");       //toggles the Lock Home Zone status of the current tab
        tab("lockhomezone", 1);    //sets the Lock Home Zone status of the current tab ON
        tab("lockhomezone", , 2);  //toggles the Lock Home Zone status of the second tab
        tab("lockhomezone", 1, 2); //sets the Lock Home Zone status of the second tab ON;
?

:roll: :D
May I ask why you need this in scripting? I find it hard to imagine a use case for this. :)

Re: Closing All Other Tabs...

Posted: 29 Nov 2011 11:19
by Marco
It's part of a script that tries to emulate the (upcoming) Workspace feature.
With this addition I can create tabs with a locked home zone without focusing them. Creating and modifing them in background I should see some performance improvement and less seizure-triggering flickering on screen.

Re: Closing All Other Tabs...

Posted: 29 Nov 2011 11:25
by admin
Marco wrote:It's part of a script that tries to emulate the (upcoming) Workspace feature.
With this addition I can create tabs with a locked home zone without focusing them. Creating and modifing them in background I should see some performance improvement and less seizure-triggering flickering on screen.
Ah, I see.

Let me tell you that Wordspaces will be the very next big feature in XY, and is likely to appear before Xmas. So don't waste too much time on a script that will be of not much use in future.

Re: Closing All Other Tabs...

Posted: 29 Nov 2011 11:28
by Marco
admin wrote:
Marco wrote:It's part of a script that tries to emulate the (upcoming) Workspace feature.
With this addition I can create tabs with a locked home zone without focusing them. Creating and modifing them in background I should see some performance improvement and less seizure-triggering flickering on screen.
Ah, I see.

Let me tell you that Wordspaces will be the very next big feature in XY, and is likely to appear before Xmas. So don't waste too much time on a script that will be of not much use in future.
Oh well, if this is the order of things and your second name is Santa :D I'll sit here patiently. Forget my last request.