@@ -169,7 +169,14 @@ def line_starts_with(x: str) -> bool:
169169
170170 elif line_starts_with (':qm' ):
171171 # Handle this with regex for easier processing
172- if match := re .match (r'^:qm get (\d+)$' , line , re .IGNORECASE ):
172+ if line_equals (':qm list' ):
173+ for idx in range (16 ):
174+ if msg := intf .get_quick_msg (idx ):
175+ print (f'QM { idx } : { msg } ' )
176+ else :
177+ print (f'QM { idx } : [empty]' )
178+ continue
179+ elif match := re .match (r'^:qm get (\d+)$' , line , re .IGNORECASE ):
173180 print (intf .get_quick_msg (int (match .group (1 ))))
174181 continue
175182 elif match := re .match (r'^:qm set (\d+) (.+)$' , line , re .IGNORECASE ):
@@ -181,6 +188,9 @@ def line_starts_with(x: str) -> bool:
181188 elif match := re .match (r'^:qm (\d+)$' , line , re .IGNORECASE ):
182189 intf .autokey_quick_msg (int (match .group (1 )))
183190 continue
191+ else :
192+ print ('Unknown quick message command?' )
193+ continue
184194
185195 elif line_equals (':version' ):
186196 # Print version information
@@ -200,6 +210,10 @@ def line_starts_with(x: str) -> bool:
200210 print ('Invalid level?' )
201211 continue
202212
213+ elif match := re .match (r'^:(\d+)$' , line , re .IGNORECASE ):
214+ intf .autokey_quick_msg (int (match .group (1 )))
215+ continue
216+
203217 elif line_starts_with (':' ):
204218 # Unknown command?
205219 print ('Unknown command?' )
0 commit comments