Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alankilborn opened this issue Dec 25, 2022 · 2 comments

Comments

@alankilborn
Copy link

alankilborn commented Dec 25, 2022

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 alankilborn changed the title [Feat Req for Documentation] Improvements for setting selection functions [Feat Req for Documentation] Improvements for selection-setting functions Dec 25, 2022
@chcg
Copy link
Collaborator

chcg commented Dec 27, 2022

Docu is generated from e.g.

# Set caret to a position, while removing any existing selection.
fun void SetEmptySelection=2556(position caret,)

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

@alankilborn
Copy link
Author

Docu is generated from e.g.

:-(

Consider NOT producing documentation that way? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants