Bug 380647 - More powerful code completion
Summary: More powerful code completion
Status: REPORTED
Alias: None
Product: rkward
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-08 04:53 UTC by RKWard Team
Modified: 2012-03-08 17:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RKWard Team 2012-03-08 04:53:22 UTC
-- Originally posted by (AT sourceforge.net): cratyle --

-- This ticket was imported from http://sourceforge.net/p/rkward/feature-requests/113 on 2017-05-31 14:48:58 +0100 --
Hi,

The auto-completion feature in RKWard is powerful but we need more. I'm not sure that the following criticism applies to all functions. For example, when I use the function matchit \(\), I have access to all sort of things and not only arguments for that function.  Also, I do not have access to the list of options for an argument. For example, there is an argument method= with the following options: "exact", "full", "genetic", "nearest", "optimal", "subclass". But I do not have access to those options \(and only those\) with Auto-completion. Sure, if I type "gen", the "genetic" options is in the list \(wiht other irrelevant things\). It would also be appreciated that the Auto-completion is a dynamic tool. When I chose an argument, or the option of an argument, arguments and options that are incompatible with those choices should not appear in subsequent choices. For example, when I choose the "subclass" option from the argument method =, it is not possible to specify the ratio = argument in the matchit\(\) function. So Auto-completion should not display the argument ratio= among the possible choices of arguments.

Thanks to consider this request.
-- Labels: Command Editor --
Comment 1 m.eik michalke 2012-03-08 17:40:34 UTC
hi,

thanks for your suggestions, most welcome :-\)

i think the problem with completion like you'd like to have is that the part that does the completion needs to know which options it can offer, and how they interact. the matchit\(\) function of the MatchIt package seems to have method="nearest" set as its default value, so method="nearest" would be about all that code completion could offer, because it's the only usable information which can be extracted from the function's signature automatically.

you, as a human being, can read and comprehend the manual to understand which other options are valid, but unfortunately, RKWard isn't that intelligent yet ;-\)