Drop2TagIcon

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
Score 82.0%
Description:

WARNING!!!, this plasmoid needs at least KDE 4.10 and Nepomuk2 python bindings to work. This bindings are available here: http://quickgit.kde.org/?p=scratch%2Fsedwards%2Fpykde4nepomuk2.git

=========================================

Drop2TagIcon is a plasmoid useful to tag files using Nepomuk based in Drop2Tag v0.1 by Nik Lutz with next changes/bugfixes:

New: key modifiers dropping files:
no key - set tag(s) to dropped files
Ctrl key - delete tag(s) to dropped files
Shift key - read file tag(s) from dropped file

Tip: this is the steps to clone tags from one file to others:
1) Select one file and drop to the plasmoid pressing the Shift key.
2) Drop the files you want to add the tags to the plasmoid.

and if you want to remove selected tags drop files holding Ctrl key.

Know problems:
-With shift key the tags stored are the tags of last file and not the sum of all tags in files.
-Multiple tags can only be set to plasmoid dropping a file with shift.
-Plasmoid don't remember multiple tags.

- tags are alphabetically sorted
- support to filtering tags using regular expressions
- mouse wheel can be used to easily up and down in tags list
- plasmoid don't crash at KDE startup
- several fixes to support unicode characters

As seems that Drop2Tag v0.1 approach is abandoned in latest Drop2Tag versions, I upload this hacked version if somebody finds useful.

I think that only an icon combined with the mouse wheel is a good solution but, if you have many tags wheel navigation is not really useful. For this reason I added a filter to focus in a tags subset. In my case I use four Drop2TagH plasmoids in my desktop to achieve my tagging goals.

Please note that I'm not a python developer and I simply change a few things here and there so all credits to Nik Lutz. Many thanks Nik!
Last changelog:

6 years ago

2012/03/22 - v0.6
- Added support to Nepomuk2.
- Removed support to Nepomuk.

21/02/2012 - v0.4
- Added tags deletion option.
- Added clone tags option.

14/02/2011 - v0.3
- Changed nepomuksearch query because old syntax is not supported in KDE 4.6

01/06/2010 - v0.2
- Plasmoid renamed to Drop2TagIcon as Nik suggested.

31/05/2010 - v0.1
- Initial version.

yehielb

6 years ago

Hello, when I add the plasmoid I get the following message on the plasmoid:

This object could not be created for the following reason:
Script Initialization Failed

any help would be appreciated, this is really a nice plasmoid.

Report

C

eusonig

6 years ago

You need kde python bindings installed and the additional Nepomuk2 Python Bindings as I commented in this plasmoid description.

Report

yehielb

6 years ago

ok, got through that. now I get the following trying to configure it... thanks in advance for the help.

no settings yet
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 107, in showConfigurationInterface
self.pyapplet.showConfigurationInterface()
File "/home/djyb/.kde/share/apps/plasma/plasmoids/Drop2TagIcon/contents/code/main.py", line 382, in showConfigurationInterface
self.createConfigurationInterface(self.dialog)
File "/home/djyb/.kde/share/apps/plasma/plasmoids/Drop2TagIcon/contents/code/main.py", line 368, in createConfigurationInterface
self.configParameters = ConfigParameters(self, self._current_tag.label(), self._current_filter, alist)
AttributeError: 'NoneType' object has no attribute 'label'

Report

yehielb

6 years ago

ok, got through that. now I get the following trying to configure it... thanks in advance for the help.

no settings yet
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 107, in showConfigurationInterface
self.pyapplet.showConfigurationInterface()
File "/home/djyb/.kde/share/apps/plasma/plasmoids/Drop2TagIcon/contents/code/main.py", line 382, in showConfigurationInterface
self.createConfigurationInterface(self.dialog)
File "/home/djyb/.kde/share/apps/plasma/plasmoids/Drop2TagIcon/contents/code/main.py", line 368, in createConfigurationInterface
self.configParameters = ConfigParameters(self, self._current_tag.label(), self._current_filter, alist)
AttributeError: 'NoneType' object has no attribute 'label'

