Goto Sibling

Discuss and share scripts and script files...
Post Reply
sheeeple
Posts: 13
Joined: 08 Aug 2016 17:31

Goto Sibling

Post 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
Attachments
GotoSibling.xys
v1.11 (LATEST!)
(6.78 KiB) Downloaded 254 times
GotoSibling.xys
v1.1
(6.38 KiB) Downloaded 190 times
Last edited by sheeeple on 11 Aug 2016 15:15, edited 2 times in total.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Goto Sibling

Post 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:
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Goto Sibling

Post by highend »

I've added it to: Overview of existing scripts
viewtopic.php?f=7&t=12509

in: Navigation, Tree & Custom Menu Additions
One of my scripts helped you out? Please donate via Paypal

sheeeple
Posts: 13
Joined: 08 Aug 2016 17:31

Re: Goto Sibling

Post 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.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Goto Sibling

Post 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.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Goto Sibling

Post 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.]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

sheeeple
Posts: 13
Joined: 08 Aug 2016 17:31

Re: Goto Sibling

Post 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.

Post Reply