Bug 160583 - Drag & Drop Menu from Konsole 3 is gone
Summary: Drag & Drop Menu from Konsole 3 is gone
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 2.0
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 199797 215725 252725 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-08 22:15 UTC by Luís Pedro Coelho
Modified: 2011-08-14 01:19 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8


Attachments
Graphical mockup of my "Drop Target" idea. (79.24 KB, image/jpeg)
2010-01-11 02:41 UTC, Eike Welk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luís Pedro Coelho 2008-04-08 22:15:06 UTC
Version:            (using KDE 4.0.3)
Installed from:    Ubuntu Packages
OS:                Linux

In konsole from KDE3, drag & dropping a URL trigger a popup menu with options for copying or moving the file to the current directory.

I loved that feature and used it several times a day. Unfortunately, it is gone in KDE 4.

Please bring it back.
Comment 1 Robert Knight 2008-04-09 16:42:24 UTC
This feature was removed as a result of another bug report from users who just wanted the URL to appear when dropped.  Other users meanwhile wanted a different list of actions with a UI to customise it which I felt was over the top.  

For something which you only use a few times a day I think it is easy enough just to type the relevant two-letter command in before or after dropping the URL.
Comment 2 Luís Pedro Coelho 2008-04-09 18:09:16 UTC
The problem with typing the two letter command (although I often make use of the fact that it's "kfmclient move " and not simply "mv") is that, more often than not, the focus is not on the right window for me to type that. The konsole will be on the background and I will be dropping an item from a foreground dolphin/konqueror.
Comment 3 Robert Knight 2008-04-10 10:26:55 UTC
> The konsole will be on the background and I will be dropping
> an item from a foreground dolphin/konqueror.

I take your point.  I think it would be possible to set the keyboard focus on the terminal display when text or a URL is dropped onto it.
Comment 4 FiNeX 2008-04-12 00:16:52 UTC
Noooo... Who is the user which wanted to remove this fantastic feature? I use drag 'n drop very often!!!!

Robert: did you remove completely the feature or is it possible to enable it, maybe with an option???
Comment 5 Robert Knight 2008-04-12 09:52:54 UTC
> Noooo... Who is the user which wanted to remove this fantastic feature?

See bug #66479

Comment 6 FiNeX 2008-04-12 10:29:56 UTC
Thanks Robert. I've added a question on bug #66479.
Comment 7 Nicolas Dubuit 2008-10-16 21:06:20 UTC
As proposed on bug #66479, a modifier key enabling the menu would be most useful.
Comment 8 dmoyne 2008-11-29 11:35:10 UTC
Please add this very useful featur to allow in prticular "cd" when dropping a directory into a konsole.
Thanks
Comment 9 eva 2009-05-21 19:49:51 UTC
I just found out this wonderful feature is gone in KDE 4. What a shame! Wasn't this the one big feature making konsole superior to other console apps?
Comment 10 Kurt Hindenburg 2009-07-11 20:43:51 UTC
*** Bug 199797 has been marked as a duplicate of this bug. ***
Comment 11 Eike Welk 2009-07-11 22:55:14 UTC
I too think the actions should be configurable. 

There should be a library of possible actions, because less knowledgeable users (like me) just don't know many shell commands. This way you would also educate your users, and you would extend an important aspect of GUIs, discoverability, into the domain of textual user interfaces. 

Configuration would be best done with a simple template language like:
kfmclient copy <URL> .
Comment 12 Eike Welk 2009-07-12 01:40:53 UTC
In bug #66479 it was criticised the the pop-up menu is disruptive. Which is true, but I find it more disruptive in Konqueror/Dolphin.
 
To increase the fluency of working with this feature I propose "Drop Targets" instead of the pop-up menu.

When the user drags something into Konsole's window, objects (maybe colored rectangles) should appear, that symbolize the actions. These objects are the "Drop Targets". When the user drops something (an URL) on a "Drop Target" the associated action is performed. Additionally there should be a default action, which is performed when the "drop" happens in the remaining area of the window, which is not covered by "Drop Targets".

I think those "Drop Targets" should be implemented as differently colored rectangles of medium size (bigger than buttuns). They should contain a little bit of descriptive text, and an maybe an icon. In principle however these drop targets could be arbitrarily shaped or animated images. (For example: small animated dragons that take the dropped URL with their claws, read them, and then transport the files with little trucks. :-))

