You could do a plugin to get this behavior, or you could script it. Here’s an example (may not be fully rounded out) in Pythonscript, I call it SelectedTextCountIntoStatusBar.py; you would run it once per Notepad++ session:
def callback_sci_UPDATEUI(args): if args['updated'] & UPDATE.SELECTION: matches = [] if editor.getTextLength() < 100000: # don't search "big" files if editor.getSelections() == 1 and not editor.getSelectionEmpty(): try: editor.research(r'\Q' + editor.getSelText() + r'\E', lambda m: matches.append(1)) except: matches = [] l = len(matches) notepad.setStatusBar(STATUSBARSECTION.DOCTYPE, ' ' if l == 0 else '{} occurrence(s) of selected text'.format(l)) editor.callback(callback_sci_UPDATEUI, [SCINTILLANOTIFICATION.UPDATEUI])-
0 Votes2 Posts5k Views
-
2 Votes32 Posts17k Views
-
0 Votes5 Posts33k Views
-
0 Votes7 Posts11k Views
-
0 Votes6 Posts3k Views
-
0 Votes4 Posts5k Views
-
0 Votes9 Posts5k Views
-
0 Votes2 Posts2k Views
-
0 Votes9 Posts4k Views
-
0 Votes2 Posts2k Views
-
0 Votes3 Posts2k Views
-
0 Votes2 Posts2k Views
-
0 Votes2 Posts1k Views
-
0 Votes2 Posts1k Views
-
1 Votes10 Posts9k Views
-
0 Votes8 Posts4k Views
-
0 Votes5 Posts3k Views
-
0 Votes2 Posts1k Views
-
0 Votes3 Posts2k Views
-
0 Votes4 Posts2k Views