PythonScript icon indicating copy to clipboard operation
PythonScript copied to clipboard

[Feat Req for Documentation] Improvements for selection-setting functions

Open alankilborn opened this issue 3 years ago • 2 comments

Can these 3 related functions appear sequentially in the documentation?:

 editor.setSel(anchor, caret)
 editor.setSelection(caret, anchor)
 editor.setEmptySelection(caret)

Additionally, can the following highlighted text be added?:

image


Some of the information requested appears in the Scintilla documentation and is seen when the associated link in the PS doc is clicked, but it would be nicer to have it directly in the PS docs.

For copying convenience, here is the text from the above:

 The caret is scrolled into view after this operation.
 Note: the argument order is reversed from the editor.setSelection() function.
 The caret is not scrolled into view after this operation.
 Note: the argument order is reversed from the editor.setSel() function.

alankilborn avatar Dec 25 '22 14:12 alankilborn

Docu is generated from e.g.

https://github.com/bruderstein/PythonScript/blob/1e090b73d025ceae90951f34157caffdaef22295/PythonScript/src/Scintilla.iface#L1184-L1185

, so it would be nicer to have this corrected by scintilla itself.

chcg avatar Dec 27 '22 21:12 chcg

Docu is generated from e.g.

:-(

Consider NOT producing documentation that way? :-)

alankilborn avatar Dec 27 '22 21:12 alankilborn