[geany/geany] 8f4413: Add 'Open Project' keybinding
Nick Treleaven
git-noreply at xxxxx
Thu Jul 26 00:02:47 UTC 2012
Branch: refs/heads/document-messages
Author: Nick Treleaven <nick.treleaven at btinternet.com>
Committer: Nick Treleaven <nick.treleaven at btinternet.com>
Date: Sun, 08 Jan 2012 17:14:04
Commit: 8f44132dcd0835c00a57b4eb04ce1b4f7a8a6305
https://github.com/geany/geany/commit/8f44132dcd0835c00a57b4eb04ce1b4f7a8a6305
Log Message:
-----------
Add 'Open Project' keybinding
Modified Paths:
--------------
doc/geany.txt
src/keybindings.c
src/keybindings.h
Modified: doc/geany.txt
10 files changed, 10 insertions(+), 0 deletions(-)
===================================================================
@@ -3626,6 +3626,16 @@ Remove Markers and Error Indicators Combines ``Remove Mark
==================================== ==================== ==================================================
+Project keybindings
+```````````````````
+=============================== ========================= ==================================================
+Action Default shortcut Description
+=============================== ========================= ==================================================
+Open Opens a project file.
+Properties Shows the `Project properties`_.
+=============================== ========================= ==================================================
+
+
Build keybindings
`````````````````
=============================== ========================= ==================================================
Modified: src/keybindings.c
5 files changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -262,6 +262,8 @@ static void init_default_kb(void)
group = keybindings_get_core_group(GEANY_KEY_GROUP_PROJECT);
+ keybindings_set_item(group, GEANY_KEYS_PROJECT_OPEN, NULL,
+ 0, 0, "project_open", _("Open"), LW(project_open1));
keybindings_set_item(group, GEANY_KEYS_PROJECT_PROPERTIES, NULL,
0, 0, "project_properties", _("Project properties"), LW(project_properties1));
@@ -1301,6 +1303,9 @@ static gboolean cb_func_project_action(guint key_id)
{
switch (key_id)
{
+ case GEANY_KEYS_PROJECT_OPEN:
+ on_project_open1_activate(NULL, NULL);
+ break;
case GEANY_KEYS_PROJECT_PROPERTIES:
if (app->project)
on_project_properties1_activate(NULL, NULL);
Modified: src/keybindings.h
1 files changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -237,6 +237,7 @@ enum GeanyKeyBindingID
GEANY_KEYS_INSERT_LINEAFTER, /**< Keybinding. */
GEANY_KEYS_INSERT_LINEBEFORE, /**< Keybinding. */
GEANY_KEYS_DOCUMENT_REMOVE_MARKERS_INDICATORS, /**< Keybinding. */
+ GEANY_KEYS_PROJECT_OPEN, /**< Keybinding. */
GEANY_KEYS_COUNT /* must not be used by plugins */
};
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list