Select all text on all open files?
-
Is there a way to select all text on all open files?
Is there a way to run a menu command on all of these selected texts?
-
I’m looking blindly at the jN code
URLDecoderEncoder.addItem({ text: 'Decode', cmd: function() { var encoded = Editor.currentView.text; var unencoded = decodeURIComponent(encoded); Editor.currentView.text = unencoded; }, out of stackoverflow. They said there that
Editor.currentView.textis the value that specify the text of the entire file. Can it be changed to be broader thancurrentView? -
-
Npp offers an API to retrieve the open files.
Would this mean keeping the files as files in their tabs, or retrieving the texts from all files to a new file?
-
Not quite sure I understand.
The workflow is like this- get number of open files (NPPM_GETNBOPENFILES)
- retrieve the bufferids for these files (NPPM_GETOPENFILENAMESPRIMARY/NPPM_GETOPENFILENAMESSECOND, NPPM_GETBUFFERIDFROMPOS)
- activate the bufferids (NPPM_ACTIVATEDOC)
- read the content (SCINTILLA API GetTextT)
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