Welcome Guest.   Make a donation to an author on the site August 01, 2014, 02:55:00 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the full one-year retrospective report on DonationCoder.com.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Creating a virtual clip group in CHS to show you all clips with URLs in them  (Read 5120 times)
mouser
First Author
Administrator
*****
Posts: 33,184



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: June 25, 2006, 08:31:11 PM »

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:



The key here is to check the "Virtual Folder" checkbox and fill in this text:
[copy or print]
(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.
Logged
mouser
First Author
Administrator
*****
Posts: 33,184



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: June 25, 2006, 08:33:25 PM »

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.
Logged
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: October 19, 2006, 10:30:32 PM »

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.

Logged

mouser
First Author
Administrator
*****
Posts: 33,184



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: October 19, 2006, 10:40:44 PM »

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.
Logged
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: October 19, 2006, 10:45:43 PM »

Quote
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?
Logged

mouser
First Author
Administrator
*****
Posts: 33,184



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: October 19, 2006, 11:33:38 PM »

it already does say that
but you could change

[copy or print]
(Lower(ClipText) LIKE '%http%') OR (Lower(ClipText) LIKE '%www.%')

to

[copy or print]
(Lower(ClipText) LIKE '%http://%')

that will probably reduce the false positives.

Logged
lanux128
Global Moderator
*****
Posts: 6,087



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: October 19, 2006, 11:42:22 PM »

it already does say that
oops! embarassed sorry. you must be thinking how did i end up with these nim-wits.. anyway, thanks for the tip. thumbs up
Logged

mouser
First Author
Administrator
*****
Posts: 33,184



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: October 20, 2006, 02:39:09 AM »

nah i love you guys, you always come up with good ideas i didn't think of before.
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.032s | Server load: 0.01 ]