SF.net SVN: geany: [2730] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri Jun 27 17:55:19 UTC 2008
Revision: 2730
http://geany.svn.sourceforge.net/geany/?rev=2730&view=rev
Author: ntrel
Date: 2008-06-27 10:54:36 -0700 (Fri, 27 Jun 2008)
Log Message:
-----------
Add Go to Start/End of Line keybindings (#1996175).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
trunk/src/keybindings.c
trunk/src/keybindings.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-06-27 17:30:14 UTC (rev 2729)
+++ trunk/ChangeLog 2008-06-27 17:54:36 UTC (rev 2730)
@@ -2,6 +2,8 @@
* src/interface.c, src/callbacks.c, src/callbacks.h, geany.glade:
Add 'Close Other Documents' File menu command (#1976724).
+ * src/keybindings.c, src/keybindings.h, src/editor.c:
+ Add Go to Start/End of Line keybindings (#1996175).
2008-06-26 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2008-06-27 17:30:14 UTC (rev 2729)
+++ trunk/src/editor.c 2008-06-27 17:54:36 UTC (rev 2730)
@@ -3378,6 +3378,8 @@
sci_clear_cmdkey(sci, 'L' | (SCMOD_CTRL << 16) | (SCMOD_SHIFT << 16)); /* line delete */
sci_clear_cmdkey(sci, SCK_UP | (SCMOD_CTRL << 16)); /* scroll line up */
sci_clear_cmdkey(sci, SCK_DOWN | (SCMOD_CTRL << 16)); /* scroll line down */
+ sci_clear_cmdkey(sci, SCK_HOME); /* line start */
+ sci_clear_cmdkey(sci, SCK_END); /* line end */
if (editor_prefs.use_gtk_word_boundaries)
{
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2008-06-27 17:30:14 UTC (rev 2729)
+++ trunk/src/keybindings.c 2008-06-27 17:54:36 UTC (rev 2730)
@@ -353,6 +353,10 @@
0, 0, "popup_gototagdefinition", _("Go to Tag Definition"), NULL);
keybindings_set_item(group, GEANY_KEYS_GOTO_TAGDECLARATION, cb_func_goto_action,
0, 0, "popup_gototagdeclaration", _("Go to Tag Declaration"), NULL);
+ keybindings_set_item(group, GEANY_KEYS_GOTO_LINESTART, cb_func_goto_action,
+ GDK_Home, 0, "edit_gotolinestart", _("Go to Start of Line"), NULL);
+ keybindings_set_item(group, GEANY_KEYS_GOTO_LINEEND, cb_func_goto_action,
+ GDK_End, 0, "edit_gotolineend", _("Go to End of Line"), NULL);
group = ADD_KB_GROUP(VIEW, _("View"));
@@ -1404,6 +1408,12 @@
if (check_current_word())
symbols_goto_tag(editor_info.current_word, FALSE);
break;
+ case GEANY_KEYS_GOTO_LINESTART:
+ sci_cmd(doc->sci, editor_prefs.smart_home_key ? SCI_VCHOME : SCI_HOME);
+ break;
+ case GEANY_KEYS_GOTO_LINEEND:
+ sci_cmd(doc->sci, SCI_LINEEND);
+ break;
}
}
Modified: trunk/src/keybindings.h
===================================================================
--- trunk/src/keybindings.h 2008-06-27 17:30:14 UTC (rev 2729)
+++ trunk/src/keybindings.h 2008-06-27 17:54:36 UTC (rev 2730)
@@ -225,6 +225,8 @@
GEANY_KEYS_GOTO_PREVIOUSMARKER,
GEANY_KEYS_GOTO_TAGDEFINITION,
GEANY_KEYS_GOTO_TAGDECLARATION,
+ GEANY_KEYS_GOTO_LINESTART,
+ GEANY_KEYS_GOTO_LINEEND,
GEANY_KEYS_GOTO_COUNT
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list