Feature Request: current Zoom to Status Bar
-
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 -
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. -
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
-
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.
-
Maybe this is of some interest: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/5434