Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Tabs with html documents scroll when switching

    Help wanted · · · – – – · · ·
    2
    5
    820
    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.
    • Wolfgang Duehrkop
      Wolfgang Duehrkop last edited by

      Hello,

      Whenever I work at the end of a html document, switch to another tab in between and then go back, I have to scroll down each time. For plain text files I do not have the problem, they stay in the same position. Can I configure that somewhere?

      Have a good weekend

      Wolfgang

      Meta Chuh 1 Reply Last reply Reply Quote 0
      • Meta Chuh
        Meta Chuh @Wolfgang Duehrkop last edited by

        welcome to the notepad++ community, @Wolfgang-Duehrkop

        if you have xml tools installed, please go to the menu Plugins > XML Tools and disable Set XML type automatically

        (see @dail 's original answer here:
        https://notepad-plus-plus.org/community/topic/33/return-to-same-line-when-switching-tabs/3 )

        if this is not the cause of your issue, please go to the menu ? > Debug Info... > Copy Debug Info to Clipboard and paste the debug information here.

        1 Reply Last reply Reply Quote 0
        • Wolfgang Duehrkop
          Wolfgang Duehrkop last edited by

          Hello Meta,
          tnx for your answer!
          xml tools are not installed, but when I do it and disable Set XML type automatically it’s the same.
          Debug Info:
          Notepad++ v7.6.3 (64-bit)
          Build time : Jan 27 2019 - 17:16:47
          Path : C:\Program Files\Notepad++\notepad++.exe
          Admin mode : OFF
          Local Conf mode : OFF
          OS : Windows 10 (64-bit)
          Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll _CustomizeToolbar.dll

          Can you help me?

          Wolfgang

          Meta Chuh 1 Reply Last reply Reply Quote 2
          • Meta Chuh
            Meta Chuh @Wolfgang Duehrkop last edited by Meta Chuh

            @Wolfgang-Duehrkop

            thank you for your reply and detailed debug information.

            you are correct.
            i can confirm that this scroll-up displacement when changing tabs, happens with .html files that have very long lines, and only if the option view > word wrap is enabled.

            note: your cursor stays at the correct position, and once you’ve changed back to your html document, and start typing, the editor window will jump back down to where you left off before switching tabs.

            we will try to find any possible workarounds, to enable the use of word wrap (line wrap) in conjunction with html code.


            in the mean time, the first workaround would be to move your document to be edited to a side by side split screen view as seen at the screenshots below.

            (right click on your html document’s tab and select move to other view, which will open it separately to the right of all other document tabs, similar to a norton commander view.)

            Imgur

            this way you can edit the document at the right panel view, and switch through multiple tabs on the left panel view.

            any tab switches on the left will not affect the right panel view.
            (or vice versa, if you prefer to have your html document on the left, and browse your coding reference tabs on the right)

            Imgur


            note: if we do not succeed in finding better worarounds, you can also file an issue report to the developers, by following the official community guide: >>> FAQ Desk: Feature Request or Bug Report <<<

            1 Reply Last reply Reply Quote 1
            • Wolfgang Duehrkop
              Wolfgang Duehrkop last edited by

              Hello Meta,
              thank you for your detailed information!

              The workaround works as indicated, but becomes confusing when dealing with multiple documents. I have now looked at GitHub, the topic has been raised several times. If I read that correctly, the bug should have been fixed in the previous version, but I do not really see through the mess. So first of all I leave everything in the old and wait.

              A nice upcoming weekend

              Wolfgang

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors