<?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[Is it possible to map multiple keys to notepad++ functions?]]></title><description><![CDATA[<p dir="auto">Is it possible to map multiple keys to notepad++ functions like find (Ctrl+F) and replace (Ctrl+H)?<br />
I would like the map F8 and Ctrl+f to the find function. Is it possible to implement that?</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21026/is-it-possible-to-map-multiple-keys-to-notepad-functions</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 15:31:11 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21026.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Apr 2021 01:37:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Mon, 26 Apr 2021 12:59:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a>,</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/65325">Is it possible to map multiple keys to notepad++ functions?</a>:</p>
<blockquote>
<p dir="auto">Regarding <code>editor.search()</code> – which is proper for this thread since we’ve been discussing PythonScript – why not just move your caret to an instance of that in your text and invoke <code>Context-Help</code> from the <code>PythonScript</code> menu, right in Notepad++ ?</p>
<blockquote>
<p dir="auto">Am i looking at the right one</p>
<p dir="auto"><a href="http://npppythonscript.sourceforge.net/docs/latest/scintilla.html#helper-methods" rel="nofollow ugc">http://npppythonscript.sourceforge.net/docs/latest/scintilla.html#helper-methods</a></p>
</blockquote>
<p dir="auto">I’d give that a “no”.</p>
</blockquote>
<p dir="auto">Specifically, the old sourceforge copy of the documentation is <em>severely</em> out of date.</p>
<p dir="auto">When you install PythonScript, it also installs a local <em>up to date</em> version of the PythonScript documentation, which can be accessed through Notepad++ menu <strong>Plugins &gt; PythonScript &gt; Context-Help</strong> (and, as <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> mentioned, if your caret is on the <code>editor.search()</code> command, it should open the help to the right place).  Use that for all documentation needs on PythonScript.  But yes, it is in the helper-methods section of the editor object documentation.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65326</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65326</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Mon, 26 Apr 2021 12:59:10 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Mon, 26 Apr 2021 12:20:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a></p>
<p dir="auto">Regarding: “comment…COBOL”:  It’s probably best to start a new thread when you want to ask a totally unrelated question to what has come before in the current thread.</p>
<p dir="auto">Regarding <code>editor.search()</code> – which is proper for this thread since we’ve been discussing PythonScript – why not just move your caret to an instance of that in your text and invoke <code>Context-Help</code> from the <code>PythonScript</code> menu, right in Notepad++ ?</p>
<blockquote>
<p dir="auto">Am i looking at the right one</p>
<p dir="auto"><a href="http://npppythonscript.sourceforge.net/docs/latest/scintilla.html#helper-methods" rel="nofollow ugc">http://npppythonscript.sourceforge.net/docs/latest/scintilla.html#helper-methods</a></p>
</blockquote>
<p dir="auto">I’d give that a “no”.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65325</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65325</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 26 Apr 2021 12:20:55 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Mon, 26 Apr 2021 03:39:32 GMT]]></title><description><![CDATA[<p dir="auto">Sorry for asking all the stupid questions.<br />
I tried the block comment/uncomment but it doesn’t work with my particular compiler.</p>
<p dir="auto"><strong>Can i change the comment/uncomment logic for my language (COBOL)?</strong></p>
<p dir="auto">or</p>
<p dir="auto"><strong>It is a litle nuanced</strong></p>
<ol>
<li>I need to save the character at column 7 (which is where the comment indicator is *). because it could be one of a couple of values and i would need to restore it when they uncomment</li>
<li>I’m thinking i’m going to have to implement it in python. In which case i need to know how i can replace a line in the editing window</li>
</ol>
<p dir="auto">Thanks again for all your awesome advice</p>
<p dir="auto">Also, i couldn’t find the editor.search() function in the python documentation. Am i looking at the right one<br />
<a href="http://npppythonscript.sourceforge.net/docs/latest/scintilla.html#helper-methods" rel="nofollow ugc">http://npppythonscript.sourceforge.net/docs/latest/scintilla.html#helper-methods</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/65318</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65318</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Mon, 26 Apr 2021 03:39:32 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Sat, 24 Apr 2021 21:11:13 GMT]]></title><description><![CDATA[<p dir="auto">Perfect! Problem solved. Great advice once again.<br />
Thank you all so much. You guys really know your stuff!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65291</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65291</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Sat, 24 Apr 2021 21:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Sat, 24 Apr 2021 17:06:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a> said in <a href="/post/65280">Is it possible to map multiple keys to notepad++ functions?</a>:</p>
<blockquote>
<p dir="auto">The problem is It always asks me to cancel the current command before it executes the next one</p>
</blockquote>
<p dir="auto">That means you’ve left some process open.  Without seeing your NppExec script, we cannot tell you <em>why</em> it might still have the process open.</p>
<p dir="auto">The <a href="/topic/20688">compile-and-run FAQ</a> gives some examples of NppExec scripts that compile source code then run the resulting program, but don’t have a problem of leaving a process still running.  You might want to compare your scripts to those.</p>
<p dir="auto">One trick, which is used in those examples, is to give the executable a new cmd window, instead of having it run directly inside the NppExec console – as called by <code>npp_run cmd.exe /k "$(NAME_PART)"</code>, which spawns a new external process (<code>npp_run</code>), starts the command interpreter (<code>cmd.exe</code>) in a way that will leave it open after its argument finished (<code>/k</code>), and runs the compiled program in that new process (<code>$(NAME_PART)</code>) – <code>npp_run</code> is basically the NppExec-equivalent of the cmd.exe <code>START</code> command.  (The same could also probably be accomplished in NppExec with <code>cmd /c START "$(NAME_PART)"</code>.)</p>
<p dir="auto">You can also <a href="https://community.notepad-plus-plus.org/search?term=NppExec&amp;in=posts&amp;matchWords=all&amp;by%5B%5D=Michael%20Vincent&amp;sortBy=timestamp&amp;sortDirection=desc&amp;showAs=posts">search the forum</a> for <a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: Michael-Vincent">@<bdi>Michael-Vincent</bdi></a> posts that contain “NppExec”, as he is a power-user of NppExec (or wait for him to show up, as he might have more advice than I have).  And <a class="plugin-mentions-user plugin-mentions-a" href="/user/vitaliy-dovgan" aria-label="Profile: Vitaliy-Dovgan">@<bdi>Vitaliy-Dovgan</bdi></a>, the author of NppExec, does come here on occasion</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65288</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65288</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Sat, 24 Apr 2021 17:06:41 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Sat, 24 Apr 2021 12:01:40 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a></p>
<p dir="auto">Sorry; you’ll have to wait for someone else to reply on NppExec.<br />
While the contributors to this thread are aware of NppExec, we may not know a lot about it because we’re better at PythonScripting (and thus don’t have much of a need for what NppExec offers).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65283</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65283</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 24 Apr 2021 12:01:40 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Sat, 24 Apr 2021 00:52:27 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for the coding tip. I will definitely implement it. Much more readable</p>
<p dir="auto">Thanks for the addStyledText() tip. I can get it to work for my purposes but it doesn’t seem to register for the click-and-goto-line functionality when i use it to print text.</p>
<p dir="auto">Another question related to this;<br />
Currently i use NppExec to compile my program, run my program and several other functions including launching the find dialog (using F8)<br />
The problem is It always asks me to cancel the current command before it executes the next one. This can be problematic when i, for example, run my program and then try to compile another program or even launch the find dialog.<br />
Is here a way to turn off this checking by NppExe or some way around this functionality?<br />
Thanks again for your awesome help</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65280</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65280</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Sat, 24 Apr 2021 00:52:27 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Fri, 23 Apr 2021 20:32:59 GMT]]></title><description><![CDATA[<p dir="auto">WOW! You guys are the best.<br />
I will persue those points today<br />
Thanks heaps!</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65279</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65279</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Fri, 23 Apr 2021 20:32:59 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Fri, 23 Apr 2021 15:10:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a></p>
<p dir="auto">for example with something like this</p>
<pre><code class="language-py">from Npp import console

console.editor.styleSetFore(60, (128, 255, 128))
console.editor.styleSetFore(61, (255, 128, 255))
console.editor.setReadOnly(False)
console.editor.addStyledText(Cell('Test\n', [60]))
console.editor.addStyledText(Cell('Test\n', [61]))
console.editor.addStyledText(Cell('Test\n', [60,61,60,61]))
console.editor.setReadOnly(True)
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1619190604770-5b007e26-81f5-4827-b59a-b544865d3f9d-image.png" alt="5b007e26-81f5-4827-b59a-b544865d3f9d-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/65270</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65270</guid><dc:creator><![CDATA[Ekopalypse]]></dc:creator><pubDate>Fri, 23 Apr 2021 15:10:18 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Fri, 23 Apr 2021 13:09:49 GMT]]></title><description><![CDATA[<p dir="auto">A possibility not involving color might be to show the matching text in this fashion:</p>
<pre><code class="language-z">  File "t.py", line 10,     matches = []
                            ^^^^^^^
  File "t.py", line 11,     editor.search(sel_text, lambda m: matches.append(m.span(0)[0]))
                                                              ^^^^^^^
  File "t.py", line 12,     if len(matches) &gt; 0:
                                   ^^^^^^^
  File "t.py", line 14,         for pos in matches:
                                           ^^^^^^^
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/65265</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65265</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 23 Apr 2021 13:09:49 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Fri, 23 Apr 2021 12:57:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a> said in <a href="/post/65251">Is it possible to map multiple keys to notepad++ functions?</a>:</p>
<blockquote>
<p dir="auto">How do i associate colors with text?</p>
</blockquote>
<p dir="auto">I normally let Notepad++ do this sort of coloring for me (it’s called lexing), so I actually don’t know the answer to this one.  I suspect it might be more effort than you’d want to go to, for this simple application.  Certainly doable, however.</p>
<p dir="auto">Are colors going to add a lot of value to it?  A question you have to answer, for yourself.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65263</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65263</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 23 Apr 2021 12:57:21 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Fri, 23 Apr 2021 12:52:45 GMT]]></title><description><![CDATA[<p dir="auto">While I’m not one to mess with something that works, I think you went in some directions with your script that were a bit “diversionary”.  Here’s how I would have done it:</p>
<pre><code class="language-z"># -*- coding: utf-8 -*-

from Npp import editor, notepad
import os

sel_text = editor.getSelText()
if len(sel_text) == 0:
    notepad.messageBox('No selected text.', '')
else:
    matches = []
    editor.search(sel_text, lambda m: matches.append(m.span(0)[0]))
    if len(matches) &gt; 0:
        console.show()
        for pos in matches:
            line_number = editor.lineFromPosition(pos)
            line_content = editor.getLine(line_number).rstrip()
            console.write('  File "{f}", line {l}, {c}\n'.format(
                f = notepad.getCurrentFilename().rsplit(os.sep)[-1],
                l = line_number + 1,
                c = line_content))
</code></pre>
<hr />
<p dir="auto">Assuming the script is called <code>t.py</code> (my favorite name for a “test” script I’m working on, before giving it a real name if I keep it), if one runs the script with some text selected:</p>
<p dir="auto"><img src="/assets/uploads/files/1619182278496-201dac1a-0f94-43da-b77a-387ce48707bc-image.png" alt="201dac1a-0f94-43da-b77a-387ce48707bc-image.png" class=" img-fluid img-markdown" /></p>
<hr />
<p dir="auto">The output looks like this:</p>
<p dir="auto"><img src="/assets/uploads/files/1619182308479-c2c8564a-8263-47d9-86da-b5c57fda3d84-image.png" alt="c2c8564a-8263-47d9-86da-b5c57fda3d84-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/65262</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65262</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 23 Apr 2021 12:52:45 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Fri, 23 Apr 2021 04:23:23 GMT]]></title><description><![CDATA[<p dir="auto">One last question (Hopefully): I want to change the colours of my message to the console.<br />
I think i need to use <strong>console.style.styleSetFore(style, (r, g, b))</strong></p>
<p dir="auto"><strong>How do i associate colors with text?</strong></p>
<p dir="auto">I would like;<br />
“Finding : text”  to be one color<br />
“File filename, line 999” to be another color<br />
and the line to be yet another color</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65251</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65251</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Fri, 23 Apr 2021 04:23:23 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Fri, 23 Apr 2021 00:46:08 GMT]]></title><description><![CDATA[<p dir="auto">Here’s the script:</p>
<pre><code class="language-z"># -*- coding: utf-8 -*-

from Npp import *
from os import *

def getFilename(name):
    i = len(name) - 1
    new = ""
    while i &gt;= 0 and name[i] &lt;&gt; "\\":
        new = name[i] + new
        i = i - 1
    return new


search = editor.getSelText()

console.show()
console.clear()

if search == "":
    console.write("Please select a search string")
else:

    console.write('Finding : '+ search + '\n')
    
    editor.setCurrentPos(0)
    editor.searchAnchor()

    caret = 0

    while caret &gt; -1:
        caret = editor.searchNext(0, search)
        if caret &lt; 0:
            break
        lineno = editor.lineFromPosition(caret)
        line = editor.getLine(lineno)
        new = caret+len(search)
        editor.setCurrentPos(new)
        editor.searchAnchor()    
        console.write("  File \""+getFilename(notepad.getCurrentFilename())+"\", line "+str(lineno+1)+" "+line )
#        console.write(os.path.basename(notepad.getCurrentFilename()))

    console.write('Search complete\n') 
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/65250</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65250</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 23 Apr 2021 00:46:08 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Thu, 22 Apr 2021 23:51:14 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Alan. I must say your esponses have been the most concise and “to the point” answers i have ever had in a forum, and i am a member of a few. Kudos to you matey.</p>
<p dir="auto">I did not know how to embed code or a file so here is a link to the python script. It’s my first go at pythoneering so i’m sure there are things i should have done differently.</p>
<p dir="auto">[<a href="https://drive.google.com/file/d/1TtBFP1XT3aGzylxJyDHAQFWCdAdpyE2v/view?usp=sharing" rel="nofollow ugc">https://drive.google.com/file/d/1TtBFP1XT3aGzylxJyDHAQFWCdAdpyE2v/view?usp=sharing</a>](link url)</p>
<p dir="auto">If you want to embed it in the thread for a more permanent record then go right ahead.<br />
Thanks again<br />
I owe you several beers</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65248</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65248</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Thu, 22 Apr 2021 23:51:14 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Thu, 22 Apr 2021 11:47:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a> said in <a href="/post/65234">Is it possible to map multiple keys to notepad++ functions?</a>:</p>
<blockquote>
<p dir="auto">Is it possible to attach a python script to a keystroke like shift+ctrl+f</p>
</blockquote>
<p dir="auto">Yes, <a href="https://community.notepad-plus-plus.org/post/62027">THIS POSTING</a> shows how to bind a keycombo of your choosing to the running of a script.</p>
<blockquote>
<p dir="auto">how i am going to allow the user to double click on a console line and go to the found line.<br />
Any ideas?</p>
</blockquote>
<p dir="auto">Yes, if, in your output to the console window, you mimic Python’s own error format, your filepath will be underlined and a <strong>single</strong> click on it will open the file to the correct line number.  I suppose this won’t quite get you to the matching column, but it gets you fairly close.</p>
<p dir="auto">So, for example, if I put a <code>z</code> character at an arbitrary place in a script file and run the file, I get something like this in the console:</p>
<p dir="auto"><img src="/assets/uploads/files/1619091974240-bb8c092d-c807-444a-8531-0575620f864b-image.png" alt="bb8c092d-c807-444a-8531-0575620f864b-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">The underlined path is a clickable link; this line shows the format you would recreate in your own console output in order to cause the console parser to turn it into a link for you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65237</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65237</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Thu, 22 Apr 2021 11:47:51 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Thu, 22 Apr 2021 04:22:38 GMT]]></title><description><![CDATA[<p dir="auto">I have progressed. Using the python scintilla functions i have managed to find all ocurences of the selected text.<br />
Very very stupidly, i have not considered, at all, how i am going to allow the user to double click on a console line and go to the found line.<br />
Any ideas?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65234</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65234</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Thu, 22 Apr 2021 04:22:38 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Thu, 22 Apr 2021 02:52:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Thanks again for all the help. I really appreciate it.</p>
<p dir="auto">I am thinking i might have to implement a search using python/scintilla. I figure i will have to;</p>
<ol>
<li>get the selected text using editor.getText()??</li>
<li>loop through using editor.search(), writing the results to the console()</li>
</ol>
<p dir="auto">Does that sound possible and/or wise?</p>
<p dir="auto">Also, Is it possible to attach a python script to a keystroke like shift+ctrl+f</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65232</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65232</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Thu, 22 Apr 2021 02:52:05 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Wed, 21 Apr 2021 12:08:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a> said in <a href="/post/65196">Is it possible to map multiple keys to notepad++ functions?</a>:</p>
<blockquote>
<p dir="auto">Effectively launching the search dialog (npp_sendmsg NPPM_MENUCOMMAND 0 IDM_SEARCH_FIND) and then triggering the “Find All in Current Document” button</p>
</blockquote>
<p dir="auto">You’d probably also want to set some options a certain way, e.g. <em>Match case</em>, <em>Search Mode</em>, etc. before initiating your search.</p>
<p dir="auto">Overall, this is not an “easy” thing to do.</p>
<p dir="auto">Here are some previous attempts on such a topic:</p>
<ul>
<li><a href="https://community.notepad-plus-plus.org/topic/20312/how-to-start-a-search-automatically">https://community.notepad-plus-plus.org/topic/20312/how-to-start-a-search-automatically</a></li>
<li><a href="https://community.notepad-plus-plus.org/topic/12747/right-click-find-all-in-current-document">https://community.notepad-plus-plus.org/topic/12747/right-click-find-all-in-current-document</a></li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/65199</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65199</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 21 Apr 2021 12:08:48 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Wed, 21 Apr 2021 00:53:18 GMT]]></title><description><![CDATA[<p dir="auto">Thanks to your awesome help i have found how to trigger functions within NppExec so i can map functions to multiple keys.</p>
<p dir="auto">I would like to be able to select some text in the edit window and then hit Shift+F8 and Notepad++ would search the document for all occurences of the selected text.<br />
Effectively launching the search dialog (npp_sendmsg NPPM_MENUCOMMAND 0 IDM_SEARCH_FIND) and then triggering the “Find All in Current Document” button (Which is where i need help)</p>
<p dir="auto">Thanks again for your help</p>
]]></description><link>https://community.notepad-plus-plus.org/post/65196</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/65196</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Wed, 21 Apr 2021 00:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Thu, 15 Apr 2021 06:35:45 GMT]]></title><description><![CDATA[<p dir="auto">Thanks once again. I really appreciate it</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64990</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64990</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Thu, 15 Apr 2021 06:35:45 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Wed, 14 Apr 2021 12:07:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/anthony-blinco" aria-label="Profile: Anthony-Blinco">@<bdi>Anthony-Blinco</bdi></a> said in <a href="/post/64957">Is it possible to map multiple keys to notepad++ functions?</a>:</p>
<blockquote>
<p dir="auto">have found and downloaded python for notepad++</p>
</blockquote>
<p dir="auto">Presume you mean the PythonScript plugin?</p>
<blockquote>
<p dir="auto">Is there any documentation on integrating it and launching my python scripts to interact with notepad++?</p>
</blockquote>
<p dir="auto">Well, there should be, on the plugin’s site.<br />
Also, some good infos <a href="https://community.notepad-plus-plus.org/post/62027">HERE</a>.</p>
<p dir="auto">Maybe to get you going quickly, on your original need, I’d suggest creating the following script:</p>
<pre><code class="language-z"># -*- coding: utf-8 -*-

from Npp import notepad, MENUCOMMAND

notepad.menuCommand(MENUCOMMAND.SEARCH_FIND)
</code></pre>
<p dir="auto">and then you could bind execution of the script to, for example the F8 key, giving you Ctrl+f and F8 basically doing the same thing.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64966</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64966</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 14 Apr 2021 12:07:02 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Wed, 14 Apr 2021 02:11:43 GMT]]></title><description><![CDATA[<p dir="auto">I have found and downloaded python for notepad++<br />
Is there any documentation on integrating it and launching my python scripts to interact with notepad++?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64957</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64957</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Wed, 14 Apr 2021 02:11:43 GMT</pubDate></item><item><title><![CDATA[Reply to Is it possible to map multiple keys to notepad++ functions? on Wed, 14 Apr 2021 02:07:20 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much. Python sounds like it might be a solution for me.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/64956</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/64956</guid><dc:creator><![CDATA[Anthony Blinco]]></dc:creator><pubDate>Wed, 14 Apr 2021 02:07:20 GMT</pubDate></item></channel></rss>