societyserver / sTeam

3 stars 13 forks source link

tab completion in debug needs to work for relative objects also #15

Open d4r3topk opened 9 years ago

d4r3topk commented 9 years ago

[x->y->tab] should work exactly like [y->tab]

eMBee commented 9 years ago

this needs to be solved for pike in general.

when you work on this, try the following: move tab_completion.pmod to Tools.pmod/TabCompletion.pmod in the original pike modules tree and modify Tools.pmod/Hilfe.pmod to use it.

best do this with the latest pike 7.8 from the pike git repo. make sure that Tools.pmod/TabCompletion.pmod does not contain any changes from the original code. the initial version should be a pure refactoring.

once it's working, modify debug.pike to use the new 7.8 and start adding new features. do not add any sTeam specific features.

we need to figure out a way how to handle sTeam specific completions. probably with some form of hooks or callbacks.

when it is all done and working for 7.8 the results can be forward ported to 8.0 and 8.1, and the 8.1 version can be submitted upstream!

d4r3topk commented 9 years ago

x->y->tab should then work like x->y and then a tab on that object. As I wrote the code for this part, I can make it to do y->tab. So "x" is not even seen. But if that's not a good approach, I'll try the above.