diff --git a/ChangeLog b/ChangeLog index 5467d554..42eb92b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-01-08 Enrico Tröger + + * doc/geany.docbook, src/keybindings.c, src/keybindings.h: + Added keyboard shortcut for Save As. + Added missing documentation for some keyboard shortcuts. + + 2007-01-07 Nick Treleaven * src/utils.c, src/utils.h, src/encodings.c, src/document.c, diff --git a/doc/geany.docbook b/doc/geany.docbook index efc3e54e..2d7b8c40 100644 --- a/doc/geany.docbook +++ b/doc/geany.docbook @@ -1145,6 +1145,10 @@ Save Saves the current file. + + Save As + Saves the current file under a new name. + Save all Saves all open files. @@ -1179,6 +1183,10 @@ Makes a selection of all text in the current document. + + Insert date + Inserts a customisable date. + Preferences Opens preferences dialog. @@ -1199,6 +1207,11 @@ Find in files Opens the Find in files dialog. + + Next message + Jumps to the line with the next message from the last call + to Find usage. + Go to line Opens the Go to line dialog. @@ -1267,6 +1280,12 @@ Compiles the current file with the Make tool. + + Next error + Jumps to the line with the next error from the last build + process. + + Run Executes the current file in a terminal emulation. @@ -1309,6 +1328,14 @@ Editing operations + + Convert selection to lower case + Converts the current selection to lower case. + + + Convert selection to upper case + Converts the current selection to upper case. + Duplicate line or selection Duplicates the current line or selection. diff --git a/src/keybindings.c b/src/keybindings.c index 37522a3c..7013163f 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -52,6 +52,7 @@ static void cb_func_menu_new(guint key_id); static void cb_func_menu_open(guint key_id); static void cb_func_menu_save(guint key_id); static void cb_func_menu_saveall(guint key_id); +static void cb_func_menu_saveas(guint key_id); static void cb_func_menu_print(guint key_id); static void cb_func_menu_close(guint key_id); static void cb_func_menu_closeall(guint key_id); @@ -110,6 +111,8 @@ void keybindings_init(void) GDK_o, GDK_CONTROL_MASK, "menu_open", _("Open")); keys[GEANY_KEYS_MENU_SAVE] = fill(cb_func_menu_save, GDK_s, GDK_CONTROL_MASK, "menu_save", _("Save")); + keys[GEANY_KEYS_MENU_SAVEAS] = fill(cb_func_menu_saveas, + 0, 0, "menu_saveas", _("Save as")); keys[GEANY_KEYS_MENU_SAVEALL] = fill(cb_func_menu_saveall, GDK_S, GDK_SHIFT_MASK | GDK_CONTROL_MASK, "menu_saveall", _("Save all")); keys[GEANY_KEYS_MENU_PRINT] = fill(cb_func_menu_print, @@ -278,6 +281,7 @@ static void keybindings_add_accels() // apply the settings GEANY_ADD_ACCEL(GEANY_KEYS_MENU_SAVEALL, menu_save_all1); + GEANY_ADD_ACCEL(GEANY_KEYS_MENU_SAVEAS, menu_save_as1); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_PRINT, print1); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_CLOSE, menu_close1); GEANY_ADD_ACCEL(GEANY_KEYS_MENU_CLOSEALL, menu_close_all1); @@ -471,6 +475,11 @@ static void cb_func_menu_saveall(G_GNUC_UNUSED guint key_id) on_save_all1_activate(NULL, NULL); } +static void cb_func_menu_saveas(G_GNUC_UNUSED guint key_id) +{ + on_save_as1_activate(NULL, NULL); +} + static void cb_func_menu_close(G_GNUC_UNUSED guint key_id) { on_close1_activate(NULL, NULL); diff --git a/src/keybindings.h b/src/keybindings.h index 0a9294de..24dbe101 100644 --- a/src/keybindings.h +++ b/src/keybindings.h @@ -46,6 +46,7 @@ enum GEANY_KEYS_MENU_NEW = 0, GEANY_KEYS_MENU_OPEN, GEANY_KEYS_MENU_SAVE, + GEANY_KEYS_MENU_SAVEAS, GEANY_KEYS_MENU_SAVEALL, GEANY_KEYS_MENU_PRINT, GEANY_KEYS_MENU_CLOSE,