Community
    • Login

    Feature Request: current Zoom to Status Bar

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 4 Posters 2.0k Views 2 Watching
    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.
    • JVPageJ Offline
      JVPage
      last edited by

      I don’t see any way to know what the current zoom setting is without experimenting.
      Could it possibly be added to the Status Bar?
      Thanks

      Meta ChuhM 1 Reply Last reply Reply Quote 1
      • Meta ChuhM Offline
        Meta Chuh moderator @JVPage
        last edited by Meta Chuh

        welcome to the notepad++ community, @JVPage

        displaying the zoom level at the status bar is a good idea and has been requested at the project’s feature and issue request tracker.
        see >>> here <<< for the newest request for this topic.

        note: a workaround discussion for displaying the zoom level using the pythonscript plugin has been started here:
        Seeing the zoom level with PythonScript, and solved by @SalviaSage, as stated by @Scott-Sumner a while ago, but i currently don’t know if it has been managed to display it everywhere at the status bar, together with the original section values, and not just sharing the “eol” or other sections.

        1 Reply Last reply Reply Quote 0
        • SalviaSageS Offline
          SalviaSage
          last edited by

          Yeah, this is a feature that they have yet to implement.

          I solved it by using this script placed inside the Pythonscript plugin startup script.

          So, just install the Pythonscript plugin, open its startup script and paste this into it, save and restart.

          If it works, please let me know here. See you.

          ## Adds the zoom indicator to the statusbar.
          import locale
          locale.setlocale(locale.LC_ALL, '')
          
          def StatusbarEOLOverride(args):
              _eolMode = editor.getEOLMode()
              _zoom = editor.getZoom()
              _eolString = ""
              _zoomString = ""
              if _eolMode == 0:
                  _eolString = "CR+LF"
              elif _eolMode == 1:
                  _eolString = "CR"
              elif _eolMode == 2:
                  _eolString = "LF"
              if _zoom == 0:
                  _zoomString = "0"
              else:
                  _zoomString = '{:+}'.format(_zoom)
              notepad.setStatusBar(STATUSBARSECTION.EOFFORMAT, '{} | Zoom: {}'.format(_eolString, _zoomString))
          
          editor.callback(StatusbarEOLOverride, [SCINTILLANOTIFICATION.UPDATEUI, SCINTILLANOTIFICATION.ZOOM]) # register callback
          
          1 Reply Last reply Reply Quote 1
          • Meta ChuhM Offline
            Meta Chuh moderator
            last edited by

            and if you are stuck on how to install the pythonscript plugin on notepad++ 7.6.3 or above, please have a look at this guide:

            Guide: How to install the PythonScript plugin on Notepad++ 7.6.3, 7.6.4 and above.

            don’t hesitate to ask, if you need help installing PythonScript on any other notepad++ version.

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

              Maybe this is of some interest: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5434

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors