Menu

#441 Notification after auto-completion

Committed
closed
3
2016-09-11
2007-07-29
No

Hi,

It would be usefull to also have a notification after the auto-completion/user-list. Currently the SCN_AUTOCSELECTION is fired *before* the text is inserted.

One need would be to allow post-process of the autocompletion, such as doing additional fill-ups. The SCI_AUTOCSETFILLUPS command is nice, however in some cases you want to add additional characters to the text (ie. "foo()" instead of "foo(" ). Unfortunately the SCN_AUTOCSELECTION notification will not tell you if SCI_AUTOCSETFILLUPS was used to select the list entry, so either this information should be included in the notification structure of SCN_AUTOCSELECTION, or a new notification after the text-insert event to allow post-process of the new text.

regards
bjarke

Related

Feature Requests: #1109

Discussion

  • Neil Hodgson

    Neil Hodgson - 2007-07-30

    Logged In: YES
    user_id=12579
    Originator: NO

    Are you aware that you can completely take over processing the selection by using SCI_USERLISTSHOW rather than SCI_AUTOCSHOW?

     
  • Neil Hodgson

    Neil Hodgson - 2007-07-30
    • priority: 5 --> 3
    • assigned_to: nobody --> nyamatongwe
     
  • Bjarke Viksøe

    Bjarke Viksøe - 2007-07-30

    Logged In: YES
    user_id=942046
    Originator: YES

    I see. It wasn't obvious from the documentation.

    Looking at this at source level, it seems that auto-completion, among other things, does an ExtendWordSelect(). This is a nice functionality and I don't want to reimplement this and other features in my container - so I still feel Scintilla should also send an additional notification at completion (while still inside the undo-transaction).

    regards
    bjarke

     
  • britemma

    britemma - 2015-03-20

    Hello,
    This is a very old post, however maybe some people are stil searching for this.
    I am trying to show a calltip after the insertion of a word from an autocompletion List or userList. However I can't, as soon as I click on TAB I use the notification SCN_USERLISTSELECTION to launch my method for the calltip, but the word selected doesn't get autocompleted. I have the correct calltip but the word doesn't get filled automatically.
    How do I have to use the User List to achieve that ? I want to know when a word had been inserted but it is done at the end of the SCN_USERLISTSELECTION notification and I don't know how to capture it.
    Thank you in advance

     
  • Neil Hodgson

    Neil Hodgson - 2016-09-11
    • labels: Scintilla --> Scintilla, autocomplete
    • status: open --> closed
    • Group: --> Committed
     
  • Neil Hodgson

    Neil Hodgson - 2016-09-11

    Feature [feature-requests:#1109]: SCN_AUTOCCOMPLETED sent after completion with indication of completion cause.

     

    Related

    Feature Requests: #1109


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.