How to call magic hotkeys on highlighted code


#1

Hi, I’d like to be able to highlight
from clinics.models import PotentialClinic
and with hotkey like ctrl+a turn this to
${1:var} = “from clinics.models import PotentialClinic”$2
where the “var” is now highlighted to change the name, and you have a node after it all.

Similar to snip, but I want to play with code in atom directly. Can this be done now, or can someone please point me to a file/function or 2 in the source to speed me up? Thank you