Skip to content

Instantly share code, notes, and snippets.

@rleger
Created January 4, 2015 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rleger/d1c928c3930f07b14764 to your computer and use it in GitHub Desktop.
Save rleger/d1c928c3930f07b14764 to your computer and use it in GitHub Desktop.
Initialize fields from php controller macro - Sublime text 3
[
{
"command": "escape"
},
{
"command": "expand_selection",
"args": {"to": "word"}
},
{
"args": null,
"command": "copy"
},
{
"args": {
"by": "lines",
"forward": true
},
"command": "move"
},
{
"args": {
"characters": "\n"
},
"command": "insert"
},
{
"args": {
"characters": "$this-"
},
"command": "insert"
},
{
"args": {
"characters": ">"
},
"command": "insert"
},
{
"args": null,
"command": "paste_and_indent"
},
{
"args": {
"characters": " ="
},
"command": "insert"
},
{
"args": {
"characters": " $"
},
"command": "insert"
},
{
"args": null,
"command": "paste_and_indent"
},
{
"args": {
"characters": ";"
},
"command": "insert"
},
{
"args": {
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args": {
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args": {
"to": "bol"
},
"command": "move_to"
},
{
"args": {
"characters": "\n\n"
},
"command": "insert"
},
{
"args": {
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args": {
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args": {
"characters": "protected"
},
"command": "insert"
},
{
"args": {
"characters": " "
},
"command": "insert"
},
{
"args": {
"characters": "$"
},
"command": "insert"
},
{
"args": null,
"command": "paste_and_indent"
},
{
"args": {
"characters": ";"
},
"command": "insert"
},
{
"args": {
"by": "lines",
"forward": true
},
"command": "move"
},
{
"args": {
"by": "lines",
"forward": true
},
"command": "move"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment