From afa786888537001fe0f204816a74e2c4a4d238e1 Mon Sep 17 00:00:00 2001 From: Alexander Schwinn <alexxcons@xfce.org> Date: Mon, 25 Jul 2022 02:02:12 +0200 Subject: [PATCH] Add support for alternative copy/paste/cut shortcuts (Issue #845) - Alternative "Ctrl+insert" for copy - Alternative "Shift+insert" for paste - Alternative "" for cut (can be set by the user) --- thunar/thunar-action-manager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/thunar/thunar-action-manager.c b/thunar/thunar-action-manager.c index 68cb604d6..7d2d32dcf 100644 --- a/thunar/thunar-action-manager.c +++ b/thunar/thunar-action-manager.c @@ -297,10 +297,13 @@ static XfceGtkActionEntry thunar_action_manager_action_entries[] = {THUNAR_ACTION_MANAGER_ACTION_DELETE, "<Actions>/ThunarActionManager/delete-3", "<Shift>KP_Delete", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_action_manager_action_delete), }, {THUNAR_ACTION_MANAGER_ACTION_TRASH_DELETE, "<Actions>/ThunarActionManager/trash-delete", "Delete", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_action_manager_action_trash_delete), }, {THUNAR_ACTION_MANAGER_ACTION_TRASH_DELETE, "<Actions>/ThunarActionManager/trash-delete-2", "KP_Delete", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_action_manager_action_trash_delete), }, - { THUNAR_ACTION_MANAGER_ACTION_PASTE, "<Actions>/ThunarActionManager/paste", "<Primary>V", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("_Paste"), N_ ("Move or copy files previously selected by a Cut or Copy command"), "edit-paste", G_CALLBACK (thunar_action_manager_action_paste), }, + { THUNAR_ACTION_MANAGER_ACTION_PASTE, "<Actions>/ThunarActionManager/paste", "<Primary>V", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("_Paste"), N_ ("Move or copy files previously selected by a Cut or Copy command"), "edit-paste", G_CALLBACK (thunar_action_manager_action_paste), }, + { THUNAR_ACTION_MANAGER_ACTION_PASTE, "<Actions>/ThunarActionManager/paste-2", "<Shift>Insert", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_action_manager_action_paste), }, { THUNAR_ACTION_MANAGER_ACTION_PASTE_INTO_FOLDER,NULL, "", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("_Paste Into Folder"), N_ ("Move or copy files previously selected by a Cut or Copy command into the selected folder"), "edit-paste", G_CALLBACK (thunar_action_manager_action_paste_into_folder), }, { THUNAR_ACTION_MANAGER_ACTION_COPY, "<Actions>/ThunarActionManager/copy", "<Primary>C", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("_Copy"), N_ ("Prepare the selected files to be copied with a Paste command"), "edit-copy", G_CALLBACK (thunar_action_manager_action_copy), }, + { THUNAR_ACTION_MANAGER_ACTION_COPY, "<Actions>/ThunarActionManager/copy-2", "<Primary>Insert", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_action_manager_action_copy), }, { THUNAR_ACTION_MANAGER_ACTION_CUT, "<Actions>/ThunarActionManager/cut", "<Primary>X", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("Cu_t"), N_ ("Prepare the selected files to be moved with a Paste command"), "edit-cut", G_CALLBACK (thunar_action_manager_action_cut), }, + { THUNAR_ACTION_MANAGER_ACTION_CUT, "<Actions>/ThunarActionManager/cut-2", "", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_action_manager_action_cut), }, { THUNAR_ACTION_MANAGER_ACTION_MOUNT, NULL, "", XFCE_GTK_MENU_ITEM, N_ ("_Mount"), N_ ("Mount the selected device"), NULL, G_CALLBACK (thunar_action_manager_action_open), }, { THUNAR_ACTION_MANAGER_ACTION_UNMOUNT, NULL, "", XFCE_GTK_MENU_ITEM, N_ ("_Unmount"), N_ ("Unmount the selected device"), NULL, G_CALLBACK (thunar_action_manager_action_unmount), }, -- GitLab