• Login
Community
  • Login

How to change order of document?

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
8 Posts 6 Posters 3.1k 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.
  • O
    Oleksandr
    last edited by Feb 25, 2019, 12:42 PM

    How to programmatically change the order of opened document?

    PS. Please don’t tell me about ability to di this with mouse - i mean only programmatically. :)
    Thanks!

    E M 2 Replies Last reply Feb 25, 2019, 2:38 PM Reply Quote 0
    • E
      Ekopalypse @Oleksandr
      last edited by Feb 25, 2019, 2:38 PM

      @Oleksandr

      by sending a WDN_NOTIFY message of type WDT_SORT

      1 Reply Last reply Reply Quote 4
      • M
        Meta Chuh moderator @Oleksandr
        last edited by Feb 25, 2019, 2:39 PM

        @Oleksandr

        ok, i will not show you how to sort tabs alphabetically by using the mouse … i will show you how to do it by using the KEYBOARD ;-)

        sort tabs alphabetically by using the keyboard:
        (this example is for english notepad++ localisation only)

        • hold down the [alt] key (keep it pressed until further notice)
        • press the keys [w] [w] [t] sequentially (one after the other)
        • release the [alt]key
        • press the [esc] key

        short summary: alt+wwt > esc

        note: the letters wwt will vary, depending on your notepad++ localisation, which i am not aware of.


        regarding “programmatically”:
        unfortunately messages, as used for example in macros, don’t work with the “window” menu, so i currently don’t know how to do that programmatically with the built in functions.

        1 Reply Last reply Reply Quote 3
        • G
          guy038
          last edited by guy038 Feb 25, 2019, 8:52 PM Feb 25, 2019, 8:36 PM

          Hello, @oleksandr, and All,

          If you have a lot of tabs, opened in Notepad++ and you are a little lost to find a specific tab, you may be interested by the excellent NavigateTo plugin. :-)) of Oleksii Maryshchenko ! Refer below :

          https://github.com/young-developer/nppNavigateTo/blob/master/README.md

          https://github.com/young-developer/nppNavigateTo/releases

          With that plugin, you won’t need the multi-line Tab Bar feature any more, and you’ll get a large editor window, whatever your number of opened tabs ;-))


          • Hit the default Ctrl + , shortcut or click on the Plugins > NavigateTo > Tabs option

          • Type in some chars in the Search / Filter zone

          • The total of files listed ( filtered or not ) is displayed in the title bar

          • Double-click on the desired file or hit the Enter key to select it and close the NavigateTo window

          • Hold down the Alt key and hit the Up or Down arrows to open and navigate in the search history list

          • Hold down the Shift key and hit the Up and Down arrows to use the real-time preview feature

          Remarks :

          • In last N++ versions, you’ll need to create a NavigateTo folder in your active Plugins folder and move the NavigateTo.dll library, inside

          • The Esc key closes the NavigateTo window

          • The | character, at beginning of the search zone invert the action of the search. For instance, |txt would display all files without extension .txt and |. would only list files without extension !

          • The NavigateTo window is re-sizable

          • The saved tabs/files are displayed in black color, unsaved ones are displayed in red color and read-only tabs/files are displayed in gray

          • If you have some tabs in the secondary N++ view, a new View column occurs, between the name and path columns

          Best Regards,

          guy038

          M O 2 Replies Last reply Feb 25, 2019, 9:22 PM Reply Quote 4
          • M
            Meta Chuh moderator @guy038
            last edited by Meta Chuh Feb 25, 2019, 9:24 PM Feb 25, 2019, 9:22 PM

            @guy038

            nice, i’ve just installed NavigateTo using plugins admin, and it comes in very, very handy.

            i often have at least five (!!!) multi tab lines opened, and often only remember either just a part of the path or a part of the file name.

            i’ve used your description [ctrl]+[,] > enter a small path part > hit [enter] and voilà, i’m quicker than ever before 👍

            also the case insensitive “not containing” search is very nice using path parts. i can now use |notepad to search for everything that does not have “notepad” anywhere in it’s path or filename.

            btw. it is always nice to read as much as i can, because i seem to profit from many user questions, because many of them get answers that are leading to cool and useful things, some of which i didn’t even know existed 😃

            1 Reply Last reply Reply Quote 4
            • O
              Oleksandr @guy038
              last edited by Mar 1, 2019, 10:58 AM

              @guy038 completely offtop

              1 Reply Last reply Reply Quote 0
              • A
                Alan Kilborn
                last edited by Mar 1, 2019, 1:44 PM

                Yep, all replies with the exception of possibly Eko’s are off-topic. Sometimes people reply this way in order to give future readers hints about how to accomplish something tangentially-related. It’s OK.

                1 Reply Last reply Reply Quote 2
                • P
                  Prahlad-Makwana4145
                  last edited by Feb 19, 2020, 5:47 AM

                  Hello, @Oleksandr

                  Follow these steps, To change order of document:

                  Step 1 :-First and foremost, add some marking letters or numbers before the section contents
                  and apply them with the same level of heading style.
                  Step 2 :-Next click “View” tab.
                  Step 3 :-Then check the “Navigation Pane” box in “Show” group.
                  Step 4 :-Now there shall be the navigation pane on the screen. You can see all sections with the
                  same level of heading style applied are there. You just need to click and drag it to the
                  position you want

                  I hope above Information will be useful for you.
                  Thank you.

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