Kakrc - map keys working partially

Hi guys.

I must be doing something stupid, but I can not the error.

So I have to remap accents to make groff less of a pain.

Here is the code in kakrc

hook global WinSetOption filetype=troff %{
map window insert á “['a]”
map window insert Á “['A]”
map window insert é “['e]”
map window insert É “['E]”
map window insert í “['i]”
map window insert Í “['I]”
map window insert ó “['o]”
map window insert Ó “['O]”
map window insert ú “['u]”
map window insert Ú “['U]”
map window insert ñ “[’~n]”
map window insert Ñ “[’~N]”
map window insert “ “[lq]”
map window insert ” “[rq]”
}

Only the first 3 mappings are working (áÁé)! Tried with and without quotes…

Where is my mistake?

1 Like

Hi @Pablo_Muniz_Gadea,

Everything works for me. I think it may be a matter of file encoding. Try to put the accented characters inside quotes and see if that helps.

Thanks so much for taking the time to answer.

It has taken me half a day :frowning:

problem was in kakrc, I was mixing spaces and tabs.

That confuses me; Kakoune script generally doesn’t care about spaces versus tabs.