Session Manager 0.1 to 0.3.9+

Talk about add-ons and extension development.
Locked
Peng
Posts: 778
Joined: November 9th, 2004, 2:31 pm
Location: Central Florida
Contact:

Post by Peng »

Hey, would you mind separating each 0.3.7.x version in the revisions list, so I can know what the changes in each one are without copying the list when each version is released to see the differences?

(Note that that's in a "I really don't want to bother you, but..." voice, not a "hey, dumbass, ..." voice.. :) )
Hug Peng
(aka Matt Nordhoff)
Check out: Adblock Plus | FoxClocks | OpenBook
Lost User 59366
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Lost User 59366 »

Thanks for the code!!! I will try it.

Re my question on flush/delete all---my problem, I had not fully understood the use/capabilities of the popup. The ability it already there.
User avatar
dougeeebear
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Re: Feature request

Post by dougeeebear »

zeniko wrote:
tjztzu wrote:1. Ability to right click or otherwise directly perform an operation on a saved session or tab rather than having to open the separate window.)

For all those who really want this, I've prepared some lines to be added to your userChrome.js - get them at the Download section in the first post (just note that that code isn't as well tested and might not be as well supported).

Would be nice if it worked with SM version 0.3.3.
old zeniko
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Re: Feature request

Post by old zeniko »

Peng wrote:would you mind separating each 0.3.7.x version in the revisions list

Done.
dougeeebear wrote:Would be nice if it worked with SM version 0.3.3.

It sure would be. But I hope you don't expect me to make it work with an out-dated (and buggy) version... ;-)
User avatar
dougeeebear
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post by dougeeebear »

zeniko wrote:It sure would be. But I hope you don't expect me to make it work with an out-dated (and buggy) version

Nope, I don't :)
Last edited by dougeeebear on March 28th, 2006, 2:24 pm, edited 1 time in total.
Lost User 59366
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Lost User 59366 »

Re: the numbered list. In tabbrowser extensions the closed/saved sessions each have an ordinal number e.g.:

1. <t,d> session 3/37a
2. <t,d> crashed session
3. <t,d> mozillzine forums

.. and so on.

One can select an item by either clicking on it or by entering its number with the keybd.
Peng
Posts: 778
Joined: November 9th, 2004, 2:31 pm
Location: Central Florida
Contact:

Post by Peng »

zeniko wrote:
Peng wrote:would you mind separating each 0.3.7.x version in the revisions list

Done.


Cool, thanks. :)

tjztzu wrote:Re: the numbered list. In tabbrowser extensions the closed/saved sessions each have an ordinal number e.g.:

1. <t,d> session 3/37a
2. <t,d> crashed session
3. <t,d> mozillzine forums

.. and so on.

One can select an item by either clicking on it or by entering its number with the keybd.


SM already does that. :?

/me quickly closes the other window that was opened.
Hug Peng
(aka Matt Nordhoff)
Check out: Adblock Plus | FoxClocks | OpenBook
Lost User 59366
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Lost User 59366 »

Duh uh, don't know how I missed that! (older version?)
Lost User 59366
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Lost User 59366 »

Well... no duh uh, I wasn't blind! I was mistaking the restore tabs function from another ext as being part of session manager.
User avatar
Will Pittenger
Posts: 620
Joined: April 3rd, 2005, 6:10 pm
Location: Morton, IL

Post by Will Pittenger »

Is Session Manager compatible with Tab Mix+? That extension's ability to restore sessions is buggy squared.
Will Pittenger
Peng
Posts: 778
Joined: November 9th, 2004, 2:31 pm
Location: Central Florida
Contact:

Post by Peng »

Will Pittenger wrote:Is Session Manager compatible with Tab Mix+? That extension's ability to restore sessions is buggy squared.


