Closed BenReierson closed 4 years ago
@BenReierson This is proving difficult to resolve as I've been unable to override the commanding engine to use our navigation command.
I'd like to propose a work around.
In our 4.3 release we will be adding navigation links into all our tooltips. This is a rough mockup of how this will work:
A navigation link would appear in our tooltips whenever MFractor can perform a navigation. Clicking on this link would perform the equivalent of Command+D.
I feel this is a strong alternative as it surfaces MFractor's navigation capabilities in a way that is easy to discover and use.
Would this be a suitable alternative?
Maybe we could add this as an adornment, like we did with Color that will open the Color Picker. We could add an adornment of a small button with a link icon that would do this navigation when clicked.
I don't think an adornment would be suitable here. Adornments should be used to provide additional contextual information (see color/grid indices/escaped characters) and, as we provide navigation for most/all XAML elements, we risk polluting the editor with navigation adornments.
@BenReierson Do you have any thoughts?
It could also be a code action, so it can be easily accessed from the keyboard only.
@ravero Yep, that is the current issue we are working around. The Visual Studio Mac go-to behaviour is not allowing us to override it with our Go to symbol command (see GoToXamlSymbolCommand
).
The Command+D
shortcut is bound by us and set to execute before VS Macs, but it is not being honoured.
Having it as a Code Action invoked from ALT + Enter menu wouldn't work?
@BenReierson I've now created "navigation link" tooltips to surface all navigation shortcuts into our tooltips.
Examples:
This will be available in MFractor 4.3.
Closing as 4.3 introduced navigation links to allow XAML navigation.
Two related issues:
By default, Mfractor's Command+D shortcut is overridden by visual studio's go-to-declaration shortcut.
After deleting the vs shortcut, the mfractor shortcut is not working for me for on xaml bindings. I can right-click and select 'go to xaml symbol' and it works. It shows the keyboard shortcut hint, but it doesn't respond when trying to use it.
Installation Information