Page 1 of 1

Goto Sibling

Posted: 08 Aug 2016 17:57
by sheeeple
Goto Sibling Script
Version: 1.11;
By: Sheeeple
Goes to the next/previous sibling of the current directory.
Because going 'up one level', pressing an arrow key and pressing enter is a pain in the ***.
Usage: Extract to <xyscripts> then map to the keyboard using UDC.
ex:
Alt+Up => load("GotoSibling", "sibling_prev");
Alt+Down => load("GotoSibling", "sibling_next");
Ctrl+Alt+Up => load("GotoSibling", "sibling_first");
Ctrl+Alt+Down => load("GotoSibling", "sibling_last");

Change log:

Code: Select all

1.11 Pause new thumbnail generation during script execution. 
1.1  Wrap around instead of beep sound, added Goto First/Last sibling.
1.0  initial

Re: Goto Sibling

Posted: 09 Aug 2016 07:38
by bdeshi
sheeeple wrote:... Can't move immediately after going into a folder that is generating thumbnails ...
Using the setting SC as `setting "CacheThumbsReadOnly", 1;` ought to have helped. But apparently this particular option toggle isn't registered properly unlike [most] other SC setting options.
Also, may I suggest a subtle statusbar message instead of beeping?

Quite useful little script by the way. :tup:

Re: Goto Sibling

Posted: 09 Aug 2016 07:45
by highend
I've added it to: Overview of existing scripts
viewtopic.php?f=7&t=12509

in: Navigation, Tree & Custom Menu Additions

Re: Goto Sibling

Posted: 09 Aug 2016 16:54
by sheeeple
SammaySarkar wrote:
sheeeple wrote:... Can't move immediately after going into a folder that is generating thumbnails ...
Using the setting SC as `setting "CacheThumbsReadOnly", 1;` ought to have helped. But apparently this particular option toggle isn't registered properly unlike [most] other SC setting options.
Also, may I suggest a subtle statusbar message instead of beeping?

Quite useful little script by the way. :tup:
Thanks. I tried the statusbar message before but I can't get it to show up. I think its quickly overwritten by the "UDC: Run Script | <caption>" thing after the script ends. So I'm thinking of making it wrap around instead.

Re: Goto Sibling

Posted: 09 Aug 2016 19:53
by bdeshi
sheeeple wrote:... I tried the statusbar message ... I think its quickly overwritten by the "UDC: Run Script | <caption>" thing after the script ends. ...
boo :ghost: - you're right, ofcourse.

Re: Goto Sibling

Posted: 11 Aug 2016 14:09
by bdeshi
With v17.00.0101, this should alleviate the delay due to thumbs creation at least.

Code: Select all

= FUNCTION Go($path = <curpath>, $direction = 1, $startAt = 0)
= {
+     setting "CacheThumbsReadOnly", 1; // pause new thumb gen before changing dir
=     $sibling = GetValidSibling($path, $direction, $startAt);
Normal behavior returns after the script exits.


[ed. noticed script was updated.]

Re: Goto Sibling

Posted: 11 Aug 2016 15:05
by sheeeple
SammaySarkar wrote:With v17.00.0101, this should alleviate the delay due to thumbs creation at least.

Code: Select all

= FUNCTION Go($path = <curpath>, $direction = 1, $startAt = 0)
= {
+     setting "CacheThumbsReadOnly", 1; // pause new thumb gen before changing dir
=     $sibling = GetValidSibling($path, $direction, $startAt);
Normal behavior returns after the script exits.


[ed. noticed script was updated.]
Thanks for the tip! :D I'll update the script.