These "Drop Targets" can also be shown when a "drag" pauses over a tab in a tabbar, an application button in the Panel, or an applet.
Comment 13 Robert Knight 2009-07-12 17:25:49 UTC
> This way you would also educate
> your users, and you would extend an important aspect of GUIs,
> discoverability, into the domain of textual user interfaces. 

If your goal is to improve the discoverability of features in the terminal then I think adding lots of GUI widgets to it (people have suggested adding toolbars to the terminal) is probably not the best approach - because it would be like adding stabilizers to a bike for a young child who is learning to ride.  Useful temporarily but an annoyance once you know what you are doing.

A better integrated help search would be better - and perhaps such a search tool already exists for man-page searches.  I'm not sure.
Comment 14 Kurt Hindenburg 2009-10-20 06:08:41 UTC
So is the gist of this wish:
1. Option to enable D&D menu
2. Extra key press to enable D&D menu

I presume you'd want to edit the menu?
Comment 15 Diego 2010-01-10 12:17:58 UTC
Please mind that the votes here are only a part of votes spread around the KDE reporting system:
- 181 points on bug #118857
- 40 points on bug #215725
- 41 votes on KDE Brainstorm Forum:
http://forum.kde.org/brainstorm.php#idea80622
Comment 16 FiNeX 2010-01-10 13:39:14 UTC
*** Bug 215725 has been marked as a duplicate of this bug. ***
Comment 17 FiNeX 2010-01-10 13:42:36 UTC
I completely agree with Diego. The sum of those votes is higher than the eight
votes given to bug #66479.
Comment 18 Eike Welk 2010-01-11 02:41:28 UTC
Created attachment 39749 [details]
Graphical mockup of my "Drop Target" idea.

These "Drop Targets" should appear when a drag enters Konsole's window. When a drop happens on one of the "Drop Targets" its associated action should be performed.

Implementing this idea would provide a graphical interface for multiple actions, that does not impede fluent work.
Comment 19 Tzvetan Mikov 2010-05-22 06:35:20 UTC
I couldn't believe this important function has been removed. Please, please, please restore it! I am using it literally dozens of times per day. Extracting files from within archives, remote shares, changing directories. It literally changes the way Konsole is used and removing it is a huge step backwards.

If there are people complaining about it, then just make it configurable, or as others have suggested using a key modifier. This is not Gnome after all - we shouldn't be afraid of a little flexibility!
Comment 20 Jekyll Wu 2011-07-29 01:10:09 UTC
This is a patch in the reviewboard[1], which seems to bring back this popup menu. 
But it seems got forgotten :(

That patch can still be applied against current code without much trouble.

[1] - https://svn.reviewboard.kde.org/r/4600/
Comment 21 davidblunkett 2011-08-03 21:58:13 UTC
*** Bug 252725 has been marked as a duplicate of this bug. ***
Comment 22 davidblunkett 2011-08-03 22:03:55 UTC
I'll add my voice to this being incredibly useful and symmetric (that is drag and drop of files should do the same for dolphin as konsole thing copy or move)

A popup menu or better still configuable action would be a very apt compromise.

Personally I would use this feature many times a day and i don't like to mix and match keyboard and mouse actions preferring a each interface to operate separately.
Comment 23 davidblunkett 2011-08-03 22:11:15 UTC
BTW You used to be able to drag and drop kmail attachments in this way, now DND only works for Dolphin and not konsole from kmail (v1.13 / kde 4.6).  This was also a very very useful feature.
Comment 24 Kurt Hindenburg 2011-08-14 01:19:06 UTC
Git commit 2dcd5842552684e558716d069b73dd118035b75d by Kurt Hindenburg.
Committed on 14/08/2011 at 03:10.
Pushed by hindenburg into branch 'master'.

Popup menu for drag-n-drop operations.

Restore KDE3 popup menu when any file is dropped into Konsole.

The popup menu allows to Copy, Move or Link the file into the current
working directory or to simply paste its URL as text (the latter being
the current behaviour in KDE4).

For non-local files, the URL is pasted as text.

Note that this adds a konq dependency - KonqOperations:doDrop

Patch by Frank Roscher
FEATURE: 160583
FIXED-IN: 4.8
REVIEW: 4600

M  +1    -0    src/CMakeLists.txt
M  +43   -0    src/TerminalDisplay.cpp
M  +10   -0    src/TerminalDisplay.h
M  +1    -0    src/SessionController.cpp

http://commits.kde.org/konsole/2dcd5842552684e558716d069b73dd118035b75d