A more customized GotoActionAction
I'm working with the base code that exists for this action class:
public class GotoActionAction extends GotoActionBase
I want to customize the test for the list of actions such that it will be actual action id displayed, i.e, like EditorAction.xxxxx.
Then, I would like to be then able to use CamelHump Completion to pick the items. I briefly looked around but there
seemed to be no methods to override to customize this. I would appreciate suggestions on how this can be done.
Thank you!
请先登录再写评论。
The rendering doesn't seem to be very customizable yet. It happens inside GotoActionModel.GotoActionListCellRenderer#getListCellRendererComponent. You can try to play with action presentation or groupNamer, maybe it will be enough. If not, you can either copy this code, or create a pull request with the necessary API to plug in.
By "CamelHump Completion", do you really mean completion, as in Ctrl+Space? Then it's very hard, because completion requires editor, PSI and whatnot, and all of that is missing in this small navigation pop ups. If you only mean CamelHump matching, then it should already work: "ccll" matches "Create Command-Line Launcher" for me.
Also, you can enable "show.configurables.ids.in.settings" Registry option. This will show action ID in Find Action / Keymap Settings on Shift press.
Thanks Peter. I just copied all the relevant classes and hacking it to see if I can get the behavior I want first.
Aleksey, I did enable that setting before but can't get action is to show up. Where should I be pressing SHIFT: Ctl-shift-A and then hold shift?
Yes. But this is a recent addition, so you need 171.2319+ build.

Action id will be shown at the bottom of the popup.