Revision: 4519 http://geany.svn.sourceforge.net/geany/?rev=4519&view=rev Author: eht16 Date: 2010-01-01 23:20:21 +0000 (Fri, 01 Jan 2010)
Log Message: ----------- Add keybinding to open the last closed tab (closes #2912692).
Modified Paths: -------------- trunk/ChangeLog trunk/doc/geany.html trunk/doc/geany.txt trunk/src/keybindings.c trunk/src/keybindings.h trunk/src/plugindata.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2010-01-01 22:55:18 UTC (rev 4518) +++ trunk/ChangeLog 2010-01-01 23:20:21 UTC (rev 4519) @@ -2,6 +2,9 @@
* *.*: Update copyright information. + * src/keybindings.c, src/keybindings.h, src/plugindata.h, + doc/geany.txt, doc/geany.html: + Add keybinding to open the last closed tab (closes #2912692).
2009-12-31 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/doc/geany.html =================================================================== --- trunk/doc/geany.html 2010-01-01 22:55:18 UTC (rev 4518) +++ trunk/doc/geany.html 2010-01-01 23:20:21 UTC (rev 4519) @@ -6,7 +6,7 @@ <meta name="generator" content="Docutils 0.6: http://docutils.sourceforge.net/" /> <title>Geany</title> <meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" /> -<meta name="date" content="2009-12-31" /> +<meta name="date" content="2010-01-01" /> <style type="text/css">
/* @@ -139,12 +139,12 @@ <br />Nick Treleaven <br />Frank Lanitz</td></tr> <tr><th class="docinfo-name">Date:</th> -<td>2009-12-31</td></tr> +<td>2010-01-01</td></tr> <tr><th class="docinfo-name">Version:</th> <td>0.19</td></tr> </tbody> </table> -<p>Copyright © 2005-2009</p> +<p>Copyright © 2005-2010</p> <p>This document is distributed under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of this @@ -3114,6 +3114,14 @@ <td>Ctrl-O (C)</td> <td>Opens a file.</td> </tr> +<tr><td>Open selected file</td> +<td>Ctrl-Shift-O</td> +<td>Opens the selected filename.</td> +</tr> +<tr><td>Re-open last closed tab</td> +<td> </td> +<td>Re-opens the last closed document tab.</td> +</tr> <tr><td>Save</td> <td>Ctrl-S (C)</td> <td>Saves the current file.</td> @@ -5849,7 +5857,7 @@ <div class="footer"> <hr class="footer" /> <a class="reference external" href="geany.txt">View document source</a>. -Generated on: 2009-12-31 15:43 UTC. +Generated on: 2010-01-01 23:17 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>
Modified: trunk/doc/geany.txt =================================================================== --- trunk/doc/geany.txt 2010-01-01 22:55:18 UTC (rev 4518) +++ trunk/doc/geany.txt 2010-01-01 23:20:21 UTC (rev 4519) @@ -2852,6 +2852,10 @@
Open Ctrl-O (C) Opens a file.
+Open selected file Ctrl-Shift-O Opens the selected filename. + +Re-open last closed tab Re-opens the last closed document tab. + Save Ctrl-S (C) Saves the current file.
Save As Saves the current file under a new name.
Modified: trunk/src/keybindings.c =================================================================== --- trunk/src/keybindings.c 2010-01-01 22:55:18 UTC (rev 4518) +++ trunk/src/keybindings.c 2010-01-01 23:20:21 UTC (rev 4519) @@ -244,6 +244,8 @@ LW(menu_close_all1)); keybindings_set_item(group, GEANY_KEYS_FILE_RELOAD, NULL, GDK_r, GDK_CONTROL_MASK, "menu_reloadfile", _("Reload file"), LW(menu_reload1)); + keybindings_set_item(group, GEANY_KEYS_FILE_OPENLASTTAB, NULL, + 0, 0, "file_openlasttab", _("Re-open last closed tab"), NULL);
group = ADD_KB_GROUP(PROJECT, _("Project"), cb_func_project_action);
@@ -1330,6 +1332,14 @@ case GEANY_KEYS_FILE_OPENSELECTED: on_menu_open_selected_file1_activate(NULL, NULL); break; + case GEANY_KEYS_FILE_OPENLASTTAB: + { + gchar *utf8_filename = g_queue_peek_head(ui_prefs.recent_queue); + gchar *locale_filename = utils_get_locale_from_utf8(utf8_filename); + document_open_file(locale_filename, FALSE, NULL, NULL); + g_free(locale_filename); + break; + } case GEANY_KEYS_FILE_SAVE: on_save1_activate(NULL, NULL); break;
Modified: trunk/src/keybindings.h =================================================================== --- trunk/src/keybindings.h 2010-01-01 22:55:18 UTC (rev 4518) +++ trunk/src/keybindings.h 2010-01-01 23:20:21 UTC (rev 4519) @@ -121,6 +121,7 @@ GEANY_KEYS_FILE_CLOSE, GEANY_KEYS_FILE_CLOSEALL, GEANY_KEYS_FILE_RELOAD, + GEANY_KEYS_FILE_OPENLASTTAB, GEANY_KEYS_FILE_COUNT };
Modified: trunk/src/plugindata.h =================================================================== --- trunk/src/plugindata.h 2010-01-01 22:55:18 UTC (rev 4518) +++ trunk/src/plugindata.h 2010-01-01 23:20:21 UTC (rev 4519) @@ -50,7 +50,7 @@ enum { /** The Application Programming Interface (API) version, incremented * whenever any plugin data types are modified or appended to. */ - GEANY_API_VERSION = 167, + GEANY_API_VERSION = 168,
/** The Application Binary Interface (ABI) version, incremented whenever * existing fields in the plugin data types have to be changed or reordered. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.