File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ With a script tag:
37
37
- ` keys` is a space separated list of menu activation keys
38
38
- ` multiword` defines whether the expansion should use several words or not
39
39
- you can provide a space separated list of activation keys that should support multi-word matching
40
+ - ` suffix` is a string that is appended to the value during expansion, default is a single space character
40
41
41
42
## Events
42
43
Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ class TextExpander {
125
125
if ( canceled ) return
126
126
127
127
if ( ! detail . value ) return
128
- const value = `${ detail . value } `
128
+ const suffix = this . expander . getAttribute ( 'suffix' ) ?? ' '
129
+ const value = `${ detail . value } ${ suffix } `
129
130
130
131
this . input . value = beginning + value + remaining
131
132
You can’t perform that action at this time.
0 commit comments