Add default keybindings for Go to Tag, remove Transpose default

This does not affect existing users.

Ctrl-T          Go to tag definition
Ctrl-Shift-T    Go to tag declaration

A default keybinding for 'Transpose current line' is no longer
necessary as it does the same as 'Move line(s) up', which we now have
a default for.
This commit is contained in:
Nick Treleaven 2011-11-17 15:58:27 +00:00
parent 82769a046c
commit 9ae71ab6cc
3 changed files with 12 additions and 10 deletions

View File

@ -3731,7 +3731,7 @@ end of the current line.</td>
<td>Duplicates the current line or selection.</td>
</tr>
<tr><td>Transpose current line</td>
<td>Ctrl-T</td>
<td>&nbsp;</td>
<td>Transposes the current line with the previous one.</td>
</tr>
<tr><td>Scroll to current line</td>
@ -4181,7 +4181,7 @@ marker if there already is one.</td>
<td>Goto the previous marker in the current document.</td>
</tr>
<tr><td>Go to tag definition</td>
<td>&nbsp;</td>
<td>Ctrl-T</td>
<td>Jump to the definition of the current word (near
the keyboard cursor). If the definition cannot be
found (e.g. the relevant file is not open) Geany
@ -4189,7 +4189,7 @@ will beep and do nothing. See the section called
<a class="reference internal" href="#go-to-tag-definition">Go to tag definition</a>.</td>
</tr>
<tr><td>Go to tag declaration</td>
<td>&nbsp;</td>
<td>Ctrl-Shift-T</td>
<td>Jump to the declaration of the current word (near
the keyboard cursor). If the declaration cannot be
found (e.g. the relevant file is not open) Geany
@ -6725,7 +6725,7 @@ USE OR PERFORMANCE OF THIS SOFTWARE.</p>
<div class="footer">
<hr class="footer" />
<a class="reference external" href="geany.txt">View document source</a>.
Generated on: 2011-11-17 15:47 UTC.
Generated on: 2011-11-17 15:53 UTC.
Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>

View File

@ -3240,7 +3240,7 @@ Delete to line end Ctrl-Shift-Delete Deletes from the curre
Duplicate line or selection Ctrl-D Duplicates the current line or selection.
Transpose current line Ctrl-T Transposes the current line with the previous one.
Transpose current line Transposes the current line with the previous one.
Scroll to current line Ctrl-Shift-L Scrolls the current line into the centre of the
view. The cursor position and or an existing
@ -3489,13 +3489,13 @@ Goto next marker Ctrl-. Goto the next marker i
Goto previous marker Ctrl-, Goto the previous marker in the current document.
Go to tag definition Jump to the definition of the current word (near
Go to tag definition Ctrl-T Jump to the definition of the current word (near
the keyboard cursor). If the definition cannot be
found (e.g. the relevant file is not open) Geany
will beep and do nothing. See the section called
`Go to tag definition`_.
Go to tag declaration Jump to the declaration of the current word (near
Go to tag declaration Ctrl-Shift-T Jump to the declaration of the current word (near
the keyboard cursor). If the declaration cannot be
found (e.g. the relevant file is not open) Geany
will beep and do nothing. See the section called

View File

@ -290,7 +290,7 @@ static void init_default_kb(void)
_("Delete to line end"), NULL);
/* transpose may fit better in format group */
keybindings_set_item(group, GEANY_KEYS_EDITOR_TRANSPOSELINE, NULL,
GDK_t, GDK_CONTROL_MASK, "edit_transposeline", _("_Transpose Current Line"),
0, 0, "edit_transposeline", _("_Transpose Current Line"),
LW(transpose_current_line1));
keybindings_set_item(group, GEANY_KEYS_EDITOR_SCROLLTOLINE, NULL,
GDK_l, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "edit_scrolltoline", _("Scroll to current line"), NULL);
@ -461,9 +461,11 @@ static void init_default_kb(void)
GDK_comma, GDK_CONTROL_MASK, "edit_gotopreviousmarker",
_("_Go to Previous Marker"), LW(go_to_previous_marker1));
keybindings_set_item(group, GEANY_KEYS_GOTO_TAGDEFINITION, NULL,
0, 0, "popup_gototagdefinition", _("Go to Tag Definition"), LW(goto_tag_definition1));
GDK_t, GDK_CONTROL_MASK, "popup_gototagdefinition",
_("Go to Tag Definition"), LW(goto_tag_definition1));
keybindings_set_item(group, GEANY_KEYS_GOTO_TAGDECLARATION, NULL,
0, 0, "popup_gototagdeclaration", _("Go to Tag Declaration"), LW(goto_tag_declaration1));
GDK_t, GDK_CONTROL_MASK | GDK_SHIFT_MASK, "popup_gototagdeclaration",
_("Go to Tag Declaration"), LW(goto_tag_declaration1));
keybindings_set_item(group, GEANY_KEYS_GOTO_LINESTART, NULL,
GDK_Home, 0, "edit_gotolinestart", _("Go to Start of Line"), NULL);
keybindings_set_item(group, GEANY_KEYS_GOTO_LINEEND, NULL,