<?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[Full line selection and keyboard shortcut]]></title><description><![CDATA[<p dir="auto">Hello,<br />
It would be nice to be able to put the cursor on a line, and without selecting anything, press Ctrl + C and be able to copy the whole line.</p>
<p dir="auto">Would it be possible to add the option?</p>
<p dir="auto">I would also like to know how to add to the keyboard shortcut, the option to select all, I can not find it in the list.</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22506/full-line-selection-and-keyboard-shortcut</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 14:29:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22506.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 06 Feb 2022 12:37:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Sat, 10 Feb 2024 19:52:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/socu" aria-label="Profile: SoCu">@<bdi>SoCu</bdi></a> said in <a href="/post/92806">Full line selection and keyboard shortcut</a>:</p>
<blockquote>
<p dir="auto">you can see that with each update you have to reconfigure everything that has been changed, I think this would not have to be changing with each update.</p>
</blockquote>
<p dir="auto">No, that’s not true.<br />
However, if the author of Notepad++ “adjusts” keycombos for a new release (there’s been some mumbo jumbo with Ctrl+c lately), then you might have to.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92818</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92818</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 10 Feb 2024 19:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Sat, 10 Feb 2024 18:13:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello, anyone has any problem with the <a href="http://CopySelectionOrCopyCaretLine.py" rel="nofollow ugc">CopySelectionOrCopyCaretLine.py</a> ?</p>
<p dir="auto">I think it happens to me since this last update of Notepad, I noticed that, when copying no longer did that flashing, I went to check if the keyboard was unconfigured, and I realized that the line is marked in color, that seems that there is some conflict, I have always had that key combination set.</p>
<p dir="auto"><img src="https://i.imgur.com/7D7BWsK.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">As you can see in that screenshot, it is not the only one showing conflicts, how can I fix this problem to continue using this plugin ?</p>
<p dir="auto"><strong>Edited:</strong><br />
Ok, that’s it, sorry for asking, I don’t know why the default Copy option was activated with the same combination, you can see that with each update you have to reconfigure everything that has been changed, I think this would not have to be changing with each update.</p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/92806</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/92806</guid><dc:creator><![CDATA[SoCu]]></dc:creator><pubDate>Sat, 10 Feb 2024 18:13:45 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Mon, 07 Feb 2022 18:41:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/socu" aria-label="Profile: socu">@<bdi>socu</bdi></a> said in <a href="/post/73851">Full line selection and keyboard shortcut</a>:</p>
<blockquote>
<p dir="auto">it would be nice that the listings that appears in the “keyboard shortcuts”, could have an option to sort them, everything would be easier to find.</p>
</blockquote>
<p dir="auto">I don’t think that is necessarily true, as sometimes to know what the shortcuts are referring to, you need to see the entries around them.</p>
<p dir="auto">The current ordering pretty much follows the ordering in the main menu, left-to-right, top to bottom.  This is shown in the <em>Category</em> column in the <em>Shortcut Mapper</em>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73853</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73853</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 07 Feb 2022 18:41:45 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Mon, 07 Feb 2022 18:38:18 GMT]]></title><description><![CDATA[<p dir="auto">I got it, it is what I was looking for, it has cost me a little, because the translation that makes Google is not very clear.</p>
<p dir="auto">The problem I had is that the script was displayed, or I have not seen it the first time.</p>
<p dir="auto"><img src="https://i.imgur.com/sNIkvYA.jpg" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">By the way, since I’m new here, and also in Notepad, I’m going to make a request to those of you who have more strength here in the forum, if you can communicate that it would be nice that the listings that appears in the “keyboard shortcuts”, could have an option to sort them, everything would be easier to find.</p>
<p dir="auto">Thank you very much.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73851</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73851</guid><dc:creator><![CDATA[SoCu]]></dc:creator><pubDate>Mon, 07 Feb 2022 18:38:18 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Mon, 07 Feb 2022 15:08:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/socu" aria-label="Profile: socu">@<bdi>socu</bdi></a></p>
<p dir="auto">So I think you are doing the correct PythonScript setup, from what you’ve shown, with an end goal of tying execution of the script to a keycombo.</p>
<p dir="auto">The next thing to do is to go into the <em>Shortcut Mapper</em> and find the command on the <em>Plugins</em> tab, and actually link it to a keycombination.</p>
<p dir="auto">If you are going to assign it to an existing keycombo, you will need to delete the originally assigned function.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73829</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73829</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Mon, 07 Feb 2022 15:08:01 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Mon, 07 Feb 2022 14:59:46 GMT]]></title><description><![CDATA[<p dir="auto">Hello, Thank you very much to all, and sorry for not responding earlier, I have not received mail notification of new responses.</p>
<p dir="auto">As some options are in English, it is difficult for me to understand some things, and believe it or not it is the first time I use it, I have heard very well of Notepad, but it has been for programming issues, in my case I use it as a notepad,<br />
I have tried a little the HTML theme, I will ask a question outside of this post as they are different topics.</p>
<p dir="auto">Thanks for the screenshots, I can see where those options are, now I am trying to test the <a href="http://CopySelectionOrCopyCaretLine.py" rel="nofollow ugc">CopySelectionOrCopyCaretLine.py</a> script, but I am not linking the script well.</p>
<p dir="auto"><img src="https://i.imgur.com/MZxbN7K.jpg" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">P.S. sorry, if the text is not understood, I am using a translator.</p>
<p dir="auto">Best regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73827</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73827</guid><dc:creator><![CDATA[SoCu]]></dc:creator><pubDate>Mon, 07 Feb 2022 14:59:46 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Sun, 06 Feb 2022 20:18:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/michael-vincent" aria-label="Profile: michael-vincent">@<bdi>michael-vincent</bdi></a> said in <a href="/post/73788">Full line selection and keyboard shortcut</a>:</p>
<blockquote>
<p dir="auto">Unless I’m misunderstanding, this is build-in to Scintilla and thus Notepad++.  It’s called SCI_LINECOPY and by default, the SHIFT+CTRL+X</p>
</blockquote>
<p dir="auto">Yes, but a key point about that is that it is a different keycombo to what one is used to for copying.  Nobody wants that:  To have to think about it in the heat of coding battle:  “Let’s see, I want to copy, which keycombo is that again…?”</p>
<p dir="auto">As to simpler methods than my script above, one could see my comment <a href="https://community.notepad-plus-plus.org/post/28696">HERE</a> where I said “Why is the script any more complicated than this one line?”</p>
<p dir="auto">The answer to that is:  more features.  I like my little flash effect from the longer script I posted above.  And…<em><strong>all</strong></em> copy functionality is on one keycombo.  :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73789</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73789</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 06 Feb 2022 20:18:54 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Sun, 06 Feb 2022 19:54:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/socu" aria-label="Profile: socu">@<bdi>socu</bdi></a> said in <a href="/post/73775">Full line selection and keyboard shortcut</a>:</p>
<blockquote>
<p dir="auto">It would be nice to be able to put the cursor on a line, and without selecting anything, press Ctrl + C and be able to copy the whole line.</p>
</blockquote>
<p dir="auto">Unless I’m misunderstanding, this is build-in to Scintilla and thus Notepad++.  It’s called <code>SCI_LINECOPY</code> and by default, the <code>SHIFT+CTRL+X</code> is associated with it as a shortcut:</p>
<p dir="auto">Settings =&gt; Shortcut Mapper…</p>
<p dir="auto"><img src="/assets/uploads/files/1644177266727-2237df2a-ba08-4720-92eb-5075cf27eba9-image.png" alt="2237df2a-ba08-4720-92eb-5075cf27eba9-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Cheers.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73788</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73788</guid><dc:creator><![CDATA[Michael Vincent]]></dc:creator><pubDate>Sun, 06 Feb 2022 19:54:29 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Sun, 06 Feb 2022 18:39:29 GMT]]></title><description><![CDATA[<p dir="auto">I dusted off my PythonScript for doing this, and will show it here as <code>CopySelectionOrCopyCaretLine.py</code>.  This version does the desired functionality but it also has a twist:  It flashing what is being copied to the clipboard (for the standard cases), so the user has some visual confirmation that the hotkey for it was actually pressed.  Recommend tying the script to Ctrl+c or Ctrl+Insert if you like it.</p>
<pre><code class="language-z"># -*- coding: utf-8 -*-
from __future__ import print_function

from Npp import *
import inspect
import os
import time

#-------------------------------------------------------------------------------

class CoSOCCL(object):

    def __init__(self):

        self.this_script_name = inspect.getframeinfo(inspect.currentframe()).filename.split(os.sep)[-1].rsplit('.', 1)[0]

        if editor.getSelections() &gt; 1:
            # multiple selections are active
            if editor.getSelectionEmpty():
                self.mb('Multiple empty selections specified -- nothing to copy!')
            else:
                # simply copy the multi-selected data to the clipboard
                editor.copy()
            return

        if not editor.getSelectionEmpty():
            # a single text selection of non-zero length exists; simply copy it to the clipboard
            editor.copy()
            self.selected_text_flash()  # provide visual confirmation of what is being copied
            return

        # no selected text and only one caret active; copy the contents of the entire line the caret is on to the clipboard
        current_position = editor.getCurrentPos()
        current_line_number = editor.lineFromPosition(current_position)
        start_of_curr_line_pos = editor.positionFromLine(current_line_number)
        editor.setSel(start_of_curr_line_pos, start_of_curr_line_pos + len(editor.getLine(current_line_number)))
        editor.copy()
        self.selected_text_flash()  # provide visual confirmation of what is being copied
        editor.setEmptySelection(current_position)

    def selected_text_flash(self, times_to_flash=3, delay_betw_flashes=0.05):
        # see part of this thread:  https://sourceforge.net/p/npppythonscript/discussion/1188886/thread/b882571d/?page=0
        for j in range(times_to_flash):
            time.sleep(delay_betw_flashes)
            editor.hideSelection(True)
            if j != times_to_flash - 1: time.sleep(delay_betw_flashes)
            editor.hideSelection(False)

    def mb(self, msg, flags=0, title=''):  # a message-box function
        return notepad.messageBox(msg, title if title else self.this_script_name, flags)

#-------------------------------------------------------------------------------

if __name__ == '__main__': CoSOCCL()
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/73786</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73786</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 06 Feb 2022 18:39:29 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Sun, 06 Feb 2022 12:50:34 GMT]]></title><description><![CDATA[<p dir="auto">More info on the “press Ctrl + C and be able to copy the whole line” part of the OP’s question can be found <a href="https://community.notepad-plus-plus.org/topic/14920/copy-entire-line-without-selecting-it/">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/73777</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73777</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 06 Feb 2022 12:50:34 GMT</pubDate></item><item><title><![CDATA[Reply to Full line selection and keyboard shortcut on Sun, 06 Feb 2022 12:47:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/socu" aria-label="Profile: socu">@<bdi>socu</bdi></a> said in <a href="/post/73775">Full line selection and keyboard shortcut</a>:</p>
<blockquote>
<p dir="auto">press Ctrl + C and be able to copy the whole line</p>
</blockquote>
<p dir="auto">There a plugin for this although all I can do is point you to it, I can’t recommend it as I don’t use it (I favor a PythonScript solution):</p>
<p dir="auto"><img src="/assets/uploads/files/1644151533597-c7885070-a5a1-402e-817b-12b55d81fb28-image.png" alt="c7885070-a5a1-402e-817b-12b55d81fb28-image.png" class=" img-fluid img-markdown" /></p>
<hr />
<hr />
<hr />
<hr />
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/socu" aria-label="Profile: socu">@<bdi>socu</bdi></a> said in <a href="/post/73775">Full line selection and keyboard shortcut</a>:</p>
<blockquote>
<p dir="auto">how to add to the keyboard shortcut, the option to select all, I can not find it in the list.</p>
</blockquote>
<p dir="auto">Are you talking about Ctrl+a ??  Not hard to find in the list:</p>
<p dir="auto"><img src="/assets/uploads/files/1644151621829-0ac9e78b-b1af-41c0-b72e-58393d430b2a-image.png" alt="0ac9e78b-b1af-41c0-b72e-58393d430b2a-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/73776</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/73776</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sun, 06 Feb 2022 12:47:39 GMT</pubDate></item></channel></rss>