I have no conflicts with them, even with the TMP session manager enabled (I didn't have TMP save the session on shutdown or open one on startup, though).
Hug Peng
(aka Matt Nordhoff)
Check out: Adblock Plus | FoxClocks | OpenBook
User avatar
Will Pittenger
Posts: 620
Joined: April 3rd, 2005, 6:10 pm
Location: Morton, IL

Post by Will Pittenger »

The bugs I mentioned involve recreating the tabs as they were accurately. TabMix+ will forget tabs, declare FF crashed when it did not, or restore tabs to the incorrect point in their history. It is unacceptable. I might as well turn it off for all the good it does me.
Will Pittenger
old zeniko
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by old zeniko »

Will Pittenger wrote:Is Session Manager compatible with Tab Mix+? That extension's ability to restore sessions is buggy squared.

onemen just recently told me that he'll try to improve TMP's session handling capacity by leveraging some of Crash Recovery/Session Manager's code. Until that point, Session Manager contains some minor hacks to make it work with Tab Mix Plus (last tested with TMP 0.3.0.3).

@dougeeebear: I've updated the script linked from the first post to hide the menu before displaying the Rename dialog. I was not able to reproduce the other issue you mentioned.

And I've converted the above mentioned hack to strip all tab history before saving sessions into a userChrome.js snippet. <a href="data:text/javascript,%2F*%20strips%20all%20tab%20history%20from%20saved%20sessions%20*%2F%0A%0AgSessionManager.removeTabHistory%20%3D%20function(aState)%20%7B%0A%09return%20aState.replace(this.mOneTabRE%2C%20function(%240%2C%20%241)%20%7B%0A%09%09var%20data%20%3D%20%240.split(%22%5Cn%5Cn%22)%3B%0A%09%09if%20(%2F%5Eindex%3D(%5Cd%2B)%2Fm.test(data%5B0%5D))%0A%09%09%7B%0A%09%09%09var%20index%20%3D%20RegExp.%241%3B%0A%09%09%09data%5B0%5D%20%3D%20data%5B0%5D.replace(%2F%5E(index%3D)%5Cd%2B%2Fm%2C%20%22%2411%22)%3B%0A%09%09%09return%20data.filter(function(aEntry%2C%20aIx)%20%7B%0A%09%09%09%09var%20header%20%3D%20%22%5BWindow%22%20%2B%20%241%20%2B%20%22.Entry%22%20%2B%20index%3B%0A%09%09%09%09return%20aIx%20%3D%3D%200%20%7C%7C%20aEntry.indexOf(header%20%2B%20%22%5D%22)%20%3D%3D%200%20%7C%7C%20aEntry.indexOf(header%20%2B%20%22.%22)%20%3D%3D%200%3B%0A%09%09%09%7D).join(%22%5Cn%5Cn%22).replace(%2F%5E(%5C%5BWindow%5Cd%2B%5C.Tab%5Cd%2B%5C.Entry)%5Cd%2B%2Fgm%2C%20%22%2411%22)%3B%0A%09%09%7D%0A%09%09return%20%240%3B%0A%09%7D)%3B%0A%7D%3B%0A%0Aeval(%22gSessionManager.save%20%3D%20%22%20%2B%20gSessionManager.save.toString().replace(%2Fthis%5C.getSessionState%5C(%5B%5E)%5D%2B%5C)%2F%2C%20%22this.removeTabHistory(%24%26)%22))%3B%0A">Get it here.</a>
User avatar
dougeeebear
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post by dougeeebear »

Thanks, zeniko.

Here's an addition I made to the TMP style context-menu "hack" to bring up a delete confirmation dialog.

Code: Select all

gSessionManager.__remove = function(aSession) {

// add these two lines to confirm delete
     var confirmDelete = window.confirm('Are you sure you want to delete [ ' + (aSession) + ' ] ?');
     if(!confirmDelete) return;

   this.remove(aSession);
};

I'm still trying to figure out how to remove the filename's ".session" extension from the confirmation dialog.
User avatar
dougeeebear
Posts: 548
Joined: September 15th, 2005, 4:17 pm

Post by dougeeebear »

zeniko,
Would it be a big job to to create a userChrome.js script that would force undo closed windows to replace the existing window without the use of [Ctrl + Shift]?

And another question on the TMP style menu script..

Using the selection "Append To Current Session" opens it in a background tab.
Is it possible to force it to open in a foreground tab instead?
Last edited by dougeeebear on April 2nd, 2006, 10:55 am, edited 1 time in total.
Locked