Merge lp:~jeremywootten/pantheon-files/always-paste-into-current-with-Ctrl-V into lp:~elementary-apps/pantheon-files/trunk

Proposed by Jeremy Wootten
Status: Merged
Approved by: PerfectCarl
Approved revision: 1704
Merged at revision: 1704
Proposed branch: lp:~jeremywootten/pantheon-files/always-paste-into-current-with-Ctrl-V
Merge into: lp:~elementary-apps/pantheon-files/trunk
Diff against target: 14 lines (+2/-1)
1 file modified
src/View/AbstractDirectoryView.vala (+2/-1)
To merge this branch: bzr merge lp:~jeremywootten/pantheon-files/always-paste-into-current-with-Ctrl-V
Reviewer Review Type Date Requested Status
PerfectCarl (community) Approve
Review via email: mp+245452@code.launchpad.net

Commit message

Ctrl-V pastes into current directory, regardless of any selection

Description of the change

In this branch, pasting using the Ctrl-V ignores any selection and pastes into the current directory, which is safer and more intuitive.

To post a comment you must log in.
Revision history for this message
PerfectCarl (name-is-carl) wrote :

Work as expected in grid/list/miller view

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/View/AbstractDirectoryView.vala'
2--- src/View/AbstractDirectoryView.vala 2014-12-28 09:28:17 +0000
3+++ src/View/AbstractDirectoryView.vala 2014-12-30 20:14:21 +0000
4@@ -2182,8 +2182,9 @@
5
6 case Gdk.Key.v:
7 if (only_control_pressed) {
8- /* Force attempt to paste - as a fallback will paste into current directory */
9+ /* Will drop any existing selection and paste into current directory */
10 action_set_enabled (common_actions, "paste_into", true);
11+ unselect_all ();
12 common_actions.activate_action ("paste_into", null);
13 update_menu_actions ();
14 return true;

Subscribers

People subscribed via source and target branches

to all changes: