Search found 40 matches

by trids
Mon Apr 11, 2011 8:09 am
Forum: General
Topic: custom tool - Passing selected text to/from ext tools
Replies: 2
Views: 1307

Another way of doing this with $CLIP (with or without AutoIt) is to use the Unxutils port of to Windows of some brilliant unix file utilities ..
http://unxutils.sourceforge.net/

Just copy pclip.exe from the above collection to your System32 folder (or someplace that's already on your $path). Here ...
by trids
Wed Feb 10, 2010 8:33 am
Forum: General
Topic: Multi Search-n-Replace! Possible through lists???
Replies: 4
Views: 1309

Or you can use the commandline utility, sed from http://gnuwin32.sourceforge.net/packages/sed.htm as follows .. Save the following script as mysed.sed:

s/String01/String_A/g
s/String02/String_B/g
s/String03/String_C/g
s/String04/String_D/g
s/String05/String_E/g

Then run the following command at ...
by trids
Fri Jan 08, 2010 7:59 am
Forum: General
Topic: Macro containing Find in Files
Replies: 7
Views: 2596

Yep, I agree that a new "all open files" checkbox would be very useful on the "find in files" dialog.

Perhaps it might also be possible to provide a list of all open files by way of an environment variable, which custom tools can access? Helios? Maybe a tab-delimited list of fully qualified ...
by trids
Wed Dec 02, 2009 1:37 pm
Forum: General
Topic: Macro containing Find in Files
Replies: 7
Views: 2596

There is a very cool solution for this, which i use countless times each day. Check it out ..
http://forums.textpad.com/viewtopic.php?p=11264#11264

It uses grep, a free commandline utility .. download link is in that post. Best of all, no need for a macro

:wink:
by trids
Wed Dec 02, 2009 1:20 pm
Forum: General
Topic: Keyboard shortcuts - is there a limit?
Replies: 4
Views: 1624

Thanks for the reply, woho

After further investigation, it looks like the registry is not where the problem/solution lies after all. According to the helpfile, keyboard shortcuts are stored in the CUSTOM.BND file .. mine is 2665 bytes, but i can't decipher it.

But wait, how's this for bizarre ...
by trids
Wed Dec 02, 2009 10:51 am
Forum: General
Topic: Keyboard shortcuts - is there a limit?
Replies: 4
Views: 1624

Keyboard shortcuts - is there a limit?

Is there some limit to the number of keyboard shortcuts that can be user-assigned?

I keep bumping my head on this problem with different versions of TP .. I'm still on version 5.2.0, but I've noticed it since about 4.7.3.

What happens is I can create a custom tool no problem, and it appears ...
by trids
Wed Dec 02, 2009 8:29 am
Forum: General
Topic: highlighting words greater than 30 characters long
Replies: 2
Views: 3077

some workarounds

There are some workarounds you could try though ..

The quickest one is to use this regular expression in the Find dialog to highlight words of more than 30 chars in length:
\<[^ \t=]{31,}\>
.. This will take you to each exception individually within the context of the document.

Taking this a ...
by trids
Wed Jul 29, 2009 3:54 pm
Forum: General
Topic: Color formatting (Unsupported syntax)
Replies: 5
Views: 1587

Can you explain why it worked. 8)

I'm guessing that TP sees "-" as a delimiter unless and until you specify that it can be part of a word.

So until you put the "-" into the Other characters in words parameter, the best TP can do is get to the "I" in "I-J-K", and look that up in your syntax file ...
by trids
Wed Jul 29, 2009 9:04 am
Forum: General
Topic: Odd Open Behavior
Replies: 2
Views: 919

Also - check your "files in document class" settings .. if it really does say ".txt" then try "*.txt" ... because i'm not experiencing the problem you described and mine says "*.txt"
by trids
Wed Jul 29, 2009 8:36 am
Forum: General
Topic: custom tool - Passing selected text to/from ext tools
Replies: 2
Views: 1307

You need to somehow gain access to the clipboard from your script, and then decide whether it's being called from TextPad or EditPad.

I use $Clip to pass multiline selections to scripts written in AutoIt 3 , where I save the clipboard to a file and send the results back in a variety of ways ...
by trids
Wed Jul 29, 2009 8:13 am
Forum: General
Topic: Color formatting (Unsupported syntax)
Replies: 5
Views: 1587

Try removing "-" from the OperatorChars for the document class.

And try with and without a "-" in the Other characters in words parameter of the Syntax tab of the document class.
by trids
Tue Mar 10, 2009 2:18 pm
Forum: HOW-TOs
Topic: Cool Tools to use with TextPad - Visual File Compare
Replies: 6
Views: 30523

Re: Cool Tools to use with TextPad - Visual File Compare

grindy wrote: Are the quotation marks actually used?
thx
Yes .. otherwise any spaces in the path-or-filename will cause problems
:wink:
by trids
Tue Mar 10, 2009 2:00 pm
Forum: General
Topic: Toolbar customisations are not saved in 5.20
Replies: 5
Views: 576

Yay - Success!

Ok, here's what I did..

Using ProcessMonitor from Sysinternals, I listened in to what TP was doing while starting up. In the results, i searched for config.xml that you mentioned, and discovered that instead of looking for it in a folder called.. C:\Documents and Settings\User name ...
by trids
Tue Mar 10, 2009 11:51 am
Forum: General
Topic: Toolbar customisations are not saved in 5.20
Replies: 5
Views: 576

Thanks - I'll give that a try. But first, it seems the shell folders are controlled by site policy. The folders are listed under the following registry keys:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
HKEY_CURRENT_USER\Software\Microsoft\Windows ...
by trids
Tue Mar 10, 2009 5:10 am
Forum: General
Topic: Toolbar customisations are not saved in 5.20
Replies: 5
Views: 576

Thanks for the response. But no, i was only running one instance.

I don't know if this is relevant, but the 5.20 install was made over an installation of 4.73 (which transition worked very smoothly by the way, thank you for preserving all my settings :wink: )

Where would the toolbar customisations ...