• Login
Community
  • Login

jn Notepad++ Plugin snags shortcuts

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 4 Posters 821 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.
  • G
    Gubith
    last edited by May 5, 2021, 1:02 AM

    jn Notepad++ maps keys that don’t show in the Shortcut Mapper thing.

    C:\Program Files (x86)\Notepad++\plugins\jN\jN\includes\Zen Coding.js

    // init engine
    addMenuItem('Expand Abbreviation', 'expand_abbreviation', 'Ctrl+E');
    addMenuItem('Wrap with Abbreviation', 'wrap_with_abbreviation', 'Ctrl+Shift+A');
    addMenuItem('Balance Tag', 'match_pair_outward', 'Ctrl+Shift+D');
    addMenuItem('Next Edit Point', 'next_edit_point', 'Ctrl+Alt+]');
    addMenuItem('Previous Edit Point', 'prev_edit_point', 'Ctrl+Alt+[');
    addMenuItem('Go to Matching Pair', 'matching_pair', 'Ctrl+Alt+L');
    addMenuItem('Merge Lines', 'merge_lines', 'Ctrl+Alt+M');
    addMenuItem('Toggle Comment', 'toggle_comment', 'Alt+/');
    addMenuItem('Split/Join Tag', 'split_join_tag', 'Ctrl+\'');
    addMenuItem('Remove Tag', 'remove_tag', 'Ctrl+Shift+\'');
    
    // v0.7
    addMenuItem('Evaluate Math Expression', 'evaluate_math_expression', 'Ctrl+Alt+Y');
    
    // don't know how up & down key codes should be written so I commented out this section
    //addMenuItem('Increment number by 1', 'increment_number_by_1', 'Ctrl+Up');
    //addMenuItem('Decrement number by 1', 'decrement_number_by_1', 'Ctrl+down');
    //addMenuItem('Increment number by 0.1', 'increment_number_by_01', 'Alt+UP');
    //addMenuItem('Decrement number by 0.1', 'decrement_number_by_01', 'Alt+DOWN');
    //addMenuItem('Increment number by 10', 'increment_number_by_10', 'Ctrl+Alt+UP');
    //addMenuItem('Decrement number by 10', 'decrement_number_by_10', 'Ctrl+Alt+DOWN');
    
    addMenuItem('Select Next Item', 'select_next_item', 'Ctrl+.');
    addMenuItem('Select Previous Item', 'select_previous_item', 'Ctrl+,');
    addMenuItem('Reflect CSS Value', 'reflect_css_value', 'Ctrl+Shift+B');
    

    FYI.
    Probably shouldn’t be doing this.

    A 1 Reply Last reply May 5, 2021, 1:27 AM Reply Quote 0
    • A
      Alan Kilborn @Gubith
      last edited by May 5, 2021, 1:27 AM

      @Gubith said in jn Notepad++ Plugin snags shortcuts:

      Probably shouldn’t be doing this.

      Aren’t plugins free to do what they’d like?

      G 1 Reply Last reply May 5, 2021, 1:39 AM Reply Quote 0
      • G
        Gubith @Alan Kilborn
        last edited by May 5, 2021, 1:39 AM

        @Alan-Kilborn said in jn Notepad++ Plugin snags shortcuts:

        Aren’t plugins free to do what they’d like?

        Can but should not.

        Shift deleted it.

        Hardcore.

        A 1 Reply Last reply May 5, 2021, 11:29 AM Reply Quote 0
        • A
          Alan Kilborn @Gubith
          last edited by May 5, 2021, 11:29 AM

          @Gubith

          So from your original comment:

          FYI.
          Probably shouldn’t be doing this.

          I get the feeling that you are telling us something, like maybe we should correct this situation?
          If so, then you are in the wrong place.
          You’d need to contact the author of the plugin to make your opinion known.

          T 1 Reply Last reply May 6, 2021, 7:13 PM Reply Quote 2
          • G
            Gubith
            last edited by May 6, 2021, 12:56 AM

            My searches here did not help, but now that I’ve posted, it may help someone else.

            E 1 Reply Last reply May 6, 2021, 6:46 PM Reply Quote 0
            • E
              Ekopalypse @Gubith
              last edited by May 6, 2021, 6:46 PM

              @Gubith said in jn Notepad++ Plugin snags shortcuts:

              it may help someone else.

              hmm, so I don’t understand what you did to solve your problem, hopefully future readers will do.

              1 Reply Last reply Reply Quote 0
              • T
                TroshinDV @Alan Kilborn
                last edited by May 6, 2021, 7:13 PM

                @Alan-Kilborn said in jn Notepad++ Plugin snags shortcuts:

                You’d need to contact the author of the plugin to make your opinion known.

                т.е. надо уговорить автора плагина jN использовать интерфейс Мапера?
                С шорткатами в N++ постоянно проблемы.
                Так что мне приходится юзать модифицированный для анализа шорткатов.
                https://www.codeproject.com/Articles/42780/UI-Control-Data-Spy
                который может получать список команд меню.
                Screenshot_38.png

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