npp-explorer-plugin icon indicating copy to clipboard operation
npp-explorer-plugin copied to clipboard

Options won't save in latest NPP

Open Skrell opened this issue 3 years ago • 3 comments

Describe the bug In NPP 8.4.4 I got and set the checkboxes to remove brackets around folders and not separate extensions, then restart NPP and the settings are back to default.
Only thing odd here is I'm using NPP in it's "portable" installation method. (ie. not installed to window's program files folder)

image

Skrell avatar Jul 18 '22 01:07 Skrell

Hi @Skrell

sorry,,, I could not reproduce this in my environment.

The explorer plugin saves its settings when exiting. It may be that the exit process is not working due to compatibility with other plugins. Can you provide me Debug Info? Notepad++ menu -> ? -> Debug Info....

Temporary workaround: You can rewrite the configuration file directly.

  1. open the {YOUR_NPP_DIR}\plugins\Config\Explorer.ini with a text editor.
  2. set ShowBraces=0 and AddExtToName=1
  3. open Notepad++.exe

funap avatar Jul 18 '22 02:07 funap

I tried editing the Explorer.ini config file like you suggested and it made no difference. It's almost like the plugin is looking for this ini file somewhere else?

image

Notepad++ v8.4.4 (32-bit) Build time : Jul 15 2022 - 17:56:38 Path : I:\Programs\Notepad++\notepad++.exe Command Line : Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Home (64-bit) OS Version : 21H2 OS Build : 19044.1826 Current ANSI codepage : 1252 Plugins : CodeAlignmentNpp (14.1.107) DSpellCheck (1.4.23) Explorer (1.8.2.18) FileSwitcher (1.0.3) LocationNavigate (0.4.8.1) MenuIcons (1.2.5) NppConverter (4.4) NppExport (0.4) PythonScript (1.5.4)

Skrell avatar Jul 19 '22 01:07 Skrell

Hi @Skrell

My apologies, I did not expect that the Explorer.ini file was not generated. Please add [Explorer] in first line.

e.g.

plugins\Config\Explorer.ini
[Explorer]
ShowBraces=0
AddExtToName=1

Reference Typically, the following files are generated

[Explorer]
SplitterPos=382
SplitterPosHor=733
SortAsc=1
SortPos=0
ColPosName=211
ColPosExt=41
ColPosSize=70
ColPosDate=100
ShowHiddenData=0
ShowBraces=1
ShowLongInfo=1
AddExtToName=0
AutoUpdate=1
AutoNavigate=1
SizeFormat=1
DateFormat=0
TimeOut=1000
UseSystemIcons=1
CphProgramName=cmd.exe
MaxHistorySize=50
FontHeight=-12
FontWeight=400
FontItalic=0
FontFaceName=Yu Gothic UI
LastFilter=*.*
FontSize=0
[FilterHistory]
0=*.*

Normally, this plugin is written to Explorer.ini when Notepad++ exits, And read it when Notepad++ starts. If Notepad++ exits abnormally, the Explorer plugin will exit without writing the ini. For the next release, I will try to modify it to write to a file when changing settings.

Thanks for reporting back to me : )

funap avatar Jul 22 '22 23:07 funap

Fixed in the release of 1.8.2.19

funap avatar Mar 15 '23 14:03 funap