Skip to content

Commit 52e91c0

Browse files
committed
Merge branch 'develop'
- Clear hotring buffer after each match
2 parents fe97c60 + c89b497 commit 52e91c0

5 files changed

Lines changed: 104 additions & 99 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ Each definition line in this file should be an AutoHotKey hotstring definition m
5454

5555
`<keys>` is the sequence you want to type, and `<repl>` is the character or string you want to replace it with. For example, `::qq::cp("Foo")` can be used to replace `qq` with `Foo`.
5656

57-
- The key sequence follows the usual AutoHotKey rules, so if it contains any character with a special meaning to AutoHotKey, like `^`, that character needs to be escaped with a backtick. For example, the included sequence for `ĥ` (h with circumflex) is defined as `` `^h ``, but you would only need to type `^h` to trigger the replacement.
57+
- The following characters in a key sequence need to be escaped with a backtick (`` ` ``):
58+
- Any backtick
59+
- A colon at the end of the sequence
60+
5861
- Key sequences are not limited to two characters.
5962
- The replacement must look exactly like the above, as an argument passed to the function `cp()`.
6063
- Do not add any hotstring modifiers between the first two colons.

assets/help.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,14 @@ <h2 id="custom-keys">Custom Keys</h2>
113113
</p>
114114
<ul>
115115
<li>
116-
The key sequence follows the usual AutoHotKey rules, so if it contains
117-
any character with a special meaning to AutoHotKey, like
118-
<code>^</code>, that character needs to be escaped with a backtick.
119-
For example, the included sequence for <code>ĥ</code> (h with
120-
circumflex) is defined as <code>`^h</code>, but you would only need to
121-
type <code>^h</code> to trigger the replacement.
116+
<p>
117+
The following characters in a key sequence need to be escaped with a
118+
backtick (<code>`</code>):
119+
</p>
120+
<ul>
121+
<li>Any backtick</li>
122+
<li>A colon at the end of the sequence</li>
123+
</ul>
122124
</li>
123125
<li>Key sequences are not limited to two characters.</li>
124126
<li>

compose.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
;@Ahk2Exe-ExeName compose-keys
77
;@Ahk2Exe-SetCopyright ©2026
88
;@Ahk2Exe-SetDescription Compose Keys
9-
;@Ahk2Exe-SetVersion 2.2.1
9+
;@Ahk2Exe-SetVersion 2.2.2
1010

1111

1212
; Local assets

hotstring.ahk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ ResetState() {
4949

5050

5151

52-
; Trigger inside words; replace immediately; case-sensitive; no auto-backspace; execute function
53-
#Hotstring ? * c b0 x
52+
; Trigger inside words; replace immediately; case-sensitive; no auto-backspace; execute function; clear buffer
53+
#Hotstring ? * c b0 x z
5454

5555
; Main list of character replacements, usually consisting of 2-character triggers,
5656
; followed by a call to the cp() function with the replacement character

0 commit comments

Comments
 (0)