Community
    • Login

    Tab settings not saving settings for "use default value"

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    15 Posts 5 Posters 1.3k 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.
    • EkopalypseE
      Ekopalypse @Alan Kilborn
      last edited by

      @Alan-Kilborn

      Yes, I think/thought so too but to illustrate what he did it is needed, isn’t it?
      Seems I’m drawing a blank, again !? (not sure if this is the correct translation but sounds nice :-)

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

        @Daniel-Fuchs ,

        As @Ekopalypse said, “it works for me”:

        Notepad++ v7.8.6   (64-bit)
        Build time : Apr 21 2020 - 15:23:03
        Path : C:\usr\local\apps\notepad++\notepad++.exe
        Admin mode : OFF
        Local Conf mode : ON
        OS Name : Windows 10 Enterprise (64-bit) 
        OS Version : 1903
        OS Build : 18362.720
        Plugins : ComparePlugin.dll LuaScript.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConsole.dll NppConverter.dll NppEditorConfig.dll NppExec.dll NppExport.dll NppFTP.dll PreviewHTML.dll PythonScript.dll QuickText.dll XMLTools.dll 
        
        Daniel FuchsD 1 Reply Last reply Reply Quote 3
        • Daniel FuchsD
          Daniel Fuchs @PeterJones
          last edited by Daniel Fuchs

          @PeterJones thanks for your animation.

          That‘s my issue. It does not remain between sessions. Can you please point out, where this setting should be saved?

          Daniel FuchsD 1 Reply Last reply Reply Quote 0
          • Daniel FuchsD
            Daniel Fuchs @Daniel Fuchs
            last edited by

            I do not run in LocalConfMode, whereas you both do…

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

              @Daniel-Fuchs said in Tab settings not saving settings for "use default value":

              That‘s my issue. It does not remain between sessions.

              I can duplicate OP’s issue with fresh portable (Local Conf Mode : ON) N++ extraction:

              • Go in and untick Use default value for xml files.
              • Exit Notepad++
              • Upon restart, Use default value for xml is ticked again.

              So take heart, OP, I think that I agree with your findings!

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

                @Alan-Kilborn

                I’m in local config mode:


                Notepad++ v7.8.6 (64-bit)
                Build time : Apr 21 2020 - 15:23:03
                Path : C:\usr\bin\npp64\notepad++.exe
                Admin mode : OFF
                Local Conf mode : ON
                OS Name : Windows 10 Enterprise (64-bit)
                OS Version : 1809
                OS Build : 17763.1158
                Plugins : AnalysePlugin.dll AutoSave.dll BetterMultiSelection.dll ChangedLines.dll CodeAlignmentNpp.dll ColumnTools.dll ComparePlugin.dll CsvQuery.dll CustomizeToolbar.dll DoxyIt.dll DSpellCheck.dll Explorer.dll GitSCM.dll JSMinNPP.dll NppConsole.dll NppConverter.dll NppEventExec.dll NppExec.dll NppExport.dll NppFTP.dll NppMarkdownPanel.dll NppMenuSearch.dll PreviewHTML.dll Python Indent.dll QuickText.dll SpeechPlugin.dll SurroundSelection.dll TagLEET.dll XMLTools.dll ZoomDisabler.dll


                I use “Replace by space” “4” and only override that in Makefile:

                bc40da0e-9537-4cce-82e3-0f39d8c93576-image.png

                That always stays for me opening and closing N++ and through reboots.

                I think it stores it in $(NPP_INSTALL_DIR)\langs.xml

                PS MVINCENT ~ > grep tabSettings C:\usr\bin\npp64\langs.xml
                        <Language name="makefile" ext="mak" commentLine="#" tabSettings="4" />
                        <Language name="python" ext="py pyw" commentLine="#" tabSettings="-1">
                        <Language name="yaml" ext="yml yaml" commentLine="#" tabSettings="-1">
                

                You’ll notice Python and YAML are also in there because in a default install, they use tab and I “override” them to used the default (which I set to convert to 4 spaces):

                1f4ccf2b-5764-4fa2-a10d-bf9437d77455-image.png

                Hope this helps?

                Cheers.

                PS: i LOVE pasting pictures directly into the new post text box!!!

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

                  @Alan-Kilborn said in Tab settings not saving settings for "use default value":

                  So take heart, OP, I think that I agree with your findings!

                  I no longer agree. :-(

                  If one follows my earlier outlined procedure, they will (and I, finally) realize that what I did…does nothing. All I do is remove the “default” setting from being applied to XML files. Well…if the setting then left for XML files happens to match the “default”, what has been altered: NOTHING (that matters for the current discussion).

                  Anyway, apologies for the confusion – seems to be working just fine for me now to save the settings between Notepad++ runs.

                  1 Reply Last reply Reply Quote 2
                  • EkopalypseE
                    Ekopalypse @Daniel Fuchs
                    last edited by

                    @Daniel-Fuchs

                    goto %APPDATA% directory and rename notepad++ directory temporarily.
                    Start npp, it will recreate new, with default settings set, config files.
                    Do your changes and make your test to see if it keeps it settings.

                    1 Reply Last reply Reply Quote 3
                    • Daniel FuchsD
                      Daniel Fuchs
                      last edited by

                      Thank you all for your help.

                      I then guess something is wrong with my langs.xml (on my work computer). The settings work just fine on my private computer. I’ll check on that and report back.

                      If anyone is interested (thanks @Michael-Vincent for pointing this out), the property tabSettings in /NotepadPlus/Languages/Language is set to “-1” if the “Use default value” is use. When this checkbox is disabled the value is then determined by the configured tab size and is incremented by 128 if the “Replace by space” option is set.

                      1 Reply Last reply Reply Quote 3
                      • Daniel FuchsD
                        Daniel Fuchs
                        last edited by

                        Removing config.xml fixed the issue on my work computer.

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