save 'Searches'

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
sheepdog
Posts: 3
Joined: Tue Aug 31, 2004 10:05 pm
Location: Berlin,Germany

save 'Searches'

Post by sheepdog »

I have frequently to alter some files with rather complex regex-searches.
e.g. to highlight the keys in a config file I have to separate the key from the value like

Code: Select all

allowed=abcde// 
to

Code: Select all

allowed= abcde///  
While the value could be a char/word or number and there are some other equal signs which should not be touched I have to use a term like

Code: Select all

 \([[:alpha:]]\)\(=\)\([[:digit:][:alpha:]]+\)\(///\)
Since the programs usually the spaces remove when they write to the config file I have to do the changes frquently.

In this case it would be handy if you could save a 'search' and load it from a list if you need it.

If there would be implemented such a feature it would be nice if you could also save the 'replace' . So I would have to press [F8], [Ctrl]+ [o] (for load search), highlight the wanted 'search' , press enter and [Alt]+[a] for replace all and the file is altered.

Woulld anybody like that feature, too?

sheepdog
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Until that is available, consider saving your Searches to a Search ClipLibrary.
Hope this was helpful.............good luck,
Bob
sheepdog
Posts: 3
Joined: Tue Aug 31, 2004 10:05 pm
Location: Berlin,Germany

Post by sheepdog »

Bob Hansen wrote: ClipLibrary.
Is that a special feature I do not know?

Until now I save my searches in usual textfiles in a particular folder.

sheepdog
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

View
Clip Library (Ctrl-F3)
This will pop up the Clip Library (probably on the left-hand side).

Right click the drop down box and select New Book...
It will attempt to save the book in your predefined folders location. Call it something useful like Searches.tcl

Hit the help file for all sorts of useful information about them or just open existing one (Edit) and you can pick up some of the features. One of these days I'll make an enhancement suggestion about features I think that'd make the clip library rock but until then, it's still a pretty handy thing for template/boilerplate kind of work.
I choose to fight with a sack of angry cats.
Post Reply