Bug 427377 - keyboard navigation in auto complete does not works as expected
Summary: keyboard navigation in auto complete does not works as expected
Status: REPORTED
Alias: None
Product: rkward
Classification: Applications
Component: User Interface (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: RKWard Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-06 09:07 UTC by mho94v+3w6u2x0n9t6xjry3upq3n9b58t2oa4rvy9sa7s5ki6wngzw4ux2c0g
Modified: 2020-10-06 13:54 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 mho94v+3w6u2x0n9t6xjry3upq3n9b58t2oa4rvy9sa7s5ki6wngzw4ux2c0g 2020-10-06 09:07:38 UTC
debian sid 
rkward 0.7.1b-2

SUMMARY
Completion does not work as expected: keyboard navigation in results does not work (or at least its not intuitive)

STEPS TO REPRODUCE
first add any kind of dataframe with colums named "oneone", "onetwo", "onethree"
then type in editor: df[["one
auto-complete will show all possible entries,

OBSERVED RESULT
now try to navigate to "onethree"
it was not possible with cursor-down-key , i wasnt able to figure out where the setting is made, the page-up and page-down keys work, but up/down only navigates in code not in the popup menue

EXPECTED RESULT
select df[["onetwo"]] entry and press return for code-completion


ADDITIONAL INFORMATION
kate is also installed, there it works, seems to be some missconfiguration in rkward on my side, but could not figure out where. I deleted the settings already, guess its some default? 
Thanks for any help!
Comment 1 Thomas Friedrichsmeier 2020-10-06 10:34:41 UTC
Thanks for reporting. The default key combination to navigate completions is set to Alt+Up/Down in RKWard, while Up/Down navigates the script, whether or not completions are shown.

This may be a debatable choice, but in the upcoming RKWard 0.7.2, the R Console Window will share the same completion interface. Here, keeping the default Up/Down-behavior to navigating the command history seemed rather important. And then it seemed reasonable to use a consistent key-binding for navigating the completion list in both cases.

The setting is configurable in Settings->Configure RKWard->(Script editor/Console). Perhaps you have an idea, where/how you would have been more likely to find the setting?
Comment 2 mho94v+3w6u2x0n9t6xjry3upq3n9b58t2oa4rvy9sa7s5ki6wngzw4ux2c0g 2020-10-06 13:54:18 UTC
Wow - that was a fast answer! Thanks a lot! This was something that had driven me mad in past a few times. And such an easy solution (/me hides under some rock in shame).

I guess the reason I didn't notice the setting, is that when I parsed the whole configuration and its tabs and sections and everything, my brain skipped this tiny little item, as it noticed it only as some section headline. I totally missed the checkbox on the side.

So my proposal would be try to move the checkbox to the other side, so it aligns with the drop-downs below. Not sure if it works, but maybe worth a try? 

Also maybe adding a list of useful keyboard shortcuts to the FAQ. I like this kinds of lists a lot, they are not only a quick reference to the keys, but also give some hints on functions I haven't discovered yet.
See for example https://inkscape.org/sk/doc/keys.html
And I guess there is an maybe halfway easy way to extract this from the code.
For example by putting an description near the code where the keycode is assigned. Doxygen is just one way to extract documentation from code comments.