Feature request: Limit the number of actions shown in the help-overlay (action-name limit)
Hi, some GNOME applications have multiple shortcuts/accelerator for specific actions. For example, zoom-in action in Nautilus.
const gchar *zoom_in_accels[] =
{
"<control>equal",
"<control>plus",
"<control>KP_Add",
"ZoomIn",
NULL
};
First Available Option
Developers can declare accelerators for actions in the source code as well as in the help-overlay.ui file. However, having two locations to check for shortcuts can increase the likelihood of errors.
<property name="title" translatable="yes" context="shortcut window">Zoom in</property>
<property name="accelerator"><Primary>plus</property>
Second Available Option
Developers can declare accelerators in the source code using the action-name, which is generally better than declaring the same accelerator twice in both the source code and the help-overlay.ui file. This helps to ensure consistency and reduce the potential for errors.
<property name="title" translatable="yes" context="shortcut window">Zoom in</property>
<property name="action-name">view.zoom-in</property>
There is a little problem here. Action-name shows all available shortcuts without limiting. Meaning may seen too long and too many in the help-overlay.
My Suggestion
Could you implement a limit for action-name.
<property name="title" translatable="yes" context="shortcut window">Zoom in</property>
<property name="action-name">view.zoom-in</property>
<property name="limit">2</property>