Select as You Type, Paste and Select

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Select as You Type, Paste and Select

Post by TheQwerty »

admin wrote:1) TAF has its own match settings that are independent of how Flat Select (always "Match anywhere" and Name column) works.
Right but this command shouldn't care about any of that and is actually separate from Flat Select.

You know which items are are highlighted/spotted, correct?
This command would just select those items.
Analogous to "Select if yellow".

Pre-Post EDIT: Guess we could do this ourselves with this new Get gift. ;)
admin wrote:2) Too overloaded (even) for my taste.
Drats... would save quite some time.
Guess my next wish is going to have to be smarter auto-completing of paths for aliases. :whistle:

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

Re: Select as You Type, Paste and Select

Post by admin »

TheQwerty wrote:Pre-Post EDIT: Guess we could do this ourselves with this new Get gift. ;)
Yep. :)

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: Select as You Type, Paste and Select

Post by Enternal »

I don't know if this feature is the cause for the problem but I have been having issues with Paste & Highlight for several betas now.

Stef123

Re: Select as You Type, Paste and Select

Post by Stef123 »

TheQwerty wrote: Analogous to "Select if yellow".

Pre-Post EDIT: Guess we could do this ourselves with this new Get gift. ;)
Intriguing. This would allow to press a shortcut and get all the yellow finds selected, right? If so, how would I go about setting it up?

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

Re: Select as You Type, Paste and Select

Post by TheQwerty »

Stef123 wrote:
TheQwerty wrote: Analogous to "Select if yellow".

Pre-Post EDIT: Guess we could do this ourselves with this new Get gift. ;)
Intriguing. This would allow to press a shortcut and get all the yellow finds selected, right? If so, how would I go about setting it up?
The simplest form is to create a Go To UDC with location:

Code: Select all

>>><get SpotPatterns>
Then you can easily assign it a keyboard shortcut or use the #14?? command id to call it from a CTB, alias, etc.

Depending on where you use it you may have to explicitly call it within a goto SC so if the above doesn't work try:

Code: Select all

goto(">>><get SpotPatterns>");
Note however, that once either is run the spotting is removed so running the script again will resolve <get SpotPatterns> to an empty string and thus deselect all, and a third or more times will continue to do nothing until you have spotted something new.

Stef123

Re: Select as You Type, Paste and Select

Post by Stef123 »

Many thanks. This works exactly as I hoped it would. :tup:
Added it to my CTB menu of select/filter methods that out-smart other file managers by leaps and bounds, literally.
It also out-smarts my lookup & learn strategies, the help file doesnt yield results for "spotpattern", nor am I able to replace "goto" by "filter":

Code: Select all

filter(">>><get SpotPatterns>");
Not quite as easy as my naive thought patterns had expected, can you spot me a helping hand?

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

Re: Select as You Type, Paste and Select

Post by admin »

Like this:

Code: Select all

filter("<get SpotPatterns>");
BTW, this is also nice, kind of Paste-and-Select:

Code: Select all

>>><clipboard>

Stef123

Re: Select as You Type, Paste and Select

Post by Stef123 »

:biggrin: Bound to become a classic in my repertoire of filtering and selecting. :biggrin: Thanks.

The clipboard stuff has not seeped in yet, it still lingers at the outer head-scratching stage :?
Meant to paste the clipboard and select it, right? But what's the expected syntax in a UDC or CTB?

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

Re: Select as You Type, Paste and Select

Post by admin »

You are on a website about megalodon. And you quickly want to select all megalodon files in your list of prehistoric animal files.

So you copy the string "megalodon" from the website to the clipboard, then you click your custom Paste-Text-and-Select button (or Catalog item, etc) which does this:

Code: Select all

goto ">>><clipboard>";
Yes, there are other ways to do this already. Now we have a new one. :)

(goto is the scripting way to say: run this through the address bar)

Stef123

Re: Select as You Type, Paste and Select

Post by Stef123 »

Nice example. It fired right through to the remote regions of my reptilian brain.
admin wrote:goto is the scripting way to say: run this through the address bar)
THIS is one behemoth piece of useful information. Clears the path out of several confusing issues I've been stuck with. Also reassures me that the GoTo box is indeed equivalent to the address bar.

Seems to be my day for climbing the learning curve. This kind of "silent operation" - without actually showing the interface for it - how would I turn it on at will? For commands that don't have it built-in like GoTo. My intention is something like this:
Interface OFF
... do all kinds of stuff, save as paperfolder, but toggle it off
Interface ON

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

Re: Select as You Type, Paste and Select

Post by admin »

Difficult. The file list is the center piece of this machine, the heart. You can bypass it sometimes, but not every time.

Stef123

Re: Select as You Type, Paste and Select

Post by Stef123 »

Well, "sometimes" is a good start, it may suffice my needs. Couldn't find anything in SC help. Is there a command to toggle visible interface actions on/off?

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

Re: Select as You Type, Paste and Select

Post by admin »

No. :)

Post Reply