Community
    • Login

    notepad++ python 'find all in current document'

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 856 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.
    • June WangJ Offline
      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 Offline
        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

        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