• Login
Community
  • Login

Ctrl+t keyboard shortcut that swaps lines is not in shortcut mapper nor documented anywhere.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 4 Posters 884 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.
  • P
    pepe pepe
    last edited by Jan 21, 2024, 2:56 PM

    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?

    A N 2 Replies Last reply Jan 21, 2024, 4:28 PM Reply Quote 0
    • A
      Alan Kilborn @pepe pepe
      last edited by Alan Kilborn Jan 21, 2024, 4:32 PM Jan 21, 2024, 4:28 PM

      @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:

      a41e0536-c2f5-4148-9665-fcb7b939e352-image.png

      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.

      P 1 Reply Last reply Jan 21, 2024, 7:43 PM Reply Quote 3
      • P
        pepe pepe @Alan Kilborn
        last edited by pepe pepe Jan 21, 2024, 8:54 PM Jan 21, 2024, 7:43 PM

        @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.

        A 1 Reply Last reply Jan 21, 2024, 8:57 PM Reply Quote 0
        • A
          Alan Kilborn @pepe pepe
          last edited by Alan Kilborn Jan 21, 2024, 9:03 PM Jan 21, 2024, 8:57 PM

          @pepe-pepe

          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 .

          P 1 Reply Last reply Jan 22, 2024, 3:15 AM Reply Quote 3
          • P
            pepe pepe @Alan Kilborn
            last edited by Jan 22, 2024, 3:15 AM

            @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.

            1 Reply Last reply Reply Quote 3
            • M Mark Olson referenced this topic on Feb 14, 2024, 5:05 AM
            • N
              nkomarov @pepe pepe
              last edited by Aug 30, 2024, 10:24 AM

              @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).

              A M 2 Replies Last reply Aug 30, 2024, 10:49 AM Reply Quote 1
              • A
                Alan Kilborn @nkomarov
                last edited by Aug 30, 2024, 10:49 AM

                @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.

                1 Reply Last reply Reply Quote 3
                • M
                  mkupper @nkomarov
                  last edited by Aug 30, 2024, 6:18 PM

                  @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 a Ctrl+T on the keyboard to see what Ctrl+T is mapped to. At least the filter is not case sensitive.

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