|
KiTTY : ForumLast modification : - |
|
|
|---|---|---|
| Welcome / Recent changes / News / Forum / Download / Contacts | Edit | |
Portable Session Launcher Order
Vhati - Wed 28/01/2009 18:21:41 CET +0100
When using "savemode=dir", is there a way to manually reorder the session launcher's menu.
This can be done when KiTTY is set to be non-portable with "reload=no". "savemode=file" with "reload=no" will do it too since that uses the registry. According to kitty.c (line 505), it doesn't look possible at the moment. The folder list is built in whatever order readdir() sees them. What about a line in kitty.ini that explicitly names session ordering like you have for folders? Any sessions absent from the list could still be loaded by readdir(). Folders=Default,Those,These Sessions=Work,Home,Laptop The same logic could apply to the other savemodes as well: for each explicit name, loop through the registry to load it, then read all sessions in the registry, skipping sessions that already exist. KiTTY Version: 60.66.13 Cyd - Thu 29/01/2009 22:00:22 CET +0100
Actually it is not possible, even in savemode=registry, reload=no only means that the Launcher key is not rebuild each time kitty start. And it is the same behaviour with savemode=dir. Reload does not have anything to do with ordering.
So: This can be done when KiTTY is set to be non-portable with "reload=no" is completly false. I don't planned to add a reorder feature up to now. I'm sorry. Cyd Vhati - Tue 03/02/2009 16:43:42 CET +0100
Oops. It is possible, but I mixed up reload.
"reload=yes" with "savemode=file" allows you to explicitly set the launcher's order in kitty.sav. [HKEY_CURRENT_USER\Softwarebis.com\KiTTY\Launcher\Those] "Work"="Work" "Home"="Home" "Laptop"="Laptop" reload tells KiTTY to read the kitty.sav, write to the registry in that order, and the launcher displays them in the order it finds them in the registry. That's how I can get non-alphabetical sorting. I've just done this myself to be sure. Vhati - Tue 03/02/2009 17:01:29 CET +0100
Grr. I thought I had it.
I rearranged the order successfully several times before I posted that. I tried it a few more times to be sure of the procedure, but unsuccessfully this time. At this point I'm not sure if the kitty.sav trick is adding a "[...Launcher\Those]" section, or cutting/pasting the sessions' sections to be in a new order, or something else I missed. Whatever it was, I think in the past I may have used reload=yes to establish the order then reload=no to keep it that way. I'll keep tinkering. Vhati - Tue 03/02/2009 17:25:40 CET +0100
Okay I can play with the order consistently by editing the registry while the launcher is running.
Start the launcher. Run regedit at HKCU\Softwarebis.com\KiTTY\Launcher\Those\ - Delete the first registry value, and add it again to the end of the list. - Now it's no longer alphabetical. Click the launcher's tray icon to see the reordered list. Even with reload=no, the launcher clobbers those values however when it quits or starts. reload=yes didn't make a difference either... Vhati - Tue 03/02/2009 17:32:23 CET +0100
Ah! At last some progress.
reload behaved as expected when I put it under the ini's [Launcher] section. With reload=no, I can edit the registry, and the launcher respects the order, even after starting/quitting repeatedly. Vhati - Tue 03/02/2009 17:43:00 CET +0100
I guess that's how I did the reordering in the past.
Edit the registry manually, reload=no. I always ran KiTTY on the same box, so I forgot kitty.sav had nothing to do with it. Answer |
||
|
Wiki utilisant PumaWiki 1.0, merci aux membres de la PuTTY Team 2026/06/22 05:25 -- en -- 216.73.217.18 -- |
||