| View previous topic :: View next topic |
| Author |
Message |
jack
Joined: 04 Sep 2004 Posts: 74 Location: UK
|
Posted: Tue Sep 07, 2004 10:44 am Post subject: dynamic abbreviations |
|
|
one of my all time favourite emacs function is dynamic abbreviations...
i type a few letters of a word and press the key. emacs searches back through the buffer, looking for a word that begins with what i entered. when it finds one, it replaces my few letters with that word. if i don't like that one, i press the key again and emacs looks back further...
it would not be possible for autohotkey to do this, but if it did have some memory of the last few hundred words entered, it might be able to mimic some of this?
jack
you know where you are with a one-button mouse |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Sep 07, 2004 11:03 am Post subject: |
|
|
That does sound like a cool feature. I imagine it would be better to favor the suggestion of long words over short ones. When showing the suggested replacements, I guess it could either offer a tooltip menu of choices, or dynamically backspace and replace the name repeatedly until you settle on one or it runs out of choices.
I'll add it to the to-do list. |
|
| Back to top |
|
 |
jack
Joined: 04 Sep 2004 Posts: 74 Location: UK
|
Posted: Tue Sep 07, 2004 2:31 pm Post subject: |
|
|
excellent!
yes, as to the exact mechanism, i assume it's a case of deciding which is the most usable.
thanks
jack
dangerously dependent on his charisma |
|
| Back to top |
|
 |
jack
Joined: 04 Sep 2004 Posts: 74 Location: UK
|
Posted: Tue Sep 07, 2004 2:35 pm Post subject: |
|
|
maybe it would be possible to copy a load of text into a variable that autohotkey could also search when looking for a match?
many documents use the same words again and again (and code to, for that matter), so you could copy a load of text into a variable to initialise the dynamic abbreviations.
jack
who put the tribbles in the quadrotriticale? |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Tue Sep 07, 2004 2:59 pm Post subject: |
|
|
| Good point, thanks. By the way, I think beardboy or someone asked for feature similar to this, perhaps referring to it as "auto-complete". It seemed too ambitious at the time, but now it seems like something simpler than a full blow auto-complete might be feasible. |
|
| Back to top |
|
 |
|