Community
    • Login

    How Do I Keep Multiple Tabs Saved in Notepad++?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    18 Posts 4 Posters 9.8k 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.
    • Troglo37T
      Troglo37
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • Troglo37T
        Troglo37 @PeterJones
        last edited by

        @PeterJones said in How Do I Keep Multiple Tabs Saved in Notepad++?:

        @Troglo37 ,

        If you want to save a file as .TEX, you need to type filename.tex in the Notepad++ Save/SaveAs dialog. The dropdown choices in the Save As file-type pulldown are compiled into Notepad++, so you aren’t going to have a way to influence them based on your custom file types. Instead, just type the extension you want.

        Thanks for that info PeterJones.

        1 Reply Last reply Reply Quote 0
        • Troglo37T
          Troglo37
          last edited by

          FYI, I just made and renamed another tab. Of course, as a backup, I copied and pasted the info into swriter, but didn’t save it.

          I clicked the Save button on the N++ toolbar and it opened the dialog box. I decided to close it and then closed N++. I reopened, and the tab with all of the info is there.

          I know you mentioned something about what I may have done to the configuration that might have allowed the tab thing to work.

          The only thing I remember is a while back I added what I guess could be called a hack that allows me to have more entries. The only problem is that once N++ closes, it erases the extra entries down to the default amount.

          I found the “hack” to add extra entries (in the second post by Scott Sumner) in this thread I started several years ago. Unfortunately, this issue hasn’t been addressed by the dev. https://community.notepad-plus-plus.org/topic/13320/how-do-i-delete-search-entries?_=1622755358125

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Troglo37
            last edited by

            @Troglo37 said in How Do I Keep Multiple Tabs Saved in Notepad++?:

            FYI, I just made and renamed another tab. Of course, as a backup, I copied and pasted the info into swriter, but didn’t save it.

            I clicked the Save button on the N++ toolbar and it opened the dialog box. I decided to close it and then closed N++. I reopened, and the tab with all of the info is there.

            “the dialog box” = does that mean the Save dialog box, or something else? Because I don’t know why it would be popping up a dialog box when you hit SAVE, unless you are trying to save a file that hasn’t ever been saved before. It would really help you to get help if you would actually tell us what’s going on, rather than giving cryptic hints.

            Based on “I decided to close it”, I assume you cancelled the save dialog without giving the file a name. That sounds foolish in the extreme to me, since the whole reason you hit SAVE was to save the file. Why you would then choose to not save is beyond me.

            “I reopened, and the tab with all of the info is there” = I assume this means that after not saving your file, you exited Notepad++, and then when you re-started Notepad++, the file was there, even though you had never saved it. That is likely because when you install Notepad++, it defaults to having the Settings > Preferences > Backup with the “current session” and “session snapshot” checkboxes checked on:
            a2ff4d46-7bc8-4085-8bd5-719c944bfe7f-image.png

            I know you mentioned something about what I may have done to the configuration that might have allowed the tab thing to work.

            “the tab thing” shows you still don’t know what a tab is vs. what a file is. I unfortunately cannot explain it any better.

            The “something about … configuration” was my saying Settings > Preferences > Backup, which is supposed to communicate to you that you go to the menu bar, click the Settings menu, then click the Preferences menu option, then in the dialog that shows up, you click on the word Backup. (That’s fairly standard nomenclature in any forums and documentation sets for choosing menu entries in applications on the Windows OS – including some of Microsoft’s own documentation. Settings | Preferences | Backup is another common way of rendering the same action – choosing an entry from a menu.)

            I had previously mentioned that because you implied that it was asking you to save unsaved files, so I was telling you what option controls whether or not it does that. Now you are saying that the opposite is likely true, and that option was already turned on; this implies to me that really, back in your original request, it wasn’t asking you to save because you were closing notepad++ without saving, but that it was really asking you to pick a name for the file that you explicitly told it to save.

            The only thing I remember is a while back I added what I guess could be called a hack that allows me to have more entries. …

            If it hadn’t been for the link to the conversation between you and Scott, I would have had no clue what that was trying to indicate; so thanks for the link, anyway. No, changing the number of items available in the “search history” will not in any way, shape, or form influence how files present in tabs are saved.

            Unfortunately, this issue hasn’t been addressed by the dev

            I just poked that issue#2931: Scott, who you were talking with in that other topic from 2017, is now on the dev team, and I thought he might find it interesting to revisit the workaround he did 4 years ago and put it into the actual codebase.

            Troglo37T 1 Reply Last reply Reply Quote 0
            • Troglo37T
              Troglo37 @PeterJones
              last edited by

              @PeterJones said in How Do I Keep Multiple Tabs Saved in Notepad++?:

              @Troglo37 said in How Do I Keep Multiple Tabs Saved in Notepad++?:

              FYI, I just made and renamed another tab. Of course, as a backup, I copied and pasted the info into swriter, but didn’t save it.

              I clicked the Save button on the N++ toolbar and it opened the dialog box. I decided to close it and then closed N++. I reopened, and the tab with all of the info is there.

              “the dialog box” = does that mean the Save dialog box, or something else? Because I don’t know why it would be popping up a dialog box when you hit SAVE, unless you are trying to save a file that hasn’t ever been saved before. It would really help you to get help if you would actually tell us what’s going on, rather than giving cryptic hints.

              I don’t understand it either. That’s why I came to the forum. The main tab never opens a Save dialog box by clicking on the Save button on the taskbar. I thought the new tabs I made should behave in the same way.

              I just made a new entry in one of the new tabs. The dialog box opened and this time I saved it. I didn’t bother changing the name or extension of the file. Now it saves without opening a Save dialog box like the other two new tabs I made.

              So apparently, I have to save the tab/file using the Save dialog box, and hereinafter, it will no longer open a Save dialog box?

              Based on “I decided to close it”, I assume you cancelled the save dialog without giving the file a name. That sounds foolish in the extreme to me, since the whole reason you hit SAVE was to save the file. Why you would then choose to not save is beyond me.

              Because at first even after I used the Save dialog box, it kept opening it anyway after clicking the Save button on the toolbar. So I figured, rightly so, that if I didn’t use the Save dialog box, it would save the tab/file.

              I’m still confused as to why at first saving using the Save dialog box wouldn’t work. Maybe closing and opening N++ made it behave correctly?

              “I reopened, and the tab with all of the info is there” = I assume this means that after not saving your file, you exited Notepad++, and then when you re-started Notepad++, the file was there, even though you had never saved it. That is likely because when you install Notepad++, it defaults to having the Settings > Preferences > Backup with the “current session” and “session snapshot” checkboxes checked on:
              a2ff4d46-7bc8-4085-8bd5-719c944bfe7f-image.png

              That’s correct. I just checked. ‘Backup on save’ is set to None. Is that what initially caused the Save dialog box to keep popping up?

              I had previously mentioned that because you implied that it was asking you to save unsaved files, so I was telling you what option controls whether or not it does that. Now you are saying that the opposite is likely true, and that option was already turned on; this implies to me that really, back in your original request, it wasn’t asking you to save because you were closing notepad++ without saving, but that it was really asking you to pick a name for the file that you explicitly told it to save.

              Oh.

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @Troglo37
                last edited by

                @Troglo37 ,

                The main tab never opens a Save dialog box by clicking on the Save button on the taskbar.

                There is no “main tab”. There are Tabs. No tab has any particular preference over another.

                I have to assume that whatever file is open in that tab already has a name, so hitting the SAVE button just saves the file.

                I have to save the tab/file using the Save dialog box, and hereinafter, it will no longer open a Save dialog box?

                Yes, if you create a new file in Notepad++, the first time you save it, it has to pop open the dialog box in order to give the file a name. Windows notepad.exe works the same way: if you create a new file, it will ask you for a name when you save it.

                Because at first even after I used the Save dialog box, it kept opening it anyway after clicking the Save button on the toolbar. So I figured, rightly so, that if I didn’t use the Save dialog box, it would save the tab/file.

                You are relying on a feature of the program that you obviously don’t understand to save a file for you when you haven’t ever given the file a name. It works for you, because Notepad++'s default behavior is to protect you from yourself, if it at all can. But there are times when Windows OS crashes or other issues will prevent Notepad++ from correctly doing the background save, and then you will be out of luck. Best practice is to always give files a name by saving files to a known location, and save often, and make sure you have backups of critical data.

                I’m still confused as to why at first saving using the Save dialog box wouldn’t work.

                Because, as far as I can tell, you hit CANCEL instead of giving it a name and saving it.

                ‘Backup on save’ is set to None. Is that what initially caused the Save dialog box to keep popping up?

                No. “Backup on save” has nothing to do with the automatic hidden saving of files. That’s why I didn’t bother showing that part of dialog when I was talking about the feature I was describing.

                At this point, it looks like you’ve got your original problem sorted. Hopefully, my explanations (even if you don’t fully understand them) have started bringing you closer to understanding how file saving works. Good luck.

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

                  I for one am very uncertain how someone that has had some level of exposure to Notepad++ from Feb 22, 2017 (and possibly even earlier than that) can have such a confusion about how basic Notepad++ concepts work.

                  Michael VincentM 1 Reply Last reply Reply Quote 1
                  • Michael VincentM
                    Michael Vincent @Alan Kilborn
                    last edited by

                    @Alan-Kilborn said in How Do I Keep Multiple Tabs Saved in Notepad++?:

                    I for one am very uncertain how someone that has had some level of exposure to Notepad++ from Feb 22, 2017 (and possibly even earlier than that) can have such a confusion about how basic Notepad++ concepts work.

                    I nominate @PeterJones for Saint-hood! (He’s “listed” only a “Monsignor”, but after this exchange, deserves full honors)

                    Cheers

                    1 Reply Last reply Reply Quote 2
                    • Troglo37T
                      Troglo37
                      last edited by

                      @Alan-Kilborn @Michael-Vincent @PeterJones

                      I’m not a power user of N++. I know nothing about programming etc., but I’m certainly not computer illiterate. I only use it as a repository for links and names of video files I’ve DL. It’s the best program I’ve seen for this for many reasons.

                      So until now, I have years of links with the video names stored all in one tab. It became annoying to scroll through such a long list, so I decided to break them up into categories by using the tabs for each category to make them easier to navigate through.

                      So now you know why my understanding and knowledge of how N++ works is very limited.

                      Michael VincentM PeterJonesP 2 Replies Last reply Reply Quote 0
                      • Michael VincentM
                        Michael Vincent @Troglo37
                        last edited by

                        @Troglo37 said in How Do I Keep Multiple Tabs Saved in Notepad++?:

                        I only use it as a repository for links and names of video files I’ve DL

                        Wouldn’t browser bookmarks make much more sense here? And if they’re downloaded, why not just put them in a folder structure that describes categories and name the video files with a descriptive name?

                        If all you’re doing is maintaining a text list - then any text editor (Windows simple notepad.exe) would suffice and maybe not have all the other bells and whistles that may confuse you. Alternatively, a spreadsheet application (Microsoft Excel (paid), Google Sheets (free), etc) could store in columns the name, link and meta information and each spreadsheet tab could be a category.

                        Cheers.

                        Troglo37T 1 Reply Last reply Reply Quote 1
                        • PeterJonesP
                          PeterJones @Troglo37
                          last edited by

                          @Troglo37 said in How Do I Keep Multiple Tabs Saved in Notepad++?:

                          so I decided to break them up into categories by using the tabs for each category to make them easier to navigate through.
                          So now you know why my understanding and knowledge of how N++ works is very limited.

                          … and now you know that each tab is a different file. And if you want to properly save that file, you have to give it a name and make sure you know where it’s saving each file (so that you can find those files again later, or using a different application some day in the future)

                          1 Reply Last reply Reply Quote 0
                          • Troglo37T
                            Troglo37 @Michael Vincent
                            last edited by

                            @Michael-Vincent I’ve tried all of those. As far as I’m concerned, N++ is better than them. I like it because of the aethectics and various features it provides.

                            I began using Bookmarks in my browser as a backup about a year ago, but would never use that as my primary source.

                            @PeterJones said in How Do I Keep Multiple Tabs Saved in Notepad++?:

                            @Troglo37 said in How Do I Keep Multiple Tabs Saved in Notepad++?:

                            so I decided to break them up into categories by using the tabs for each category to make them easier to navigate through.
                            So now you know why my understanding and knowledge of how N++ works is very limited.

                            … and now you know that each tab is a different file. And if you want to properly save that file, you have to give it a name and make sure you know where it’s saving each file (so that you can find those files again later, or using a different application some day in the future)

                            I just checked and they’re all saved as individual files. Oh BTW, periodically I copy my N++ to an external drive as a backup in case my PC crashes.

                            1 Reply Last reply Reply Quote 1
                            • PeterJonesP PeterJones referenced this topic on
                            • First post
                              Last post
                            The Community of users of the Notepad++ text editor.
                            Powered by NodeBB | Contributors