How to set the default view
-
@PeterJones Here is the Debug info:
Notepad++ v7.9.5 (64-bit) Build time : Mar 21 2021 - 02:13:17 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS Name : Windows 10 Home (64-bit) OS Version : 2004 OS Build : 19041.985 Current ANSI codepage : 1252 Plugins : DSpellCheck.dll HexEditor.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll XMLTools.dll
-
@PeterJones and here is the screenshot your requested
-
@PeterJones I see in the debug info that the Local Conf mode = off.
Does that mean that N++ is not using%AppData%
as the folder to store the config file in? -
@Bart-Terryn I do have a config file in the
%AppData
folder and it is writable for me
(would be very strange if not:-) -
@Bart-Terryn said in How to set the default view:
@PeterJones I see in the debug info that the Local Conf mode = off.
Does that mean that N++ is not using%AppData%
as the folder to store the config file in?Actually, “Local Conf mode = off” means it is using
%AppData%\Notepad++
as the config-file location. (if local config is on, it is in “portable” mode, and uses the same folder as notepad++.exe is run from)I do have a config file in the %AppData folder and it is writable for me
(would be very strange if not:-)Yes, it would be strange. But we’ve seen it happen. (Sometimes, when people log in as a separate Administrator, or have to elevate privileges but as the current user, to do the installation, then permissions don’t get set right.
Did you just check
%AppData%
, or did you also check%AppData%\Notepad++\
and the%AppData%\Notepad++\config.xml
?If you believe you have write permission to that file, try closing all Notepad++, renaming it (say,
keep-config.xml
), and then re-start Notepad++: it should create a freshconfig.xml
in that folder when you exit again.I ran a quick experiment: have all panels turned off, then exit Notepad++ completely. Copy
config.xml
toconfig1.xml
. Then I re-ran Notepad++, turned various panels on, and exit Notepad++ completely. Copyconfig.xml
toconfig2.xml
. You can look at the file dates of those files – they should be a few minutes different, depending on how fast you are. If they aren’t, then you didn’t actually write the files like you thought you should. Also, run Notepad++, and openconfig1.xml
andconfig2.xml
side-by-side. If you have Compare Plugin, use that to compare the two; if not, you can just View > Syncrhonize Vertical Scrolling and manually compare. I would expect there to be differences in the<GUIConfig name="DockingManager" ...
section, with different<PluginDlg ... />
entries, depending on which panels are in view. -
@PeterJones Peter, let me first thank you for the time you have put into this so far.
Here is what I did:
- renamed
config.xml
toconfig-mine.xml
from%AppData%\Notepad++
folder - start Notepad++
- switched on the function list window
- exited Notepad++
- started Notepad++ again - but function list window did not show up
I guess the line that is important in the newly create config.xml file is the following one:
<PluginDlg pluginName="Notepad++::InternalFunction" id="44084" curr="1" prev="-1" isVisible="yes" />
But that does not to seem to be enough in order to make Notepad++ start with the function list visible (same goes for the project panel 1)(if I tried to copy in the complete content of the config file, I could not submit as things got flagged down as spam)
- renamed
-
@PeterJones Forgot to tell you that this used to work without a problem on my current Windows 10 Home laptop. But at some point in time (can’t remember when exactly) things stopped working correctly. And now it annoyed me enough for me to be willing to go to the bottom of this.
-
@Bart-Terryn said in How to set the default view:
But that does not to seem to be enough in order to make Notepad++ start with the function list visible (same goes for the project panel 1)
But that is enough – or, at least, it is enough for me. I don’t understand why it’s not working for you. Literally toggling the isVisible=“yes” to “no” and back is enough for me to control whether the functionList panel is visible when I first run Notepad++ or not. If
None of your plugins should be getting in the way, because I have all those plugins, and it works for me.
What are your Settings > Preferences > Multi-Instance and Settings > Preferences > Backup settings?
When you are running Notepad++, are you selecting a specific session, or do you use any command line options? (I cannot wait until the v8.0 Debug Info becomes the norm, because it lists command line options and the cloud-config state as well.)
Experiment: Close all instances of Notepad++. Download a fresh Notepad++ portable zipfile, and unzip to a different directory where you know you have write permission (like into a folder on your Desktop). Then using that portable version (ie, double-clicking on
notepad++.exe
in that folder), and see whether that portable version properly remembers the panel state? Because a fresh version does for me, and if it’s some setting for you, then a fresh portable won’t have that setting. -
@PeterJones
Aha I found the problem.
I normally start Notepad++ from an entry on the button bar of Total Commander.
Now this button had as parameters:-nosession %P%N
.
I removed the-nosession
setting and now Notepad++ remembers the last setting for the function list window (and others).Peter it was your suggestion to install a portable version that lead me to finding this. As the portable Notepad++ did not suffer from this problem. Which then made me find out that when I double clicked on the normal Notepad++ I did not have the problem either…
As far as I know the -nosession setting should only prevent Notepad++ from reopening the files that you had last open.
But apparently it does more than just this.
Do you think I should open up a ticket for this?Once again Peter many thanks for your help
-
@Bart-Terryn said in How to set the default view:
As far as I know the -nosession setting should only prevent Notepad++ from reopening the files that you had last open.
But apparently it does more than just this.
Do you think I should open up a ticket for this?Download the portable v8.0-RC2 and see if it behaves the same in the newest version. If it does, then I’d say it’s at least worth reporting. If you put in a new issue, make sure to include the Debug Info for both v7.9.5 and v8.0-RC2 and say it happens in both, so that they know it’s not just a regression in v8.0.