As tested in the latest beta to date (3.18.125.841).
@RaiKoHoff:
(By the way: What should be the correct position of the caret after operation? At the beginning of the selection, where it has been, or at the end of the replaced selection, to be able to step further in text, or depending on operation type 馃 mhhh?)
@craigo-:
Good last question. I retried the "Compress Whitespace" function with a right-to-left selection (caret at beginning), and the result is the caret moves to the selection end. That seems weird to me.
Both Notepad2 and Notepad2-mod retain the caret position as it stands after making the selection (at least for the "Compress Whitespace" function); that seems logical to me.
Functions Tested and Result:
@craigo- : Nice :+1: Highly appreciated :smiley:
Reward: Beta 3.18.126.843 to test
Thanks, @RaiKoHoff.
Beta build 843:
Regarding the above comment concerning "Strip First/Last Character"... I am trying to figure out some base rules/guidelines regarding how certain functions should work in certain circumstances. Guidelines like this would assist when deciding on how these functions should work, and make them easier to document.
For example, is there (could there be) consistency around how a Block function operates with no selection? With a selection? Currently, there are more examples of Block functions working one way rather than the other, but it is not completely consistent. If you guys have any views on this, I'd be glad to hear them...
Keeping the above comments here for completeness, but will move this conversation to a separate issue... It needn't hold up the closure of this one.
Beta Build 3.18.128.846... The "Line Comment" function works as expected when there is no selection, but it is now behaving badly when there is a selection.
Steps to Reproduce:
;Page Margins: 10mm everywhere
Send("!f")
Sleep(300)
Send("t")
;Sleep(300)

Ctrl+Q (problem: the selection does not include the first comment character):

Ctrl+Q (problem: the selection now includes some of the previous line):
I see. Please try beta version: 3.18.129.847.
Have done so. Perfect. Thanks.
Issue resolved, ready to close.