Find at tab location

Discuss and share scripts and script files...
Post Reply
Joso
Posts: 95
Joined: 06 Apr 2010 14:13

Find at tab location

Post by Joso »

This just does what I think Xy should do on it's own. - Opens the Find Files dialog - resets all filters and puts the current path (from the active tab) into the location field. Simple (but useful)

Code: Select all

//copy location
   #344;
   set $a, <clipboard>;
//reset filters and start a file find
   #1026;
//go to location input
   sendkeys "{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}";
   sendkeys "$a";
   #260;
PS: why is SC "sendkeys" undocumented? - Seems to be a meat and potatoes sort of function. - I'll have to experiment to figure out what sort of stuff I can send.

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: Find at tab location

Post by nas8e9 »

One possibly unnecessary step is setting the location: by enabling Auto sync, the location will always automatically be set to the current folder.

Joso
Posts: 95
Joined: 06 Apr 2010 14:13

Re: Find at tab location

Post by Joso »

sheesh - script or checkbox? Guess the checkbox will do the trick - Thanks.

Now how do I get the find dialog to automatically come up in the "content" tab?

admin
Site Admin
Posts: 66247
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find at tab location

Post by admin »

By default Ctrl+Shift+F is assigned to Open Find Files and Reset (cf Tools / CKS / Miscellaneous / Find Files / Open Find Files and Reset). Check "Auto sync" and then Ctrl+Shift+F does the whole job. Or assign Ctrl+F to the function if you want to spare a finger.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Find at tab location

Post by TheQwerty »

admin wrote:By default Ctrl+Shift+F is assigned to Open Find Files and Reset (cf Tools / CKS / Miscellaneous / Find Files / Open Find Files and Reset). Check "Auto sync" and then Ctrl+Shift+F does the whole job. Or assign Ctrl+F to the function if you want to spare a finger.
But there is no way to open Find Files and focus the "Contents" tab, which is what they're after.

admin
Site Admin
Posts: 66247
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find at tab location

Post by admin »

TheQwerty wrote:
admin wrote:By default Ctrl+Shift+F is assigned to Open Find Files and Reset (cf Tools / CKS / Miscellaneous / Find Files / Open Find Files and Reset). Check "Auto sync" and then Ctrl+Shift+F does the whole job. Or assign Ctrl+F to the function if you want to spare a finger.
But there is no way to open Find Files and focus the "Contents" tab, which is what they're after.
Aah, arg, yes, there is no way.

Joso
Posts: 95
Joined: 06 Apr 2010 14:13

Re: Find at tab location

Post by Joso »

Aah, arg, yes, there is no way.
caminante no hay camino, se hace camino al andar (Traveler - there is no way. The way is made by going)

I'm sure this is a temporary condition. And what's the deal about "sendkeys"? - are there other undocumented SC functions?

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Find at tab location

Post by SkyFrontier »

In case you haven't seen this by any chance (and for future reference, too), Stefan wrote an interesting article here that's a sort of "undocumented help on undocumented command, unofficial version".
Also, at the New User's Reference Guide, attachment xyPlorer_NewUsersGuide_pt2.rar, you'll find a Tricks_Hidden_UndocFeats.txt that covers some of these stuff, right out of History.txt. It's pretty outdated, but if you want more of them, PM me and I'll be glad to send you more (raw) links where I found stuff like that, when traveling thru forum.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply