double-click hyphen
-
hi, how to select a word with a hyphen?
.b-page__blockonly the “page__block” is released when you double-click
-
Hello Andrew,
depending on the language scintilla defines chars which are part of the word or not.
To manipulate this you could use python script and function editor.setWordChars likechars = editor.getWordChars() + “@#_()[]” editor.setWordChars(chars)which would mean, that the existing chars would be extended by @#_()[]. In your case you would add the hyphen.
If you put this in startup.py it will be automatically added each time you start npp.Cheers
Claudia -
Thank you, the script added startup.po but it OPERATE only the current tab, how to do so when you open a new tab to run this script?
-
Hello Andrew,
I described here how it could be solved.
Basically, you need to register a callback which gets called when you open a new tab or switch tabs and extend the wordchars accordingly.Cheers
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