Display Zoom Rate on Status Bar
-
Hi Everyone,
Is someone know how to display Zoom rate on the status bar ?
As I am often working with 2 files side-by-side, I change zoom using CTRL+wheel mouse but I never know the zoom %.
Thank you -
afaik, there is no buitlin feature but you could use python script plugin and a
script like Scotts one to achieve what you wantCheers
Claudia -
Thank you for the reply but… I am not good enough to do it :(
-
Install Python Script plugin from here.
Once installed, gotoPlugins->Python Script-New Script
and create a script called
and copy the following content into the newly created document.
import locale locale.setlocale(locale.LC_ALL, '') def StatusbarSelOverride(args): _length = "{0:n}".format(editor.getTextLength()) _lines = "{0:n}".format(editor.getLineCount()) _zoom = editor.getZoom() notepad.setStatusBar(STATUSBARSECTION.DOCSIZE, 'length:{} lines:{} zoom:{}'.format(_length, _lines, _zoom)) editor.callback(StatusbarSelOverride, [SCINTILLANOTIFICATION.UPDATEUI, SCINTILLANOTIFICATION.ZOOM]) # register callbackSave it. (DO NOT reformat code - python is strict about indention)
Goto Plugins->Python Script->Configuration and
change Initialisation from Lazy to ATSTARTUP
press ok
Restart nppCheers
Claudia
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