Sublime Forum

Problems with Macros in Sublime Text 3

#1

Using F3 to search doesn’t seem to work in a macro, the macro recorded looks to be cursor movement, not an actual search. e.g…

{
	"args":
	{
		"by": "words",
		"forward": false
	},
	"command": "move"
},
{
	"args":
	{
		"by": "words",
		"forward": false
	},
	"command": "move"
},
{
	"args":
	{
		"by": "words",
		"forward": false
	},
	"command": "move"
},
{
	"args":
	{
		"by": "words",
		"extend": true,
		"forward": false
	},
	"command": "move"
},
{
	"args": null,
	"command": "right_delete"
},
{
	"args":
	{
		"by": "word_ends",
		"forward": true
	},
	"command": "move"
},
{
	"args":
	{
		"by": "word_ends",
		"forward": true
	},
	"command": "move"
},
{
	"args":
	{
		"by": "characters",
		"forward": true
	},
	"command": "move"
},
{
	"args":
	{
		"characters": "1,"
	},
	"command": "insert"
},
{
	"args":
	{
		"characters": " "
	},
	"command": "insert"
},
{
	"args":
	{
		"by": "lines",
		"forward": true
	},
	"command": "move"
},
{
	"args":
	{
		"extend": false,
		"to": "bol"
	},
	"command": "move_to"
}

]

Also recording macros seems to be really problematic when lines start wrapping. The keystrokes required to navigate around a line change depending on whether the line starts to wrap during the macro.

For anyone who needs a text editor which has good macro support Sublime Text 3 seems like it’s not an option at this point.

0 Likes