Add toggle comment and toggle comment block actions w/ keybindings (#290)
This commit is contained in:
committed by
Clement Lefebvre
parent
992ca7a3ec
commit
4044529191
@@ -11,3 +11,14 @@
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/*remove a keybinding so that we can use it for toggling comments*/
|
||||
@binding-set xed-view-bindings
|
||||
{
|
||||
unbind "<Control>slash";
|
||||
}
|
||||
|
||||
textview
|
||||
{
|
||||
-gtk-key-bindings: xed-view-bindings;
|
||||
}
|
||||
|
@@ -327,6 +327,20 @@
|
||||
<property name="title" translatable="yes">Decrement number at cursor</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">1</property>
|
||||
<property name="accelerator"><ctrl><shift>slash</property>
|
||||
<property name="title" translatable="yes">Toggle comment block</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkShortcutsShortcut">
|
||||
<property name="visible">1</property>
|
||||
<property name="accelerator"><ctrl>slash</property>
|
||||
<property name="title" translatable="yes">Toggle comment</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
@@ -38,6 +38,9 @@
|
||||
<menuitem name="EditSelectAllMenu" action="EditSelectAll"/>
|
||||
<placeholder name="EditOps_3" />
|
||||
<separator/>
|
||||
<menuitem name="EditToggleCommentMenu" action="EditToggleComment"/>
|
||||
<menuitem name="EditToggleCommentBlockMenu" action="EditToggleCommentBlock"/>
|
||||
<separator/>
|
||||
<placeholder name="EditOps_4" />
|
||||
<separator/>
|
||||
<placeholder name="EditOps_5" />
|
||||
|
Reference in New Issue
Block a user