Community
    • Login

    Notepad++ v8.7.1 Release Candidate

    Scheduled Pinned Locked Moved Announcements
    25 Posts 8 Posters 2.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.
    • guy038G
      guy038
      last edited by guy038

      Hi, @don-ho and All,

      I did some other tests and, now, the number of files, reported in the main view, is; correctly, a non-zero number. However this number is erroneous, as well as the number reported for the secondary view !

      Here is the contents of my updated session.xml file

      <?xml version="1.0" encoding="UTF-8" ?>
      <NotepadPlus>
          <Session activeView="0">
              <mainView activeIndex="3">
                  <File firstVisibleLine="0" xOffset="0" scrollWidth="5266" startPos="1030" endPos="1030" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\871_x64\change.log" backupFilePath="" originalFileLastModifTimestamp="469169920" originalFileLastModifTimestampHigh="31140355" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
                  <File firstVisibleLine="0" xOffset="0" scrollWidth="821" startPos="0" endPos="0" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\Ahamed.txt" backupFilePath="" originalFileLastModifTimestamp="1110463232" originalFileLastModifTimestampHigh="31139783" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
                  <File firstVisibleLine="0" xOffset="0" scrollWidth="2333" startPos="0" endPos="0" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\Non_Printing_chars.txt" backupFilePath="" originalFileLastModifTimestamp="564645632" originalFileLastModifTimestampHigh="31139758" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
                  <File firstVisibleLine="0" xOffset="0" scrollWidth="5266" startPos="363" endPos="363" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\AJ_Don.txt" backupFilePath="" originalFileLastModifTimestamp="-871676672" originalFileLastModifTimestampHigh="31140481" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
              </mainView>
              <subView activeIndex="3">
                  <File firstVisibleLine="0" xOffset="0" scrollWidth="2333" startPos="642" endPos="642" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\File_B.txt" backupFilePath="" originalFileLastModifTimestamp="-1020379648" originalFileLastModifTimestampHigh="31140062" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no">
                      <Mark line="1" />
                      <Mark line="3" />
                      <Mark line="8" />
                  </File>
                  <File firstVisibleLine="0" xOffset="0" scrollWidth="2333" startPos="0" endPos="0" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\File_A.txt" backupFilePath="" originalFileLastModifTimestamp="-290960896" originalFileLastModifTimestampHigh="31140350" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
                  <File firstVisibleLine="6" xOffset="0" scrollWidth="1527" startPos="216" endPos="216" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\AJ_Peter.txt" backupFilePath="" originalFileLastModifTimestamp="335249152" originalFileLastModifTimestampHigh="31140388" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
                  <File firstVisibleLine="0" xOffset="0" scrollWidth="2407" startPos="293" endPos="293" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\Peelo.txt" backupFilePath="" originalFileLastModifTimestamp="990085632" originalFileLastModifTimestampHigh="31140383" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
                  <File firstVisibleLine="119" xOffset="0" scrollWidth="1848" startPos="5652" endPos="5652" selMode="0" offset="0" wrapCount="1" lang="None (Normal Text)" encoding="-1" userReadOnly="no" filename="D:\Ray.txt" backupFilePath="" originalFileLastModifTimestamp="388708352" originalFileLastModifTimestampHigh="31140188" tabColourId="-1" RTL="no" mapFirstVisibleDisplayLine="-1" mapFirstVisibleDocLine="-1" mapLastVisibleDocLine="-1" mapNbLine="-1" mapHigherPos="-1" mapWidth="-1" mapHeight="-1" mapKByteInDoc="512" mapWrapIndentMode="-1" mapIsWrap="no" />
              </subView>
          </Session>
      </NotepadPlus>
      

      As you can verify, obviously, there are 4 files in the main view and 5 files in the secondary view. Despite of these results, it reports 3 files in both views ??

      BR

      guy038

      1 Reply Last reply Reply Quote 0
      • MarkusBodenseeM
        MarkusBodensee
        last edited by

        Hi @guy038,

        I think this behaviour is correct like it is. The activeIndex property remembers the active tab you had selected (the tab you last looked at) at the respecting view while closing notepad++, so it can be restored at next launch.

        1 Reply Last reply Reply Quote 2
        • xomxX
          xomx @donho
          last edited by xomx

          @donho said in Notepad++ v8.7.1 Release Candidate:

          It’s fixed in the commit: https://github.com/notepad-plus-plus/notepad-plus-plus/commit/93ecbb004c8a216d17a8b940572a388f010c94ee

          RC3 is available now.

          Not fixed in RC3(?!):

          npp-tab-tooltip-time-savednew-rc3.png

          donhoD 1 Reply Last reply Reply Quote 1
          • guy038G
            guy038
            last edited by guy038

            Hello, @xomx,

            As you positively reacted to the @markusbodensee’s reply, I suppose that my interpretation of the session.xml contents is somehow inexact !

            Could you briefly explain me what I miss ?

            Thanks for your cooperation and for the many fixes realized !

            Best Regards,

            guy038

            Note that I generally read the session.xml contents with Microsoft notepad, AFTER I closed N++, to be sure !

            xomxX 1 Reply Last reply Reply Quote 1
            • xomxX
              xomx @guy038
              last edited by

              @guy038

              He is right. That activeIndex="..." is what its name says - a (zero-based) index of the currently selected tab in the view (so not the number of files in the view).

              1 Reply Last reply Reply Quote 2
              • guy038G
                guy038
                last edited by guy038

                Hello, @don-ho, @markusbodensee, @xomx and All,

                OH, MY GOD ! Thank you, @xomx for your explanations. I did not realize while reading @markusbodensee’s reply. Of course, I fully understand my so-called problem, now !

                So Don, sorry for the noise. I always thought that these two numbers contain the total number of files of each view. Now, I understand that this information would be meaningless !

                I was fooled by the fact that, when working on the most recent tab, the active index number is just equal to the total of files minus 1 of the current view, as it is a based-0 number !

                Again, sorry for this exposed non-issue. I’m so unforgivable :-((

                Best Regards,

                guy038

                1 Reply Last reply Reply Quote 3
                • donhoD
                  donho @xomx
                  last edited by

                  @xomx

                  Not fixed in RC3(?!):

                  62e48d7c-1b76-4d08-af59-c4d2952a756a-image.png

                  I have tested again with your scenario, but cannot reproduce it.
                  What am I missing?

                  xomxX 1 Reply Last reply Reply Quote 0
                  • xomxX
                    xomx @donho
                    last edited by

                    @donho said in Notepad++ v8.7.1 Release Candidate:

                    I have tested again with your scenario, but cannot reproduce it.
                    What am I missing?

                    I quickly checked your RC3 patch - all your changes are in/for the Notepad_plus::fileSave. This is not universal, as when I use the menu > File > Save As… (Ctrl+Alt+S), the Notepad_plus::fileSaveAs will be used instead.

                    donhoD 1 Reply Last reply Reply Quote 2
                    • donhoD
                      donho @xomx
                      last edited by

                      @xomx

                      Thank you for the explanation.
                      I do belive it’s fixed in RC4

                      xomxX 1 Reply Last reply Reply Quote 4
                      • xomxX
                        xomx @donho
                        last edited by

                        @donho said in Notepad++ v8.7.1 Release Candidate:

                        I do belive it’s fixed in RC4

                        Perfect, now it is ok, thanks.
                        Not clearing that time-info, only not showing it for !DOC_UNNAMED tabs is clever & universal.

                        1 Reply Last reply Reply Quote 6
                        • rddimR
                          rddim
                          last edited by

                          As I mentioned before - the localization of Global override is cut off. Check some of the localizations like Български, Deutsch, Hrvatski, Español and some others.

                          Български
                          npp_st_bg.png

                          Deutsch
                          npp_st_de.png

                          donhoD 1 Reply Last reply Reply Quote 0
                          • donhoD
                            donho @rddim
                            last edited by

                            @rddim
                            I will make as large as possible for some checkbox (without enlarging the dialog width) in the next release. Please find other shorter words or the abbreviation for the translation.

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