Hi Vincent,
I think that
(kbd-map (:mode in-math?) ("a z d" (insert-go-to '(with "math-display" "true" "") '(2 0))))
is what you want.
One needs to keep in mind the following: the list '(2 0)
indicates the position inside the tree formed by
'(with "math-display" "true" "")
And you need to count:
there is the main branch, that is the list that starts with with
; the keyword with
is the tag of the main branch and you must not count it; you count the children of the branch, starting from zero; they are
child number |
content |
0 |
"math-display" |
1 |
"true" |
2 |
"" |
So we want the third child, which is number 2, so our list for the position in the tree has 2 as its first element; the third child is a string, which is also a tree (with a hidden tag which is string
, I just checked it), and we want to be in position 0 (the first child, which is beginning of the string); so '(2 0)
.