Report

yehielb

6 years ago

ok, got it to work by changing some things in main.py
I can send it to you if you are interested.

Thanks again, great work.

Report

C

eusonig

6 years ago

Sure, I'm interested in your changes.

Report

yehielb

6 years ago

where to send?

Report

tomsdale

8 years ago

Hi, I'm getting an error adding it to the desktop and it throws the following error when starting it from the commandline :

tom ~ $ plasmoidviewer Drop2TagIcon
plasmoidviewer(2379)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(2379)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
Traceback (most recent call last):
File "/usr/share/apps/plasma_scriptengine_python/pyappletscript.py", line 59, in init
self.module = __import__(self.pluginName+'.'+relpath)
File "/usr/share/apps/plasma_scriptengine_python/plasma_importer.py", line 107, in load_module
exec code in mod.__dict__
File "/home/tom/.kde4/share/apps/plasma/plasmoids/Drop2TagIcon/contents/code/main.py", line 25, in <module>
from PyKDE4.nepomuk import *
ImportError: No module named nepomuk



Do you know why it doesn't find nepomuk? I have it running and I also created tags.

Report

C

eusonig

8 years ago

I'm using KDE 4.6.5 and this plasmoid works fine. Try to reinstall kde python packages.

Report

tomsdale

8 years ago

Might be a bug in kdebindings-phyhon > 4.6.4 in arch. Unfortunatlely I don't have that package anymore so I'll try it later.
https://bugs.archlinux.org/task/24507

Thx for the help so far.

Report

nik3nt3

9 years ago

I really like the scrolling!

I will check how you fixed the startup-crash and will backport it to Drop2Tag.

Don't you want to rename your plasmoid to maybe "Drop2TagIcon": "H" for hacked doesn't sound very "reliable" to me.

/nik

Report

C

eusonig

9 years ago

It's really simple :). The problem is that Nepomuk is not ready when Plasma starts so api calls to Nepomuk fails and plasmoid crashes. It's a know and logical behaviour because KDE startup is asyncronous.

You need to use try...except and write your code thinking that component could be not initialized properly.

Report

6 years ago

2012/03/22 - v0.6
- Added support to Nepomuk2.
- Removed support to Nepomuk.

21/02/2012 - v0.4
- Added tags deletion option.
- Added clone tags option.

14/02/2011 - v0.3
- Changed nepomuksearch query because old syntax is not supported in KDE 4.6

01/06/2010 - v0.2
- Plasmoid renamed to Drop2TagIcon as Nik suggested.

31/05/2010 - v0.1
- Initial version.

12345678910
16
product-maker UnderTheGun May 01 2014 9 excellent
product-maker frag Mar 24 2013 9 excellent
product-maker plaristote Jun 02 2012 9 excellent
product-maker pars1938 Dec 17 2011 9 excellent
product-maker sam13 Aug 28 2011 9 excellent
product-maker cptG Jul 25 2011 9 excellent
product-maker freemanoid Jul 16 2011 9 excellent
product-maker tomsdale Jul 15 2011 9 excellent
product-maker largetuna May 29 2011 9 excellent
product-maker CatchTime Apr 16 2011 9 excellent
product-maker NetCutter Mar 22 2011 9 excellent
product-maker zakaqere Mar 22 2011 9 excellent
product-maker herrbatka Mar 06 2011 9 excellent
product-maker vitoubien Feb 14 2011 9 excellent
product-maker Sparrowmelody Feb 13 2011 9 excellent
product-maker tamra Jan 23 2011 9 excellent
product-maker Base: 4 x 5.0 Ratings
lei00
Nov 27 2012
tomsdale
Jul 15 2011
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.6
updated Mar 22 2013
added May 31 2010
downloads 24h
0
page views 24h 4