Bug 181731 - Provide configuration support for "magic modifier"
Summary: Provide configuration support for "magic modifier"
Status: REOPENED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: language (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-24 11:39 UTC by Andreas Pakulat
Modified: 2012-12-23 09:17 UTC (History)
3 users (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 Andreas Pakulat 2009-01-24 11:39:04 UTC
KDevelop provides a magic modifier that allows to access semantic information about the currently visible/selected code piece. This is right now hardcoded to ALT and should be made configurable.

The use for that modifier is this:
It allows you to access the semantic information behind the code by keyboard,
using a navigation-widget, like this:
- When you're in the editor:
  - When you press ALT, and the code-browser is not visible, then a
navigation-tooltip will pop up after a timeout, that can be navigated using
the arrows keys. It disappears as soon as you release ALT.
  - When you're within the editor and the code-browser is visible, then no
navigation-tooltip will pop up, rather you'll be able to navigate within the
code-browser using ALT+arrows.

- When you have a quickopen- or code-completion list open:
 - As soon as you press ALT, the current item is expanded and an embedded
navigation-widget shown, that can be navigated using arrow keys. As soon as
you release ALT, it is unexpanded again. (This is very confenient, since it
allows peeking into the items with very few key-presses)
- If you press+release ALT fast, then the expansion of the item is toggled, so
it's possible to expand multiple at the same time.
Comment 1 Olivier.jg 2009-12-30 10:15:40 UTC
Sounds like it should be a very easy to find config option with a good explanation, as that would help make it discoverable.
But where? "User Interface"? "Language Support"?
Comment 2 David Nolden 2010-01-09 14:50:59 UTC
Not easily possible, mainly because the modifier is used in kate (completion-list) as well as in KDevelop. The setting would need to be shared. Also, I think the value of having it configurable is not very high.
Comment 3 Olivier.jg 2010-01-13 08:20:48 UTC
Perhaps it's not so important to be able to change it, but offering a config option would help it to be discoverable. Seeing as how it's outside the scope of KDevelop though, it probably shouldn't be VHI-1.0.0. Perhaps there's another way to make it obvious?
Comment 4 David Nolden 2010-01-16 15:40:16 UTC
I don't see how this is a major issue, and it's not possible to fix for 1.0, so changing the attributes.

No clue how you can make a keyboard shortcut obvious, we probably should just advertise it in FAQs and/or tutorials.
Comment 5 Kevin Funk 2012-12-22 23:59:31 UTC
I suppose this is no longer an issue. There is a shortcut for this, which is modifiable. Also there are options in the language support dialog.
Comment 6 Andreas Pakulat 2012-12-23 09:17:29 UTC
I don't see a Shortcut in the configure-shortcuts dialog that has just 'Alt', but I can still hold Alt to get the semantic tooltip. Neither do I see a config option related to this in the lanugage support kcm.