Community
    • Login

    "hide lines" command not working in a Macro

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 1 Posters 2.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • remduvR Offline
      remduv
      last edited by

      Hello everybody

      There’s something that I would like to do in Notepad++ which is being able to fold (or collapse if you prefer) java stack traces in a log file (I really don’t like to go through all those rarely useful lines)
      I’ve tried using “code folding” with no luck as it’s hard to define start and end of a Java stack trace.
      So I’d like to be able to use a macro to search and select each java stack trace through the log file and hide those selected lines (with right click -> hide lines or view menu -> hide lines)…

      Now my problem is that “hide line” command is not recorded in the macro (if I play it again once recorded hiding doesn’t occur).

      Please, do someone knows if there is a workaround or if it’s someone really impossible to do in Notepad++ ?
      (maybe it’s the same for all “view” menu commands in macros ?)

      Thanks for your help

      1 Reply Last reply Reply Quote 0
      • remduvR Offline
        remduv
        last edited by

        OK I found out by myself
        Some commands are not well supported by macros but it’s possible to add them manually via editing shortcut.xml file

        see n++ doc : http://docs.notepad-plus-plus.org/index.php/Editing_Configuration_Files#.3CMacros.3E

        • following threads if needed
          http://stackoverflow.com/questions/362444/how-to-write-macro-for-notepad
          http://stackoverflow.com/questions/21194367/notepad-shortcut-for-new-open-containing-folder-in-menu-commands

        In my case I wanted code “44042” which is “Hide Lines” in the menu (used Resource Hacker to check the menu entry code).

        excerpt of my new shortcuts.xml file :
        <Macros>
        <Macro name=“test RDUV” Ctrl=“no” Alt=“yes” Shift=“yes” Key=“84”>
        <Action type=“2” message=“0” wParam=“44042” lParam=“0” sParam=“” />
        </Macro>

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors