<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Want to change the google search to customer search.]]></title><description><![CDATA[<p dir="auto">I have went inside %appdata%\Notepad++ and  modified shortcuts.xlm and changed the search string that controls google.</p>
<p dir="auto">This is the default string.<br />
&lt;Command name=“Google Search” Ctrl=“no” Alt=“yes” Shift=“no” Key=“113”&gt;<a href="https://www.google.com/search?q=$(CURRENT_WORD)" rel="nofollow ugc">https://www.google.com/search?q=$(CURRENT_WORD)</a>&lt;/Command&gt;</p>
<p dir="auto">I replaced it with my custom string and it will take me to the page I have changed it to but it will not pull the highlighted word into the search.</p>
<p dir="auto">It works with other search engines. I don’t want to post the search string I am changing it to due to possible security issues.</p>
<p dir="auto">Any thoughts?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17195/want-to-change-the-google-search-to-customer-search</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 16:20:46 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17195.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Feb 2019 09:44:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Want to change the google search to customer search. on Mon, 04 Mar 2019 15:20:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a> said:</p>
<blockquote>
<p dir="auto">Unfortunately I have been unable to get any of the suggested solutions to work. I appreciate all the help. I didn’t think this would be so tough.</p>
</blockquote>
<p dir="auto">If you still want help, you are going to have to be more specific than that.</p>
<p dir="auto">I tested <a href="https://notepad-plus-plus.org/community/topic/17195/want-to-change-the-google-search-to-customer-search/25" rel="nofollow ugc">my 2019-03-01T14:22:23.197Z post</a> pretty thoroughly, and it worked exactly as I expected, passing chrome the full URL.</p>
<p dir="auto">So, things we will need to know in order to keep helping you:</p>
<ol>
<li>What browser do you want the URL to go to?  Chrome? Firefox? Edge? IE? Something else?
<ul>
<li>If it’s Chrome or Firefox or , we will need the full path to your browser: you should be able to right click on your browser shortcut (or, if it’s active on your toolbar, right click on the icon, then again on the application name) to get you to the <strong>Properties</strong> window, and copy the full path there.</li>
<li>If it’s Edge or IE, we’ll use the Microsoft-special notation for accessing those browsers.  'coz microsoft.</li>
</ul>
</li>
<li>What is the exact version of Notepad++ you are using?  Maybe your version is behaving differently than mine
<ul>
<li>it would be easiest if you went to the menu <strong>? &gt; Debug Info &gt; Copy debug info into clipboard</strong>, and pasted the results here.</li>
</ul>
</li>
<li>what exact sequence did you use when editing the <code>shortcuts.xml</code>?</li>
<li>exactly how long is your URL?</li>
<li>Did you try my exact circumstance from <a href="https://notepad-plus-plus.org/community/topic/17195/want-to-change-the-google-search-to-customer-search/25" rel="nofollow ugc">my 2019-03-01T14:22:23.197Z post</a>, or did you make changes to the URL before saving the batch file?
<ul>
<li>when I did that setup, making sure to save the setup, exit Notepad++, and then reload, it sent the really long URL to chrome properly</li>
<li>if you did try this, with the DUMMY URL, how exactly did it fail?   (saying “didn’t work” is so generic as to be useless for helping us help you)
<ul>
<li>Did it not try to do anything?  If so, where exactly did you save <code>longurl.bat</code>?  Did you make the <code>shortcuts.xml</code> point to the real location of <code>longurl.bat</code>, or did you leave it pointing to my location for <code>longurl.bat</code></li>
<li>Did it not open chrome?</li>
<li>Did it open chrome and try to go to the full dummy URL, and fail because it didn’t exist?  This is what I would expect. In which case, I would say it didn’t fail, because that was the expected behavior.</li>
<li>Or did open chrome, but truncate the URL?
<ul>
<li>
<p dir="auto">Once I made the batch file, it never truncated the URL on me.</p>
</li>
<li>
<p dir="auto">I just tried 2138 characters in the dummy URL, plus the <code>%1</code> search string in my batch file, which got replaced by <code>$(CURRENT_WORD)</code> from Notepad++, which was the exact text <code>longurl</code>, and chrome tried to open that page with the full 2144 character URL; because that machine doesn’t exist, chrome told me <code>this site can't be reached</code>, but it actually tried to go there, and the full URL was in the browser bar.  If I change my batch file to</p>
<pre><code>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://www.google.com/search?ie=UTF-8&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;sen=012&amp;q=%1"
pause
</code></pre>
</li>
</ul>
so that it’s going to a valid website (google search), a total of 2106 characters plus the search string long, plus has a pause so that a <code>cmd.exe</code> window stays open until you hit enter or space or something, I saw the full URL in the <code>cmd.exe</code> window, I saw the full URL in chrome, and chrome went to the google-search for the word (<code>longurl</code>) that I highlighted when I launched</li>
</ul>
</li>
</ul>
</li>
</ol>
<p dir="auto">Do you see how detailed I was when trying to help you?  If you are detailed when responding to our help, it will be easier for us to help you.</p>
<p dir="auto">Please answer all five of those questions.  Also, tell me an exact path where you are willing to save <code>longurl.bat</code>.  With those five answers (detailed), and with an exact path, I should be able to craft something that works for you.  I will start with the big long dummy google search, so that you know it’s really working… but after that, depending on how much info you give, I might be able to help you convert the URL closer toward what you want in real life.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40622</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40622</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 04 Mar 2019 15:20:19 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Mon, 04 Mar 2019 06:06:10 GMT]]></title><description><![CDATA[<p dir="auto">Unfortunately I have been unable to get any of the suggested solutions to work. I appreciate all the help. I didn’t think this would be so tough.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40615</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40615</guid><dc:creator><![CDATA[Cary Korn]]></dc:creator><pubDate>Mon, 04 Mar 2019 06:06:10 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Sun, 03 Mar 2019 11:54:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a> said:</p>
<blockquote>
<p dir="auto">I wanted to say that without knowing the real address of the site to find a solution to this problem can not be.</p>
</blockquote>
<p dir="auto">yes i know, but somehow this topic has caught our interest.</p>
<blockquote>
<p dir="auto">I didn’t want to insult anyone …</p>
</blockquote>
<p dir="auto">don’t worry, i can not see anything insulting. google translator did not add any hidden insults to your text ;-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40592</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40592</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 03 Mar 2019 11:54:43 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Sun, 03 Mar 2019 08:08:43 GMT]]></title><description><![CDATA[<p dir="auto">Gentlemen and comrades …I wanted to say that without knowing the real address of the site to find a solution to this problem can not be. And I didn’t want to insult anyone …I conduct correspondence through Google-translator</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40590</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40590</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Sun, 03 Mar 2019 08:08:43 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Sun, 03 Mar 2019 01:46:47 GMT]]></title><description><![CDATA[<p dir="auto">maybe QTranslate is not the perfect translator after all 😉</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a></p>
<p dir="auto">the url that the original poster needs is very long.<br />
it is so long, that it gets cut off and shortened.<br />
the resulting url is incomplete at his browser’s address bar.<br />
(his browser gets only a part of the complete url address that is necessary for the search to work.)</p>
<p dir="auto">now we just have to sit and wait, because the original poster has not yet replied to peter’s last suggestion on how he could work around this url string length restriction.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40585</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40585</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 03 Mar 2019 01:46:47 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Sun, 03 Mar 2019 00:52:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a> ,</p>
<p dir="auto">Based on the thread as a whole, I am confident we have provided enough information for <a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a> to know where in the URL the <code>$(CURRENT_WORD)</code> needs to go (ie, in the place of the “str=test” in the example dummy URL that <a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a> provided), regardless of what search engine is used.  If <a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a> obfuscated the real URL being used, I am working under the assumption that there will be no difficulty un-obfuscating the URL back to something that is functional.</p>
<p dir="auto">The problem being asked about in this thread was not “what is the right URL for such-and-such a search engine?”  The question was how to transmit said URL to the browser without the end being cut off.  That’s the problem I attacked, and has worked in my tests of my solution.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40582</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40582</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sun, 03 Mar 2019 00:52:29 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Sat, 02 Mar 2019 22:07:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a></p>
<p dir="auto">Maybe I’m dumb here, but why <em>wouldn’t</em> all sites do it differently?  I mean, they <em>could</em> do it the same way (sometimes “standards” develop by imitation), but…</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40578</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40578</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 02 Mar 2019 22:07:39 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Sat, 02 Mar 2019 20:14:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a><br />
I did a search on the site from Notepad++, it is necessary to see how the search engine makes a request. Each machine has different requests. Here are my examples (my code does not insert, says it’s spam and I took a screenshot )</p>
<p dir="auto"><img src="https://i.imgur.com/xHzSeNM.png" alt="" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/40572</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40572</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Sat, 02 Mar 2019 20:14:51 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Sat, 02 Mar 2019 17:47:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrecool-68" aria-label="Profile: andrecool-68">@<bdi>andrecool-68</bdi></a> ,</p>
<p dir="auto">I was just using the OP’s dummy query, which was obfuscated to prevent us from knowing what site they were actually searching.  (My guess is it is one of the services that provides cloud-based services for corporations, and the OP was trying to obscure which one.)</p>
<p dir="auto">Given that the root cause of the problem was not the website, but the interface between Notepad++, Windows, and the browser, it doesn’t bother me that the OP used a dummy website (though really, using the .example top-level domain is a better choice than trying to fake a .com; you never know when creating a dummy URL with a legal-style domain will accidentally intersect with a real machine).</p>
<p dir="auto">The fake URL given was sufficient to show us the problem; and using that fake URL, I was able to present a solution that would allow the entire more-than-260-character URL to be passed to the browser, so it was a reasonable choice.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40569</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40569</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 02 Mar 2019 17:47:22 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Sat, 02 Mar 2019 13:41:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said:<br />
On what site do you want to search from Notepad++?<br />
This site does not exist <code>"https://test.my.testforce.com/</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/40549</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40549</guid><dc:creator><![CDATA[andrecool-68]]></dc:creator><pubDate>Sat, 02 Mar 2019 13:41:08 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Fri, 01 Mar 2019 14:22:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a> said:</p>
<blockquote>
<p dir="auto">I tried the .bat option and it looks like it still cuts off the url. It will not take the highlight search term and parse it into the url. I though this was going to be an easy thing.</p>
</blockquote>
<p dir="auto">It would have been easy, except you’re dealing with the interface between an application and windows and another application; there are some things that are out of your control.</p>
<p dir="auto">However, I think I found a .bat variant that will work.</p>
<p dir="auto">Create a batchfile at a known location (I made mine as <code>c:\usr\local\scripts\longurl.bat</code>), containing the single line</p>
<pre><code>"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://test.my.testforce.com/_ui/search/ui/UnifiedSearchResults?searchType=2&amp;sen=a0T&amp;sen=0WO&amp;sen=a0W&amp;sen=ka&amp;sen=00O&amp;sen=00P&amp;sen=a0b&amp;sen=00T&amp;sen=015&amp;sen=00U&amp;sen=a4j&amp;sen=a1F&amp;sen=a0h&amp;sen=00a&amp;sen=a1S&amp;sen=0F9&amp;sen=a1U&amp;sen=08p&amp;sen=a1X&amp;sen=a3c&amp;sen=02s&amp;sen=001&amp;sen=068&amp;sen=003&amp;sen=500&amp;sen=005&amp;sen=501&amp;sen=006&amp;sen=a6M&amp;sen=a0L&amp;sen=a0M&amp;str=%1"
</code></pre>
<p dir="auto">The first part is the full path to the chrome browser, in quotes (because of the spaces in the path); the second part is all of the long url, except the search term; use the %1 instead of the search term.  (If you don’t want to use chrome, use the full path to your browser executable of choice.)</p>
<p dir="auto">Second, edit <code>shortcuts.xml</code> and add</p>
<pre><code>    &lt;Command name="longurl" Ctrl="no" Alt="yes" Shift="no" Key="116"&gt;c:\usr\local\scripts\longurl.bat $(CURRENT_WORD)&lt;/Command&gt;
</code></pre>
<p dir="auto">(making sure to use your batchfile path, not mine.)</p>
<p dir="auto">Save, exit Notepad++, reload.  Highlight a word (I highlighted <code>TestString</code>) and hit <code>Alt+F5</code> (which is the alias I used in the command above): this properly opened chrome with the full URL, including the search string; because it was a dummy URL, it didn’t <em>go</em> anywhere, but chrome displayed the full URL through the end of the <code>TestString</code>, which is something that hadn’t happened in my previous experiments.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40511</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40511</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 01 Mar 2019 14:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Fri, 01 Mar 2019 10:24:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a></p>
<p dir="auto">if it does not even work from a .bat or .cmd with the length of your url, i suppose it is beyond of anything that can be started from a command line.</p>
<p dir="auto">if this url is that long, you could try to run it through the windows explorer api, by creating a link shortcut (.lnk file) by right clicking on your desktop, and creating new &gt; shortcut, with the parameters <code>"path_to_your\browser.exe" "https://your_long_url"</code></p>
<p dir="auto">if your url would work from a desktop shortcut (.lnk), you could use a script, or one of the available exe tools on the internet, to create a .lnk file programmatically.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40501</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40501</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Fri, 01 Mar 2019 10:24:41 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Fri, 01 Mar 2019 06:56:15 GMT]]></title><description><![CDATA[<p dir="auto">I tried the .bat option and it looks like it still cuts off the url. It will not take the highlight search term and parse it into the url. I though this was going to be an easy thing.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40496</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40496</guid><dc:creator><![CDATA[Cary Korn]]></dc:creator><pubDate>Fri, 01 Mar 2019 06:56:15 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Fri, 01 Mar 2019 06:47:33 GMT]]></title><description><![CDATA[<p dir="auto">Python is beyond my skill.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40495</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40495</guid><dc:creator><![CDATA[Cary Korn]]></dc:creator><pubDate>Fri, 01 Mar 2019 06:47:33 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Thu, 28 Feb 2019 17:19:42 GMT]]></title><description><![CDATA[<p dir="auto">Does NppExec suffer from the same character limitations? Seems like that would work or I’m sure you could use a python script.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40447</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40447</guid><dc:creator><![CDATA[cipher-1024]]></dc:creator><pubDate>Thu, 28 Feb 2019 17:19:42 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Thu, 28 Feb 2019 09:29:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a></p>
<p dir="auto">just a thought, to get the line shorter within notepad++:</p>
<p dir="auto">can you perform a search from a test.cmd batch file ?<br />
if yes, you can try to call <code>your_path_to\test.cmd $(CURRENT_WORD)</code> or <code>your_path_to\test.cmd "$(CURRENT_WORD)"</code> inside shortcuts.xml, to keep the notepad++ executable line as short as possible.</p>
<p dir="auto">shortcuts.xml example:</p>
<pre><code>&lt;Command name="test" Ctrl="no" Alt="no" Shift="no" Key="0"&gt;C:\Users\user\test.cmd $(CURRENT_WORD)&lt;/Command&gt;
</code></pre>
<p dir="auto">inside the batch file $(CURRENT_WORD) will be reflected as <code>%1</code></p>
]]></description><link>https://community.notepad-plus-plus.org/post/40427</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40427</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Thu, 28 Feb 2019 09:29:36 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Thu, 28 Feb 2019 09:05:01 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for all the help. I have played with the url trying to shorten it but it seems to glitch the search. It keeps asking for the search to be more than 2 characters long. The url shorten might work just not sure of any service that can parse the search term to make it work.  This might be something that is just not possible with this site.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40425</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40425</guid><dc:creator><![CDATA[Cary Korn]]></dc:creator><pubDate>Thu, 28 Feb 2019 09:05:01 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Wed, 27 Feb 2019 23:55:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a></p>
<p dir="auto">I guess you are on the right track. I assume the underlying create process is the culprit.<br />
As stated on <a href="https://docs.microsoft.com/en-us/windows/desktop/api/processthreadsapi/nf-processthreadsapi-createprocessw" rel="nofollow ugc">msdn</a></p>
<p dir="auto"><em>The maximum length of this string is 32,768 characters, including the Unicode terminating null character.<br />
If lpApplicationName is NULL, the module name portion of lpCommandLine is limited to MAX_PATH characters.</em></p>
]]></description><link>https://community.notepad-plus-plus.org/post/40422</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40422</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 27 Feb 2019 23:55:23 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Wed, 27 Feb 2019 23:32:47 GMT]]></title><description><![CDATA[<p dir="auto">So, the end-result is: <a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a>, try to pare down your URL to be able to be significantly less than 260 characters without the $(CURRENT_WORD) value, so that it will stay &lt;260-characters with that value embedded in the URL.  Or use some sort of URL-shrinking service that allows passing parameters, so you could use <code>https://fake.url/shortener?str=$(CURRENT_WORD)</code>, where all the other parameters are internal to the url-shortener service.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40421</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40421</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 27 Feb 2019 23:32:47 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Wed, 27 Feb 2019 23:31:25 GMT]]></title><description><![CDATA[<p dir="auto">Back on topic:</p>
<p dir="auto">I was curious, so I followed <a href="https://msdn.microsoft.com/en-us/windows/desktop/aa767914" rel="nofollow ugc">these directions</a> to create a fake URL protocol/scheme (“alert:xxx”), but I just passed it to <code>cmd /c "echo %1 &amp;&amp; pause"</code>. After refreshing my login, I then updated <code>shortcuts.xml</code> to add an <strong>Run &gt; alert</strong> using Alt+F5:</p>
<pre><code>    &lt;Command name="alert" Ctrl="no" Alt="yes" Shift="no" Key="116"&gt;alert:$(CURRENT_WORD)&lt;/Command&gt;
</code></pre>
<p dir="auto">When running that, with the text <code>123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x123456789x</code> selected, it stops at 259 characters, including the <code>alert:</code> protocol prefix.  I hadn’t realized that the 260-character limitation would apply to commands as well as filenames.</p>
<p dir="auto">I haven’t found anywhere where there’s a 260+/-1 hardcoded in Notepad++ source code that would influence this (one of the Lexers apparently hardcodes a 260-character limit in one of its buffers, but none others that appeared to deal with strings), so maybe it’s really in the libraries that NPP chose to handoff to windows, or something.</p>
<p dir="auto">Adding a command-based rather than URL-based:</p>
<pre><code>    &lt;Command name="alertcmd" Ctrl="no" Alt="yes" Shift="no" Key="118"&gt;cmd /c "echo $(CURRENT_WORD) &amp;&amp; pause"&lt;/Command&gt;
</code></pre>
<p dir="auto">I successfully passed that up to 2047 characters in $(CURRENT_WORD).</p>
<p dir="auto">With that in mind, and the <a href="https://notepad-plus-plus.org/community/topic/17160/latest-version-browser-export/2" rel="nofollow ugc">launch in browser syntax</a>, I created</p>
<pre><code>     &lt;Command name="cmdurl" Ctrl="no" Alt="yes" Shift="no" Key="119"&gt;chrome file:$(CURRENT_WORD)"&lt;/Command&gt;
</code></pre>
<p dir="auto">which launches chrome with the given file: URL.  I was able to pass it 2047 characters no problem</p>
<p dir="auto">So edit cmdurl to the <a class="plugin-mentions-user plugin-mentions-a" href="/user/cary-korn" aria-label="Profile: Cary-Korn">@<bdi>Cary-Korn</bdi></a>’s original long-URL example, with proper <code>&amp;amp;</code>-entities:</p>
<pre><code>     &lt;Command name="cmdurl" Ctrl="no" Alt="yes" Shift="no" Key="119"&gt;chrome https://test.my.testforce.com/_ui/search/ui/UnifiedSearchResults?searchType=2&amp;amp;sen=a0T&amp;amp;sen=0WO&amp;amp;sen=a0W&amp;amp;sen=ka&amp;amp;sen=00O&amp;amp;sen=00P&amp;amp;sen=a0b&amp;amp;sen=00T&amp;amp;sen=015&amp;amp;sen=00U&amp;amp;sen=a4j&amp;amp;sen=a1F&amp;amp;sen=a0h&amp;amp;sen=00a&amp;amp;sen=a1S&amp;amp;sen=0F9&amp;amp;sen=a1U&amp;amp;sen=08p&amp;amp;sen=a1X&amp;amp;sen=a3c&amp;amp;sen=02s&amp;amp;sen=001&amp;amp;sen=068&amp;amp;sen=003&amp;amp;sen=500&amp;amp;sen=005&amp;amp;sen=501&amp;amp;sen=006&amp;amp;sen=a6M&amp;amp;sen=a0L&amp;amp;sen=a0M&amp;amp;str=$(CURRENT_WORD)&lt;/Command&gt;
</code></pre>
<p dir="auto">When I did that, it hit a limit of the ~260 characters again.  (Though, this time, instead of clipping, it wrapped around and started the URL over for a few more characters; it was weird).  I think that the way that command-line arguments are being sent to ShellExecute, and/or how ShellExecute is handling them, is limiting the argument to a command to be ~260 characters.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40420</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40420</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 27 Feb 2019 23:31:25 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Wed, 27 Feb 2019 19:26:37 GMT]]></title><description><![CDATA[<p dir="auto">To be honest, I don’t know if I’m using it correctly at all because I let it translate from English into German<br />
and I’m changing it until the German translation makes sense to me.<br />
But it looks like it generates a much better English translation this way than the other way around.<br />
Which, of course, could mean, that I constantly produce English text with German grammar :-)</p>
<p dir="auto">With google translate I wasn’t able to get a proper result using it this way<br />
but have to admit that I haven’t used it for quite some time now.<br />
And if used in the normal way, it always made me feel that there is something wrong.<br />
But who knows, maybe it is much better nowadays.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40407</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40407</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 27 Feb 2019 19:26:37 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Wed, 27 Feb 2019 18:49:59 GMT]]></title><description><![CDATA[<p dir="auto">Google translate usually generates passable English, but I thought I would be able to recognize text that had gone thru translator as compared to even a non-native trying to translate his language into English.  I guess deepl is pretty convincing. :-)</p>
<p dir="auto">Don’t let my laziness of letting the xml-parser handle my malformed XML corrupt you into to taking shortcuts.  I don’t use XML for more than editing config files here and elsewhere, and such applications often follow the adage “Be conservative in what you send, be liberal in what you accept” (<a href="https://en.wikipedia.org/wiki/Robustness_principle" rel="nofollow ugc">Postel’s Law</a>).  If I were writing XML for a living, I’d be much more strict in any XML example I gave.  It’s best to always use entities for those 5 characters in XML when you are writing XML.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40406</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40406</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 27 Feb 2019 18:49:59 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Wed, 27 Feb 2019 16:47:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a></p>
<p dir="auto">fluent English !? :-D - thanks to deepl</p>
<p dir="auto">Ok - finally, I guess, I’ve understood.<br />
The limit you’ve discovered is near to 260 which is a known limit for path length, as far as I remember.<br />
I read that in Win10 this limit has been eliminated but if it is set in source …<br />
Thx for the hint about the xml parser, I wasn’t aware that this is even possible.<br />
I always thought escaping these 5 special chars is a must have.<br />
Learned something new :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40399</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40399</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Wed, 27 Feb 2019 16:47:01 GMT</pubDate></item><item><title><![CDATA[Reply to Want to change the google search to customer search. on Wed, 27 Feb 2019 16:34:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ekopalypse" aria-label="Profile: Ekopalypse">@<bdi>Ekopalypse</bdi></a> ,</p>
<p dir="auto">Sorry, your English here is so fluent, I forget it’s not your native language.</p>
<p dir="auto">Regarding escaping ampersands in XML: yes, technically, the ampersands should be escaped (made into <code>&amp;amp;</code> entities) in the XML. However, many XML parsers realize that it’s not an entity once they get to the <code>=</code> without having come across a valid entity name, and so decide that the <code>&amp;sel=</code> was meant as literal text rather than as an attempt at a named entity.  My experiment above, where the URL was the same (whether the <code>&amp;sel=</code> were raw or <code>&amp;amp;sel=</code>) seems to indicate that  the XML-parser that Notepad++ is using implements the fallback condition rather than complaining that it cannot parse the XML.</p>
<p dir="auto">Regarding the length: Yes, I think there’s a limit to how long the command can be.  I’m not sure how else to interpret the experiments I did with dummy.example, which didn’t use any ampersands, but show the URL getting truncated by the time it reaches the browser.  I don’t know whether the limit is</p>
<ul>
<li>when reading the XML file – I don’t think so, because the truncated length seemed to be the same whether I used raw <code>&amp;</code> or entity <code>&amp;amp;</code> in the XML file</li>
<li>sometime after converting the entities into plain text inside Notepad++ – I think this is more likely, though <em>where</em> that “somewhere” is would be more complicated</li>
<li>sometime between when Notepad++ sends the URL to the browser and the browser receives it – this is also possible</li>
<li>windows is truncating it in the between-time</li>
<li>the browser (in my experiment, chrome) has a limit as to how many characters it accepts from whatever mechanism it receives the URL from windows</li>
</ul>
<p dir="auto">I may have to look into the code, and/or try some more experiments, to try to pin down where the problem lies.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/40397</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/40397</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 27 Feb 2019 16:34:05 GMT</pubDate></item></channel></rss>