Issue with macro
-
I have this JSON text that contains a string attribute which is another escaped JSON in quotes. I wanted to extract that text and un-escape the JSON. So I tried it with the following steps to record a macro:
- Start the recording
- Bookmark the line that contains the JSON to un-escape
- Remove the unmarked lines
- Use Regex with group to find text and crop (Find/replace) the retain the escaped JSON
- un-escape the JSON
- Stop the recording
Manually doing all the above steps, gave me the expected JSON un-escaped. but when I replay the recording, it gave me only one single “{”. Is this a bug in the existing Notepad++? I tried this with many ealier releases and the latest v6.8.8.
Thanks.
-
Hello @Hongyan-Li,
I assume it depends on how you did it.
From my experience it is better to use as much keystrokes as possible instead
of using the mouse and click. For example it you clicked the bookmark margin
it doesn’t get recorded but when using CTRL+F2 to bookmark it gets recorded.Cheers
Claudia -
Check if you have auto insert of closing parenthesis, etc. I found an issue where they don’t insert during record, but do during playback. (Settings->Preferences->Auto Completion, look on the lower right panel)