Sublime Forum

[SOLVED] Textile syntax snippet keybinding issue

#1

I’m trying to make a Textile syntax dependable keybinding to generate simple link:

Markdown example of desired snippet/keybinding.

{ "keys": "alt+a"], "command": "insert_snippet", "args": {"contents": "${1:$SELECTION}](${2:$SELECTION })"}, "context":{"key": "selector", "operator": "equal", "operand": "text.html.markdown"}] }

…gives

[SublimeText](http://www.sublimetext.com)

The problem is that Textile syntax for link contains quotes which conflicts with keybinding settings file

"SublimeText":http://www.sublimetext.com

I’m looking for some input regarding this, i’d really like to have this shortcut possible somehow.

Thanks

0 Likes

#2

Forgive me for being such a newb.
It came to me that i could possibly escape those extra quotes and it worked.

{ "keys": "alt+a"], "command": "insert_snippet", "args": {"contents": "\"${1:$SELECTION}\":${2:$SELECTION}"}, "context":{"key": "selector", "operator": "equal", "operand": "text.html.textile"}] }

Peace.

0 Likes