It’s hard. It’s hardly documented. Some keys are implemented at a very low level and might prove difficult. 
You might also look at the app Karabiner. 

On Jun 27, 2019, at 13:26, Allan Odgaard <mailinglist@textmate.org> wrote:

On 16 May 2019, at 16:46, Stéphane Thil wrote:

I am trying to make a snippet that adds ^{$1} associated to the ^ key
equivalent.
But ^ is a dead key on my french keyboard, and I can't seem to assign it in
the bundle editor.
Any idea?

I would suggest creating a new keyboard layout to globally change the dead key to insert a character (^) and then I think it should be possible to use the key as a shortcut.

I have no experience myself with creating alternative keyboard layouts, but I found this answer: https://superuser.com/questions/665494/how-to-make-a-custom-keyboard-layout-in-os-x


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
https://lists.macromates.com/listinfo/textmate