Skip to content
Discussion options

You must be logged in to vote

Hi, this is from the corresponding section of the README:

# when last character of string is typed, undo using backspace and output new string
substitute = ? "$0" >> repeat[Backspace, sub[length["$0"], 1]] "$1"
substitute["Cat", "Dog"]

# generate the string to output with an external program
substituteExec = ? "$0" >> repeat[Backspace, sub[length["$0"], 1]] \
  $(keymapperctl --type "$($1)")
substituteExec[":whoami", "whoami"]

So, you would have to put this in your configuration:

substitute = ? "$0" >> repeat[Backspace, sub[length["$0"], 1]] "$1"
substituteExec = ? "$0" >> repeat[Backspace, sub[length["$0"], 1]] $(keymapperctl --type "$($1)")

substituteExec[":ds", "date +%Y-%m-%d"]
subs…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by houmain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants