Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use a XML Tools plugin command from a macro #3046

Open
MarcoMiltenburg opened this issue Mar 15, 2017 · 3 comments
Open

Unable to use a XML Tools plugin command from a macro #3046

MarcoMiltenburg opened this issue Mar 15, 2017 · 3 comments

Comments

@MarcoMiltenburg
Copy link

Description of the Issue

It's not possible to use a XML Tools plugin command from a macro. I want to create a macro that includes pretty print an XML file, save it and close the file.

Steps to Reproduce the Issue

  1. Open an XML file
  2. Start recording a macro
  3. Go to Plugins -> XML Tools -> Pretty Print (XML Only - with line breaks) or press Ctrl+Alt+Shift+B
  4. Go to File -> Save or press Ctrl+S
  5. Go to File -> Close
  6. Stop macro recording
  7. Open another XML file
  8. Play the just recorded macro

Expected Behavior

The XML file should be pretty printed and saved to disk.

Actual Behavior

The file is not touched as the pretty print is not executed and thus nothing gets saved and the file is only closed.

When I manually invoke the pretty print command after opening the XML file and then execute the macro, the file is saved and closed. So the save and close steps are executed correctly but the pretty print step is not.

Debug Information

Notepad++ v7.3.2 (32-bit)
Build time : Feb 12 2017 - 23:15:39
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : DoxyIt.dll FingerText.dll mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll SnippetPlus.dll XMLTools.dll

@garethbanksFrontline
Copy link

garethbanksFrontline commented Nov 30, 2017

did you ever find a work round to this issue?

@MarcoMiltenburg
Copy link
Author

No, unfortunately not...

@garethbanksFrontline
Copy link

getting there with python plugin , just need to scroll to beginning of line or press home

notepad.runPluginCommand('XML Tools', 'Pretty Print (XML only - with line breaks)')
notepad.menuCommand(MENUCOMMAND.LANG_XML)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants