Last Updated: February 25, 2016
·
888
· pentago

Rich text editor-like SublimeText2's Textile shortcuts

// Textile Specific

{
"keys": ["ctrl+1"], "command": "insert_snippet",
"args": {"contents": "h1. ${1:$SELECTION}"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

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

{
"keys": ["ctrl+3"], "command": "insert_snippet",
"args": {"contents": "h3. ${1:$SELECTION}"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

{
"keys": ["ctrl+4"], "command": "insert_snippet",
"args": {"contents": "h4. ${1:$SELECTION}"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

{
"keys": ["ctrl+5"], "command": "insert_snippet",
"args": {"contents": "h5. ${1:$SELECTION}"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

{
"keys": ["ctrl+6"], "command": "insert_snippet",
"args": {"contents": "h6. ${1:$SELECTION}"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

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

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

{
"keys": ["alt+b"], "command": "insert_snippet",
"args": {"contents": "!${1:$SELECTION}(${2:ALT})!:${3:URL}"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

{
"keys": ["alt+c"], "command": "insert_snippet",
"args": {"contents": "!{display:block;margin:50px auto;width:500px;}${1:$SELECTION}(${2:ALT})!"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

{
"keys": ["alt+shift+c"], "command": "insert_snippet",
"args": {"contents": "!{display:block;margin:50px auto;width:500px;}${1:$SELECTION}(${2:ALT})!:${3:URL}"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

{
"keys": ["ctrl+b"], "command": "insert_snippet",
"args": {"contents": "${1:$SELECTION}"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

{
"keys": ["alt+e"], "command": "insertsnippet",
"args": {"contents": "
${1:$SELECTION}_"},
"context":[{"key": "selector", "operator": "equal", "operand": "text.html.textile"}]},

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

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