Community
    • Login

    jn Notepad++ Plugin snags shortcuts

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 4 Posters 815 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.
    • GubithG
      Gubith
      last edited by

      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.

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Gubith
        last edited by

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

        Probably shouldn’t be doing this.

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

        GubithG 1 Reply Last reply Reply Quote 0
        • GubithG
          Gubith @Alan Kilborn
          last edited by

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

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Gubith
            last edited by

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

            TroshinDVT 1 Reply Last reply Reply Quote 2
            • GubithG
              Gubith
              last edited by

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

              EkopalypseE 1 Reply Last reply Reply Quote 0
              • EkopalypseE
                Ekopalypse @Gubith
                last edited by

                @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
                • TroshinDVT
                  TroshinDV @Alan Kilborn
                  last edited by

                  @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
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors