Community
    • Login

    notepad++ python 'find all in current document'

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 428 Views
    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.
    • June WangJ
      June Wang
      last edited by

      How can I loop through a list of strings and show ‘find all in current document’ for each string in the current open file via python,?

      Alan KilbornA 1 Reply Last reply Reply Quote 1
      • Alan KilbornA
        Alan Kilborn @June Wang
        last edited by Alan Kilborn

        @June-Wang

        I presume you mean you want to use the PythonScript plugin to write some code to do what you’ve asked.

        I also presume that you want the output to appear in the Search results panel, just like it would if you were doing an interactive Find All in Current Document.

        It’s a bit of a task because there is no “connection” between PythonScript and writing to the Search results panel, meaning that PS provides no API function call such as notepad.writeToSearchResults(...).

        Maybe the ideas in THIS THREAD give a possible approach…

        1 Reply Last reply Reply Quote 3
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors