I'd like to assign DownValues to a symbol like this
x["firstvalue"] = 1;
x["secondvalue"] = 2;
And then have the DownValue keys "firstvalue" and "secondvalue" offered in an autocomplete list once I have entered x[.
Another useful application for this kind of modification is to have the "Properties" of an object like a FittedModel added to the autocomplete list.
It is not always easy to remember "SinglePredictionConfidenceIntervalTableEntries", which is one of the 64 properties of FittedModel.
Can this be done? What controls the entries in the autocomplete "engine"?
Addendum
This amazing answer shows a way of altering the behavior of autocomplete. I do not yet understand how it works.
thisFit["Properties"]to find the properties of the fit orDownValues[x][[All,1,1,1]]to get the keys of x. You have improvements upon these methods? – ArgentoSapiens Jun 25 '13 at 19:00thisFit, obviously. But,DownValues[x][[All,1,1,1]]is stymied byfcn[] :=. So, I've been usingCase, but you have to get the pattern correct. – rcollyer Jun 25 '13 at 19:11Keysfunction from this answer to my toolchain. – ArgentoSapiens Jun 25 '13 at 19:29