Author |
Topic |
|
Adequat
Tomato Guru
182 Posts |
Posted - Dec 11 2007 : 07:15:18 AM
|
1) With Alt+G you often get two or more suggestions: MyFile.cpp MyFile.h
I would like two new key shortcuts: * To jump directly to MyFile.cpp (definition) * To jump directly to MyFile.h (declaration) * If too many choices, fall back to the standard menu
2) A keyshortcut to jump directly to the declaration of the type of the focused token.
MyFunction() { sound->volume.adjust(); }
Currently, we have to use Alt+G to go to the declaraction of "volume" in sound.h, then Alt+G again to jump to the declaration of the volume's type. My request: I want to go there in just one key shortcut.
|
|
znakeeye
Tomato Guru
379 Posts |
Posted - Dec 11 2007 : 08:36:27 AM
|
Agree! I actually requested this in a previous post :)
Alt+Shift+G ftw? |
|
|
Dans
Senior Member
Ukraine
45 Posts |
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Dec 13 2007 : 2:44:31 PM
|
Dans that thread is talking about different things.
Adequat we are considering a command to go directly to the variables type:
case=9113
The current alt-g menu, is the problem the menu its self, or the time taken to read the menu? I am not sure about your comment "If too many choices, fall back to the standard menu", since currently VA can list 2 declarations and 2 implementations if you use alt-g on an overloaded function.
Looking at just declarations or just implementations you still have more than one.
We are considering colour coding the alt-g menu to pick out declarations or implementations, to make the current alt-g menu quicker to use:
case=272 |
zen is the art of being at one with the two'ness |
|
|
sl@sh
Tomato Guru
Switzerland
204 Posts |
Posted - Dec 17 2007 : 03:58:50 AM
|
I think what Adequat wants is the ability to directly move from a position that uses a symbol to that symbol's declaration, or from the declaration to it's implementation - both by a single shortcut, without displaying a menu.
I suppose these two are the single most used applications of Alt+G that could be automated in a sensible way. |
|
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Dec 17 2007 : 08:04:06 AM
|
Two new commands "go to declaration" and "go to implementation" certainly make sense, I am just wondering how Adequat was picturing them working when a menu has to be displayed. There are times when VA does not have a single location to jump to, so it has to ask the user what to do.
I just want to be clear before I put the feature request in |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|