Ctrl+t keyboard shortcut that swaps lines is not in shortcut mapper nor documented anywhere.
-
I posted the bug here but no one cared:
https://www.reddit.com/r/notepadplusplus/comments/198zyeh/bug_press_ctrlt_it_swaps_the_line_of_the_caret/
Do you know any place where this shortcut that exchanges lines is mentioned? Not in settings> shortcut mapper, you can search in the filter write “ctrl+t” it doesn’t show up.
Where do I post this bug? -
@pepe-pepe said:
I posted the bug here but no one cared
Probably because there is no bug.
where this shortcut that exchanges lines is mentioned? Not in settings> shortcut mapper
It IS in Shortcut Mapper:
you can search in the filter write “ctrl+t” it doesn’t show up
That’s because something like
ctrl+t
doesn’t do the filtering you want (maybe that’s why to you it is a bug?).A trick I use for quickly finding a shortcut is to try to assign it to a command that has no shortcut (but don’t go all the way through with the assignment). It will then exactly show you where the OTHER definition for that shortcut is, and you can cancel out of the new assignment.
-
@Alan-Kilborn Thank you very much! Now I can have a much better idea of the shortcut mapper. You are correct and I agree with all what you said. I used the technique you mentioned, it’s great.
I have these new ideas though:
-It seems, unlike all the other tabs on the shortcut mapper, that the “scintilla” tab doesn’t show as results in the “filter” search when I write “ctrl” for example. This is an unexpected inconsistency: the majority of users (not as savvy as you) will get stumped by it. Do you agree or is there a good reason why the filtering should remain like this?
Edit: Now I’m reading the user manual, it turns out scintilla shortcuts are complex. I’ll send you another message after my investigation.
Edit2: I will maybe submit a bug about one of my aspects talked by us before: scintilla shortcuts not appearing in filter search, since I created an alternative one with “ctrl+shift+L” (doesn’t matter) for one scintilla command (doesn’t matter which), and I searched with the filter for “ctrl” and it DID appear! That means maybe this is not intended, they are supposed to appear. -
Shortcut Mapper has a number of irksome inconsistencies; there are several open issues about it (some created by me).
Have a look on the github issues LIST.
-
@Alan-Kilborn I searched there for “is:issue is:open scintilla shortcut filter”, giving this: https://github.com/notepad-plus-plus/notepad-plus-plus/issues?q=is%3Aissue+is%3Aopen+scintilla+shortcut+filter, and it showed two posts. One from 2021, and another from 2022 from yourself! They are both very detailed perfect demonstrations of the same exact issue that I was about to file a bug for! So, I will instead vote for them, if you need me to vote for another thing tell me.
-
-
@pepe-pepe I personally hate that Notepad++ is the only program I know that doesn’t open new tab when Ctrl+T is pressed. It’s extremely annoying.
I wish this Shortcut Manager were open every time when someone presses Ctrl+T thrice or more in a row (obviously trying to open a new tab that way).
-
@nkomarov said in Ctrl+t keyboard shortcut that swaps lines is not in shortcut mapper nor documented anywhere.:
I personally hate that Notepad++ is the only program I know that doesn’t open new tab when Ctrl+T is pressed
Solve your hate problem by remapping File > New to Ctrl+t using the Shortcut Mapper (on the Settings menu). It’s really not that big of a deal.
-
@nkomarov said
I wish this Shortcut Manager were open every time when someone presses Ctrl+T thrice or more in a row (obviously trying to open a new tab that way).
That is an interesting idea though I’m not sure how a computer could best detect the difference between someone struggling to figure something out vs playing, exploring, seeing what looks better in the order of the lines, or taking advantage of the keyboard repeat to do something.
Also, filtering for
Ctrl+T
works in the shortcut mapper. There is an irritation in that the filter results are only for the current tab meaning you need to flip through all the tabs using the mouse as there do not seem to be keyboard actions that let me flip through the tabs. Ideally, the filter thing would show the results for all tabs.Also, you need to type out the characters
C
t
r
l
+
T
in the filter box and can’t do it via just aCtrl+T
on the keyboard to see whatCtrl+T
is mapped to. At least the filter is not case sensitive.