Page 1 of 1

Allow to open a tab only showing tagged files or folders

Posted: 07 Sep 2010 00:44
by paul0
I am not sure how to open a tab only showing tagged files or folders?

If we can use the content of tag.dat, we can save time to open it without searching.

Re: Allow to open a tab only showing tagged files or folders

Posted: 07 Sep 2010 01:55
by SkyFrontier
Can't say this is what your looking for, but you may want to try this:
Go to (CTRL+SHIFT+F9) Customize Toolbar and locate a button named Find By Tag. Click on it and then click the "add" button. On the right pane, you may want to arrange it up/down to have it in a position that fits your need better.
This will lightning fast locate anything you have tagged with XY within the entire machine.

Re: Allow to open a tab only showing tagged files or folders

Posted: 07 Sep 2010 02:39
by paul0
Thank you. It's almost there. I'd lik to find all files/folders tagged. The bottom ONLY allow to find files/folders by none/one type (color) of tags, but not of the combinations

Re: Allow to open a tab only showing tagged files or folders

Posted: 07 Sep 2010 02:51
by SkyFrontier
Try this:
Get the names of your tags and edit following the pattern:

Code: Select all

*?tag:"Contact Soon";"Great!";"Red";"Green";"Urgent"; /r
and so on.

EDIT: In case you don't know (and to the ones who stumble upon this on that situation), you'll need to assign that pattern as a Custom Toolbar Button or paste it directly into the Address Bar.

Re: Allow to open a tab only showing tagged files or folders

Posted: 07 Sep 2010 02:58
by SkyFrontier
Side note: this will search for ALL tagged folders or files you have on your machine regardless their location. It just needs to have the correct tags names to work (do not make confusion with the COLORS themselves - the code look for the TEXT you can edit via (F9) Configuration > Tags > Customize Tag Names and Colors > Edit (or slow double click on the name itself).

Re: Allow to open a tab only showing tagged files or folders

Posted: 07 Sep 2010 10:00
by admin
Run this through the address bar:

Code: Select all

*?tag:*

Re: Allow to open a tab only showing tagged files or folders

Posted: 07 Sep 2010 14:07
by paul0
admin wrote:Run this through the address bar:

Code: Select all

*?tag:*
This works perfectly.

Re: Allow to open a tab only showing tagged files or folders

Posted: 16 Oct 2010 21:19
by SkyFrontier

Code: Select all

*?tag:*
How can I assign this pattern to a CTB?

Re: Allow to open a tab only showing tagged files or folders

Posted: 16 Oct 2010 21:34
by serendipity
SkyFrontier wrote:

Code: Select all

*?tag:*
How can I assign this pattern to a CTB?
::goto "*?tag:*";

Re: Allow to open a tab only showing tagged files or folders

Posted: 16 Oct 2010 21:46
by SkyFrontier
I find it weird but it did the job. Thanks, Serendipity!

When trying to solve the problem I came up with this:

Code: Select all

   copytext "*?tag:*";
   focus a;
   #202;
   sendkeys"{enter}";
-but it just pops a dialog saying "nothing to paste!".
At the CKS Config (SHIFT+F9), Edit > Paste says:
Paste items from clipboard into Tree, List, or Catalog.
Is there any problem having support to Address Bar, too?

Re: Allow to open a tab only showing tagged files or folders

Posted: 16 Oct 2010 23:19
by serendipity
SkyFrontier wrote:I find it weird but it did the job. Thanks, Serendipity!

When trying to solve the problem I came up with this:

Code: Select all

   copytext "*?tag:*";
   focus a;
   #202;
   sendkeys"{enter}";
-but it just pops a dialog saying "nothing to paste!".
At the CKS Config (SHIFT+F9), Edit > Paste says:
Paste items from clipboard into Tree, List, or Catalog.
Is there any problem having support to Address Bar, too?
Problem is #202;
Its meant for copy/pasting files, not clipboard text.
Try this:

Code: Select all

   copytext "*?tag:*";
   focus a;
   sendkeys "^{v}";
   sendkeys"{enter}";
Tip: ^ means ctrl. I think shift is + and alt is %

But for what you are trying much better would be:

Code: Select all

   copytext "*?tag:*";
   focus a;
   goto <clipboard>;


Re: Allow to open a tab only showing tagged files or folders

Posted: 17 Oct 2010 00:36
by SkyFrontier
Goto <clipboard>.
Why not, if ::goto "*?tag:*"; is allowed?
The first thing that occurred me was the "CTRL+V" thing, then I realized that I couldn't - but you opened the track with the sendkeys "^{v}" trick.
XY amazes me more each and every day...
Thank you again, Serendipity!
Here I posted a hint on having such feature in extended ways (being able to differentiate favorite files and folders), and the "folders" version plays nicely with the propagate files script. I'm still wondering if I'm missing something (there's already such a thing, etc), but so far all of this is helping me much with a massive sync/backup task I'm currently involved with (being the lack of support to background processing of backups the only deal breaker I'm unable to circumvent... :| ).