Bug 380746 - Improvements to object name completion in R Console window
Summary: Improvements to object name completion in R Console window
Status: CONFIRMED
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: 2011-12-07 16:03 UTC by RKWard Team
Modified: 2018-11-19 06:02 UTC (History)
1 user (show)

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 2011-12-07 16:03:17 UTC
-- Originally posted by (AT sourceforge.net): nalimilan --

-- This ticket was imported from http://sourceforge.net/p/rkward/bugs/114 on 2017-05-30 15:26:48 +0100 --
A completion list is shown when you start typing object names in the R console. But there's absolutely no way of selecting an item. I can understand Return can't work for this, since it has already another meaning. Clicking with the mouse wouldn't be very efficient anyway, but if even this doesn't work, I don't see a reason to show this, as it is more frustrating than anything else.
Comment 1 Thomas Friedrichsmeier 2011-12-07 17:40:46 UTC
Hi\!

Thanks for pointing out all those issues. Over time, I've become blind to much of this.

Anyway, thinking about this, perhaps Return \*can\* work for this, after all, and I have committed a corresponding \(experimental\) change. Perhaps you want to give this a try \(in the development version / tomorrows' daily build\). My impression so far is that it does not really get into the way too much.

In fact, I'm considering to make code completion in the R Console look exactly like in the script editor \(I would add a configuration option to control, whether completion options are shown automatically, or only on Tab-key presses\). That would obsolete a couple of quirks in the current solution, and probably even remove some code complexity.

What do you think?

Regards
Thomas
Comment 2 Thomas Friedrichsmeier 2011-12-07 17:40:46 UTC
- **assigned_to**: nobody --> tfry
Comment 3 RKWard Team 2011-12-14 10:12:53 UTC
-- Originally posted by (AT sourceforge.net): nalimilan --
I've just tried it, and indeed it doesn't seem to disturb much. And it's generally good that both completion lists behave the same. Thanks\!
Comment 4 RKWard Team 2011-12-14 13:40:56 UTC
-- Originally posted by (AT sourceforge.net): nalimilan --
Something still feels weird: when there are several choices in the list, you can't select another one than the first, because the up/down arrows don't work \(since they're used for the command history\). Not sure something can be done about that, but at least only one choice should be shown then.
Comment 5 m.eik michalke 2011-12-19 12:50:45 UTC
well, i do sense a slight disturbance in the force. since the change, data object completion gets mixed up with all kinds of text that was written before. try this:

> foobar
\# you'll get an error, but now:
> test.foo
\# once you've typed "foo" here you're offered a completion to "foobar"

for the console i'd rather have the completion stick to objects which are actually in existance. otherwise, if you make a mistake while typing, it can haunt you by reappearing in the completion list. allthough an argument completion for functions would be a hit\!
Comment 6 Thomas Friedrichsmeier 2011-12-19 13:53:24 UTC
I think the problem isn't offering text completion \(in addition to object name completion\) in general. The problem is that both mechanisms simply aren't integrated, yet. Now one type of completion pops up automatically, and inserts completions on tab-presses, while the other is activated manually, on tab-presses. Obviously this does not mix well.

So I have disabled the text-hints for now. I still intend to re-enable them in an integrated solution, later.
Comment 7 RKWard Team 2011-12-20 08:35:35 UTC
-- Originally posted by (AT sourceforge.net): nalimilan --
I've also found one case where the new completion behavior can be annoying: when you use two object starting with the same string.

For example, I often do
> tab <- table\(var1, var2\)
Then, when I type 'tab' then Return to see the result \(immediately or later\), 'tab' gets completed to 'table'. Quite problematic\!
Comment 8 Andrew Crouthamel 2018-11-06 15:17:09 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Andrew Crouthamel 2018-11-18 03:37:40 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 10 Thomas Friedrichsmeier 2018-11-19 06:02:30 UTC
Some of this is still valid. Converting into wishlist item.