You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I've been trying to replace Autohotkey or Espanso with Kanata sequences (they've been unreliable for me).
So far I was able to put my text expansion onto a key in a layer which is close but I'm wondering if it's possible to expand a typed sequence into a string which also contains numbers directly from sequence loader mode (sldr).
I can almost get there but am running into an issue when trying to have numbers in the macro.
I can add an alias for each number as per the docs but can't use that alias in the macro when it's part of a virtualkey definition.
(defalias
1 1
2 2
3 3
working_alias (macro @1 @2 @3)
)
(defseq oid (o i d))
;; this throws an error
(defvirtualkeys oid (macro @1 @2 @3))
(deflayermap custom_layer
a @working_alias
;; entering sldr and typing oid does not work, aliases are not allowed in a macro definition
ret sldr
)
If there is a simpler way to do this, please let me know, I didn't find anything in the docs.
Describe the solution you'd like.
I would like to enter sldr mode using a key and type any predefined sequence to get it expanded into text.
for example
hit caps-ret to enter sldr mode
type "oid"
kanata types out "123"
Describe alternatives you've considered.
I tried putting the macro on a key directly which works. It just limits how many shortcuts I can use and forces me to remember which key each macro is on.
Additional context
Another part (this would go into a separate issue if the numbers question finds a solution) would be to execute a command to replace the output.
for example entering sldr mode, typing "date" and getting today's date expanded as text by running:
date +"%Y-%m-%d"
I'm already using (cmd ) extensively but would love for it to expand text like a sequence does.
I understand if this is out of scope of course.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I've been trying to replace Autohotkey or Espanso with Kanata sequences (they've been unreliable for me).
So far I was able to put my text expansion onto a key in a layer which is close but I'm wondering if it's possible to expand a typed sequence into a string which also contains numbers directly from sequence loader mode (sldr).
I can almost get there but am running into an issue when trying to have numbers in the macro.
I can add an alias for each number as per the docs but can't use that alias in the macro when it's part of a virtualkey definition.
If there is a simpler way to do this, please let me know, I didn't find anything in the docs.
Describe the solution you'd like.
I would like to enter sldr mode using a key and type any predefined sequence to get it expanded into text.
for example
Describe alternatives you've considered.
I tried putting the macro on a key directly which works. It just limits how many shortcuts I can use and forces me to remember which key each macro is on.
Additional context
Another part (this would go into a separate issue if the numbers question finds a solution) would be to execute a command to replace the output.
for example entering sldr mode, typing "date" and getting today's date expanded as text by running:
I'm already using (cmd ) extensively but would love for it to expand text like a sequence does.
I understand if this is out of scope of course.
The text was updated successfully, but these errors were encountered: