Home Download Buy Blog Forum Support

[SOLVED] Textile syntax snippet keybinding issue

[SOLVED] Textile syntax snippet keybinding issue

Postby pentago on Sun Nov 04, 2012 4:42 pm

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

Markdown example of desired snippet/keybinding.

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


..gives

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



The problem is that Textile syntax for link contains quotes which conflicts with keybinding settings file
Code: Select all
"SublimeText":http://www.sublimetext.com


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

Thanks
Last edited by pentago on Sun Nov 04, 2012 5:57 pm, edited 1 time in total.
pentago
 
Posts: 11
Joined: Wed Sep 26, 2012 8:41 am

[SOLVED] Re: Textile syntax snippet keybinding issue

Postby pentago on Sun Nov 04, 2012 5:57 pm

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

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


Peace.
pentago
 
Posts: 11
Joined: Wed Sep 26, 2012 8:41 am


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests