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

Can the Script Editor incorporate a Autocomplete feature? #76

Closed
ajtruckle opened this issue May 17, 2024 · 9 comments
Closed

Can the Script Editor incorporate a Autocomplete feature? #76

ajtruckle opened this issue May 17, 2024 · 9 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ajtruckle
Copy link
Owner

Is your feature request related to a problem? Please describe.
Visual Studio 2022 includes an autocomplete feature that is extremely useful for coding.

For example:

image

Describe the solution you'd like
Is it possible for the Script Editor to integrate a similar feature?

@ajtruckle ajtruckle added the enhancement New feature or request label May 17, 2024
@ajtruckle
Copy link
Owner Author

ajtruckle commented May 18, 2024

The Scintilla control does support Autocompletion as a concept. To quote:

Autocompletion displays a list box showing likely identifiers based upon the user's typing. The user chooses the currently selected item by pressing the tab character or another character that is a member of the fillup character set defined with SCI_AUTOCSETFILLUPS. Autocompletion is triggered by your application. For example, in C if you detect that the user has just typed fred. you could look up fred, and if it has a known list of members, you could offer them in an autocompletion list. Alternatively, you could monitor the user's typing and offer a list of likely items once their typing has narrowed down the choice to a reasonable list. As yet another alternative, you could define a key code to activate the list.

It goes into more detail, but suffice to say, we would have come up with lists of keywords. It seems to be a large undertaking.

@cengizu
Copy link

cengizu commented Jun 5, 2024

It is a handy feature. With intelligent suggestions, users can quickly select appropriate options from the list instead of typing them out fully. 👍

@ajtruckle
Copy link
Owner Author

@cengizu
We have a set of keywords used for syntax highlighting, although it's uncertain if they offer sufficient information. I've observed that Notepad++ includes its own keyword set in XML files, yet it lacks a keyword list for XML/XSL. In contrast, I possess some keywords based on the Lexilla parsers.

@ajtruckle ajtruckle self-assigned this Jan 19, 2025
@ajtruckle ajtruckle added this to the 25.3.0 milestone Jan 19, 2025
@ajtruckle
Copy link
Owner Author

@cengizu
Morning! I have now sent you the beta, and here is my attempt at the new help topic documentation:

https://github.com/ajtruckle/meeting-schedule-assistant-support/wiki/msa-advanced-editor#additional-features

@cengizu
Copy link

cengizu commented Jan 20, 2025

@ajtruckle

It works nice 👍

Image

@ajtruckle
Copy link
Owner Author

@cengizu
Excellent! If you select xsl from the list and then type :, do you see the function list?

@cengizu
Copy link

cengizu commented Jan 20, 2025

@ajtruckle

Yes, I do:

Image

@ajtruckle
Copy link
Owner Author

ajtruckle commented Jan 20, 2025

@cengizu
Thank you for confirming. 😊 The autocomplete list can be enhanced in the coming weeks; for instance, we could consider including small icons.

@ajtruckle
Copy link
Owner Author

ajtruckle commented Jan 20, 2025

@cengizu
I have made a few additional refinements the autocomplete user experience.

  • Comments (<!--) are now automatically closed with -->.
  • Functions (<xsl:function>) are now automatically closes with </xsl:function>.

The caret is automatically repositioned in the centre.

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

No branches or pull requests

2 participants