topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday December 13, 2024, 7:38 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Creating a virtual clip group in CHS to show you all clips with URLs in them  (Read 11579 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
The virtual group construction feature of CHS is powerful but complicated to use and not well documented.
Someone asked for this on the irc channel so i thought i would show how to do it here.

Suppose you want a clip group which shows you all clips containing a url..

Create a new group in the group tree, and edit it (F2), and set the values as follows:

mycaps Screenshot - 002 , 08_27_PM , Jun 25 2006.png

The key here is to check the "Virtual Folder" checkbox and fill in this text:
(Lower(ClipText) LIKE '%http:%') OR (Lower(ClipText) LIKE '%www.%') OR (Lower(ClipText) LIKE '%ftp:%')

That tells CHS that this group is constructed dynamically from all other clips that match the specified rule.

Now whenever you select that group you will see all clips from all other groups that contain http or www. or ftp:.
You could customize it as you want of course.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
in the future i will add a special flag to clips that indicate when they contain a url - that will make life a bit easier for sorting and filtering by urls.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
just tried out this potentially useful feature. but there's a problem because it captures normal sentences containing keywords such as 'http' or 'ftp'. is there way to add a rule to say that if source of capture is from browser's location bar then show in this folder.

chs-virtual-1.png

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
no but
how many times in a normal sentence are you going to type http:
you could change it to http:// if you wanted to be a bit more precise.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
how many times in a normal sentence are you going to type http:

ok, sounds logical. then how do i modify the rule to say if only starts with 'http', etc?

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
it already does say that
but you could change

(Lower(ClipText) LIKE '%http%') OR (Lower(ClipText) LIKE '%www.%')

to

(Lower(ClipText) LIKE '%http://%')

that will probably reduce the false positives.


lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
it already does say that
oops! :-[ sorry. you must be thinking how did i end up with these nim-wits.. anyway, thanks for the tip. :up:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
nah i love you guys, you always come up with good ideas i didn't think of before.