molsonkiko / dictautocomp

Efficient autocompletion from very large word lists in Notepad++
0 stars 0 forks source link

PythonScript: editor1 and editor2 should have auto-completion, too #1

Closed pryrt closed 1 year ago

pryrt commented 1 year ago

you can just duplicate the editor.* section for editor1. and editor2.

molsonkiko commented 1 year ago

I tested the plugin as is with multiple views open; it works fine (uses the correct autocompletions for the file in the active editor even if a file in the other editor has different autocompletions) no matter which view I'm in. Is there some very subtle error that I'm missing?

pryrt commented 1 year ago

I was just looking in pythonscript_autocompletions.txt, and noticed that you define all the methods for the editor instance of the Editor object, but not for the editor1 and editor2 instances. Many of the scripts I write for PythonScript use editor1.getText() and editor2.getText() instead of just doing editor.getText() on the whichever view is active. Looking at your autocomplete file, I am pretty sure that if I ever got your script to do anything for me (that's a different issue), it would only autcomplete if I use editor.getT, not if I started with editor1.getT , because there aren't any entries in your file for the editor1 and editor2 instances.

molsonkiko commented 1 year ago

Oh, thanks for the clarification. That'll be on my to-do list for the next release.

pryrt commented 1 year ago

confirmed that aa53eab works with editor1 and editor2 as well. thanks