Community
    • Login

    Searching youtube

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    shortcut mapperyoutube
    6 Posts 2 Posters 317 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.
    • Marc HoppinsM
      Marc Hoppins
      last edited by

      For years I have been using n++ to search utoob and, frankly, it is now mystifying me as to how it worked before.

      I had a shortcut mapped to CTRL+F1 and off it would go to search for the highlighted string. Eg., ABBA - NAME OF THE GAME

      I have had a full system rebuild and install onto a blank slate. Thus have lost my previous settings. Using existing $(CURRENT_WORD) does not work as it dislikes the ’ - '.

      Any ideas on how to achieve the correct search?

      Thanks

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Marc Hoppins
        last edited by

        @Marc-Hoppins ,

        In the command you call, put quotes around it, like command-name.exe "$(CURRENT_WORD)" , so that the command you are calling sees the active selection text as a single argument instead of multiple arguments separated by spaces

        Marc HoppinsM 1 Reply Last reply Reply Quote 1
        • Marc HoppinsM
          Marc Hoppins @PeterJones
          last edited by

          @PeterJones Alas! No.

          <Command name=“Utoob search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“112”>utoob-url/“$(CURRENT_WORD)”</Command>

          All I get is 404

          <Command name=“Utoob search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“112”>utoob-url/q=“$(CURRENT_WORD)”</Command>

          404

          <Command name=“Utoob search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“112”>utoob-url/?=“$(CURRENT_WORD)”</Command>

          No action at all.

          <Command name=“Utoob search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“112”>utoob-url/search_query=“$(CURRENT_WORD)”</Command>

          404

          PeterJonesP 1 Reply Last reply Reply Quote 1
          • PeterJonesP
            PeterJones @Marc Hoppins
            last edited by

            @Marc-Hoppins ,

            I didn’t realize you were directly calling the URL (assuming that utoob-url/ is some silly way of “obfuscating” the site you’re searching). You don’t need the quotes around the search term if it’s in a URL. (I had assumed you had some external application that was getting command-line arguments to do the search.)

            Your problem is not with Notepad++ at this point, because Notepad++ is correctly passing the highlighted text to the command you define. At this point, you need to figure out the right form of the URL to use to actually search the site you want to search. I’ve got about a half-dozen permanent such searches in my Run menu, all of which work just fine, so you just have to know the right URL for searching a given site.

            When I do a search on youtube fort term words, I get the URL https://www.youtube.com/results?search_query=term+words . Thus, I went into Notepad++, and typed the words term words and highlighted them, then did Run > Run https://www.youtube.com/results?search_query=$(CURRENT_WORD) – and it correctly searched for the highlighted text on youtube. And if I highlight the text ABBA - NAME OF THE GAME in Notepad++ and run the same Run-menu command, it correctly searches for videos that match those results.

            If utoob-url is a code for some other, non-youtube site, then you will have to figure out what the actual search-term URL is for the actual site, and use the correct search URL in your user-defined-command for Notpad++ – and that’s not something we can help you with (because it has nothing to do with Notepad++ and everything to do with the website)

            Marc HoppinsM 2 Replies Last reply Reply Quote 3
            • Marc HoppinsM
              Marc Hoppins @PeterJones
              last edited by

              @PeterJones útoob is because I do not have enough clout here to post a real url.

              1 Reply Last reply Reply Quote 0
              • Marc HoppinsM
                Marc Hoppins @PeterJones
                last edited by

                @PeterJones said in Searching youtube:

                Thanks. I feel sure I did that variation yesterday. Anyway, it now works (again).

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