Suppose we have a snippet for sql mode:
# -*- mode: snippet -*-
# name: select *
# key: sel
# --
SELECT ${1:*} FROM $2;
Sometimes I forget to switch the keyboard layout and type Russian "ыуд" instead of "sel". I tried this:
# -*- mode: snippet -*-
# name: select *
# key: sel
# key: ыуд
# --
SELECT ${1:*} FROM $2;
Here ыуд
works, but sel
doesn't. Is creating a second yasnippet with different key the only possibility to fix the issue? Or there is a way to bind the snippet to several keys?
Also is it possible to switch the keyboard layout when ыуд
snippet is activated? Maybe, we'll need to make call to the operating system?