Drag’n’drop menus/Ark “extract here” popup menu

KDE Brainstorm is great, when I was a little bored of fixing bugs and started feeling tired of the same code all the time, seeing peoples ideas once again brought me back to the coding mood. What they suggested this time was a menu where you can drag an archive file, and have “Extract here” pop up in the menu at the destination where the file is dropped. Looking at dolphin/libkonq code I saw that there was a TODO for actually bringing this kind of functionality back (remember dropping an image file on the desktop and getting “set as wallpaper”?) So I dived in and started hacking on a new plugin architecture for adding this kind of popups.

At this point the code has not been polished and is not ready for commiting yet, but it will be in a few days I think. Screenshot:

extracthere2

For anyone that want to extend their application with an item like this, now is the time to act to get it ready in time for 4.3. The “set as wallpaper” plugin will also be trivial to implement and is up for grabbing for anyone looking for a junior/junior high job.

These kind of conveniences are, in my eyes, the small but important things that made KDE what it is.

About these ads

16 Responses to “Drag’n’drop menus/Ark “extract here” popup menu”

  1. Angel Blue01 Says:

    Great to hear!

  2. Hans Says:

    This is awesome. Do you mind if I link to this in the brainstorm thread (or maybe you plan to do it yourself)?

  3. Harald Says:

    Sure, go ahead. That thread can probably get moved to the Implemented category then :)

  4. Hans Says:

    Nope. Moved to “Done” instead – the first non-forum related idea to get moved there.
    (The Implemented section is for ideas that are already implemented, so it’s much cooler to be marked as Done, I would say. ;)).

  5. Jakob Petsovits Says:

    By the way, I noticed that Ark doesn’t cope with non-tarballed .bz2 files (and I think, .gz as well). I’m pretty sure this worked in the KDE 3 version, and if you could fix this, that would be awesome :)

  6. monstermunch Says:

    Hi,

    Great work! Btw, I just added an idea to KDE brainstorm about making it easier to unzip archives that have just been downloaded from the internet:

    http://forum.kde.org/option-to-automatically-unzip-downloaded-archives-t-39814.html

    This idea doesn’t seem hard to implement (just a different dialogue box produced by ark) yet I think it would make the said task significantly faster for everyone and make things much easier for novices.

  7. KDE Brainstorm porta i primi frutti: proposta accettata!! | Crismon's Blog Says:

    [...] Per ulteriori informazioni a riguardo, consultare il blog di Harald Hvaal. [...]

  8. Marco Di Fresco Says:

    Very interesting. :-)

  9. Primera idea del KDE Brainstorm aceptada. | KDE Blog Says:

    [...] Es decir, cuando arrastramos un archivo de una carpeta a otra tengamos la posibilidad de descompimir un archivo directamente. Pues bien, esta idea pronto estará disponible en nuestro KDE. De momento el código está en estado beta. Quizás sea bueno ver una imagen de lo que se quiere conseguir. Vía: Harald’s hacks [...]

  10. Kurt Says:

    Slightly OT.
    Hi Harald et al, any news about Ark’s integration with Konqueror or Dolphin [KDE4x], regarding a ‘Compress’ context menu entry?
    I’m currently using Fileroller … have to ‘add’ folder by folder by folder ad infinitum … hmmm, let’s just say I want baaack.
    Thanks!

    • Harald Says:

      I don’t get what you mean, the compress context entry has been there since kde 4.2. Expain what you are asking about.

  11. Max Says:

    I just googled “drag drop extract” because I thought it would be neat to have exactly this functionality in KDE and wondered if there was anything out there providing it. Then I found this post, nice. So will this get in with KDE 4.4 or when?

  12. pollycoke :) » Luca Beltrame (einar77): First KDE Brainstorm idea implemented! Says:

    [...] Harald Hvaal’s blog I learnt that the first non-forum suggestion has been implemented! I think this shows without doubt [...]

Comments are closed.


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: