How Do I Keep Multiple Tabs Saved in Notepad++?
-
As far as Save As, I was trying to save the tab files to a file type that only N++ will recognize so all I’ll have to do is click on the file instead of using Open With.
If you wanted to associate the .TEX extension with Notepad++, you would do that in Windows (often, an Open With plus the checkbox to say “remember this” or whatever Windows’ phrasing is), then do so.
After that, double-clicking on .TEX files will open them in Notepad++.
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.Then I used Everything to try to change it, but it reverted back to .txt.
Not really sure. We’re not experts on Everything around here (so to speak).
When I went to close N++ to see what would happen, it gave a message that I would lose the info.
Yes, unsaved files will be lost if you don’t save them, and if you don’t have the Settings > Preferences > Backup > Enable session snapshot and periodic backup turned on.
I went ahead and closed it. I reopened N++and all of the tabs with all of the info are there!
I am not sure what you mean by that. Do you mean that you changed a file, didn’t save it, and yet when you reloaded, the file was there with the changes intact? That usually only happens when you have the snapshot feature enabled (as described above)… but then it wouldn’t have prompted you about losing info.
What do you think happened?
I don’t know. I don’t think you’ve described the full sequence of events completely enough, but I could be wrong. But either way, I’m not sure exactly what happened.
Maybe someone else can chime in, because I’m not sure there’s much more I can do to help you with this situation.
-
This post is deleted! -
@PeterJones said in How Do I Keep Multiple Tabs Saved in Notepad++?:
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.
-
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
-
@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:
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.
-
@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:
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.
-
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.
-
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.
-
@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
-
@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.
-
@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.
-
@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)
-
@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.
-
P PeterJones referenced this topic on