Anyway to make textpad auto-complete often used keystrokes?

General questions about using TextPad

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

Post Reply
briantech
Posts: 2
Joined: Tue Oct 16, 2007 6:11 pm

Anyway to make textpad auto-complete often used keystrokes?

Post by briantech »

I'm not familiar at all with how macros work or even what they are, but is it possible to create a macro that will auto complete things for me? I saw this feature in Textmate for apple's OSX operating system and it was really nice.

For example, in all my HTML markup, there are interspersed lines of scripting code that are bound by open and closed tags, like so:

<% this_is_some_ruby_code :ohyeah %>

Is there anyway so that it detects when I type the sequence "<%" and automatically inserts the closing tag, "%>" after it and then positions my cursor inbetween them, ready to accept whatever i'm about to type?
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

Add that to your clip library.

You can enter text, and clip library will put tags around it at both ends if you want. Lots of hidden power there for auto completion. Instead of insert, you can replace. So, type "qq". Select "qq", click on item in Clip Library, and you can replace with the "qq" with the Gettysburg Address.
Hope this was helpful.............good luck,
Bob
briantech
Posts: 2
Joined: Tue Oct 16, 2007 6:11 pm

Post by briantech »

Can you explain a bit further? I kind of see what you're talking about, but that would require me to type something first, then use the mouse to select it, then open the clip library, find the clip, and double click it.

Thats more of a pain than simply typing the end tag myself.
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

A few mouse clicks does not seem exceesive work to me, but everything is relative. And perhaps my example was bad.

Here is another example ..... I have a clip named "Address". I just double click on "Address" in the library and my full business address, four lines of text, are inserted automatically at the position of my cursor.

Another example ....I double click on "NoPost" and the following text comes up for me to paste into a forum that I moderate:
=============================
POST NO MORE

YOUR POSTINGS ARE BEING DELETED
VIOLATION OF TOS

YOUR ISP IS BEING NOTIFIED THAT YOU ARE A SPAMMER
==============================



Another example.... I select multiple lines in TextPad, and double click on "CommentBlock" and I get
/* Line1
Line2
Line3
Line4
*/
that comments all the lines I selected. the "/*" and "*/" are inserted around the selection automatically, just like the tags you mentioned.

The processes are 1-Select, 2-Double click library selection.

Check out the Help for Clip Library - Overview. And there are clips available from other users that you may find useful.
Hope this was helpful.............good luck,
Bob
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

I find any number of mouse clicks excessive when performing such a keyboard-based task as text editing.

But you can use the clip library without using the mouse.
kitimat
Posts: 45
Joined: Tue Jul 20, 2004 5:44 pm

Post by kitimat »

Textpad does not support autocomplete as the term is usually used. There are some workarounds.


1) clip library.
This comes built in to Textpad. Try it first.

2) clipboard extender programs
These will enable you to store clips as well. Textpad has some limited built-in functionality here. I use a program called Clipmate.

3) keyboard macro programs.
I use keyboard macro programs for adding my most commonly used text. It's faster than a mouse. I wrote a little keyboard macro that will, when I press the correct key sequence, take whatever text is currently in the clipboard and "pasting" it via the keyboard into whatever app current has focus. I use it a lot for "pasting" into old apps that don't support windows style cut and paste.

lots of possibilities

Kitimat
Post Reply