Skip to content

Commit

Permalink
Add shortcut to toggle overview map (#623) (#642)
Browse files Browse the repository at this point in the history
Add the shortcut to the xed-ui header and to the xed-shortcuts file
  • Loading branch information
BanceDev committed Jun 5, 2024
1 parent c7d85bd commit b9331c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions xed/resources/ui/xed-shortcuts.ui
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@
<property name="title" translatable="yes">Show bottom pane</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
<property name="accelerator">F7</property>
<property name="title" translatable="yes">Show overview map</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
Expand Down
2 changes: 1 addition & 1 deletion xed/xed-ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static const GtkToggleActionEntry xed_always_sensitive_toggle_menu_entries[] =
{ "ViewWordWrap", NULL, N_("_Word wrap"), "<control>R",
N_("Set word wrap for the current document"),
G_CALLBACK (_xed_cmd_view_toggle_word_wrap), FALSE },
{ "ViewOverviewMap", NULL, N_("_Overview Map"), NULL,
{ "ViewOverviewMap", NULL, N_("_Overview Map"), "F7",
N_("Show or hide the overview map for the current view"),
G_CALLBACK (_xed_cmd_view_toggle_overview_map), FALSE }
};
Expand Down

0 comments on commit b9331c9

Please sign in to comment.