Revision: 1854 http://geany.svn.sourceforge.net/geany/?rev=1854&view=rev Author: eht16 Date: 2007-09-05 11:55:51 -0700 (Wed, 05 Sep 2007)
Log Message: ----------- Make keybinding for scrolling by one line changeable.
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c trunk/src/keybindings.c trunk/src/keybindings.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-09-05 18:38:42 UTC (rev 1853) +++ trunk/ChangeLog 2007-09-05 18:55:51 UTC (rev 1854) @@ -1,6 +1,8 @@ 2007-09-05 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/document.c: Fix missing syntax colouring when saving new files. + * src/document.c, src/keybindings.c, src/keybindings.h: + Make keybinding for scrolling by one line changeable.
2007-09-05 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2007-09-05 18:38:42 UTC (rev 1853) +++ trunk/src/document.c 2007-09-05 18:55:51 UTC (rev 1854) @@ -326,6 +326,8 @@ sci_clear_cmdkey(sci, 'T' | (SCMOD_CTRL << 16) | (SCMOD_SHIFT << 16)); // line copy sci_clear_cmdkey(sci, 'L' | (SCMOD_CTRL << 16)); // line cut 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
if (editor_prefs.use_gtk_word_boundaries) {
Modified: trunk/src/keybindings.c =================================================================== --- trunk/src/keybindings.c 2007-09-05 18:38:42 UTC (rev 1853) +++ trunk/src/keybindings.c 2007-09-05 18:55:51 UTC (rev 1854) @@ -311,6 +311,10 @@ GDK_p, GDK_SHIFT_MASK | GDK_MOD1_MASK, "edit_selectparagraph", _("Select current paragraph")); keys[GEANY_KEYS_EDIT_SCROLLTOLINE] = fill(cb_func_edit, GDK_l, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "edit_scrolltoline", _("Scroll to current line")); + keys[GEANY_KEYS_EDIT_SCROLLLINEUP] = fill(cb_func_edit, + GDK_Up, GDK_CONTROL_MASK, "edit_scrolllineup", _("Scroll up the view by one line")); + keys[GEANY_KEYS_EDIT_SCROLLLINEDOWN] = fill(cb_func_edit, + GDK_Down, GDK_CONTROL_MASK, "edit_scrolllinedown", _("Scroll down the view by one line"));
keys[GEANY_KEYS_EDIT_INSERTALTWHITESPACE] = fill(cb_func_edit, 0, 0, "edit_insertwhitespace", _("Insert alternative whitespace")); @@ -1104,6 +1108,12 @@ case GEANY_KEYS_EDIT_SCROLLTOLINE: editor_scroll_to_line(doc_list[idx].sci, -1, 0.5F); break; + case GEANY_KEYS_EDIT_SCROLLLINEUP: + sci_cmd(doc_list[idx].sci, SCI_LINESCROLLUP); + break; + case GEANY_KEYS_EDIT_SCROLLLINEDOWN: + sci_cmd(doc_list[idx].sci, SCI_LINESCROLLDOWN); + break; case GEANY_KEYS_EDIT_DUPLICATELINE: on_menu_duplicate_line1_activate(NULL, NULL); break;
Modified: trunk/src/keybindings.h =================================================================== --- trunk/src/keybindings.h 2007-09-05 18:38:42 UTC (rev 1853) +++ trunk/src/keybindings.h 2007-09-05 18:55:51 UTC (rev 1854) @@ -141,6 +141,8 @@ GEANY_KEYS_EDIT_SELECTLINE, GEANY_KEYS_EDIT_SELECTPARAGRAPH, GEANY_KEYS_EDIT_SCROLLTOLINE, + GEANY_KEYS_EDIT_SCROLLLINEUP, + GEANY_KEYS_EDIT_SCROLLLINEDOWN, GEANY_KEYS_EDIT_INSERTALTWHITESPACE,
GEANY_KEYS_EDIT_AUTOCOMPLETE,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.