Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Communication between plugins (abbreviations, codecompletion)

<< < (3/3)

p2rkw:
I arleady fixed it ;) Check out patch from first post ( before apply revert changes )

daniloz:

--- Quote from: Alpha on August 22, 2012, 08:46:29 pm ---Word of caution: how do you plan resolve identifiers that are both keywords and abbreviations (ex. struct, class, and while)?

--- End quote ---

Just show them twice, since both plugins will add them to the list, but each one with a different icon, so it will be easy to identify them in the list...

p2rkw:

--- Quote ---Idea: do a framework to show completions and from this framework, we could have plugins providing the suggestions (words) with a callback to a function that "insert/execute" the suggestion.  Grin
--- End quote ---
I agree with that, but I don't decide here :)
Other option is to toggle between auto-complete lists with one shortcut.
Anyway current patch only adds auto-complete list to abbreviations, but it's not very functional because it's necessary to use shortcut to see it.
I fixed bugs, and in current version patch doesn't break CC autocomplete.

BTW: I tried to handle wxEVT_SCI_AUTOCOMP_CANCELLED event, but it doesn't occur.

MortenMacFly:

--- Quote from: p2rkw on August 27, 2012, 01:14:29 pm ---I fixed bugs, and in current version patch doesn't break CC autocomplete.

--- End quote ---
I don't see any patch anymore...

p2rkw:
I uploaded it to patch tracker: http://developer.berlios.de/patch/?func=detailpatch&patch_id=3323&group_id=5358

Edit: There's still one bug: when abbreviation was selected from auto-complete list macro is expanded correctly, but CC still tries to insert selected keyword, so if cursor(pipe) is inside word it will be replaced by empty string by CC plugin.

Navigation

[0] Message Index

[*] Previous page

Go to full version