By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 881 - kate-sort plugin should be added tdeaddons and be ported to katepart
Summary: kate-sort plugin should be added tdeaddons and be ported to katepart
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: tdeaddons (show other bugs)
Version: R14.0.0 [Trinity]
Hardware: All Linux
: P5 enhancement
Assignee: David C. Rankin
URL:
Depends on:
Blocks: 1969 2014
  Show dependency treegraph
 
Reported: 2012-02-29 11:48 CST by David C. Rankin
Modified: 2017-08-06 15:02 CDT (History)
7 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
Kate 'Tools' menu showing 'Sort' plugin (21.32 KB, image/jpeg)
2012-02-29 11:48 CST, David C. Rankin
Details
Kate 'plugins' included in std opensuse kde3 kate (62.26 KB, image/jpeg)
2012-02-29 11:50 CST, David C. Rankin
Details
TDE14 source code for katesort-plugin (attachment corrupted) (1.37 MB, application/x-gzip)
2014-02-25 15:50 CST, David C. Rankin
Details
Patch to add katesort plugin to tdeaddons (attachment corrupted) (73.28 KB, patch)
2014-02-26 16:19 CST, Darrell
Details | Diff
katesort sources pruned of cruft (attachment corrupted) (375.42 KB, application/x-xz)
2014-02-26 16:28 CST, Darrell
Details
katesort plugin source code - before qt-tqt and kde-tde convert (attachment corrupted) (315.02 KB, application/x-xz)
2014-03-01 03:02 CST, David C. Rankin
Details
Patch to add katesort plugin to tdeaddons (73.28 KB, patch)
2014-03-02 18:23 CST, Darrell
Details | Diff
katesort sources pruned of cruft (375.42 KB, application/x-xz)
2014-03-02 18:29 CST, Darrell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David C. Rankin 2012-02-29 11:48:59 CST
Created attachment 445 [details]
Kate 'Tools' menu showing 'Sort' plugin

The current kate on suse 11.4 (3.5.10) includes a "Tools -> Sort" menu item that allows the user to sort the text contained within the editor window (see attached screenshots). This functionality should be added to tdeaddons so that it is available.

Also, the current sort is a 'kate' plugin that, if possible, should be made a 'katepart' plugin so that it is available to kwrite as well.

The current opensuse source rpms is:

http://ftp5.gwdg.de/pub/opensuse/repositories/KDE:/KDE3/openSUSE_11.4/src/kde3-katesort-1.0-1.3.src.rpm

which contains the source:

katesort-1.0.tar.bz2

apparently originally from:

http://kde-apps.org/content/show.php/Katesort+plugin?content=69495

The sort capability has been standard on opensuse kde3 for years and it is irreplaceable for development allowing developers to easily sort list of dependency packages, etc.. so that sources can be made more readable by providing sorted lists without having to resort to external bash sort (which means lists are never going to be sorted because nobody takes the extra effort required :)

Would be a great addition to TDE.
Comment 1 David C. Rankin 2012-02-29 11:50:23 CST
Created attachment 446 [details]
Kate 'plugins' included in std opensuse kde3 kate
Comment 2 David C. Rankin 2014-02-25 15:47:06 CST
Attached is the completed conversion for the TDE14 katesort-plugin. It builds fine on arch with the standard autotools build. After building, simply install, then launch kate and go to Settings -> Configure Kate -> Plugins (first) and then  just check the box next to Sort.
Comment 3 David C. Rankin 2014-02-25 15:50:19 CST
Created attachment 1956 [details]
TDE14 source code for katesort-plugin (attachment corrupted)

This source needs to be tested (works perfect on Arch), then pushed to the TDE git tree under applications.
Comment 4 Darrell 2014-02-26 16:19:50 CST
Created attachment 1960 [details]
Patch to add katesort plugin to tdeaddons (attachment corrupted)

This patch adds the katesort plugin to tdeaddons as originally requested in the bug report summary. The short katesort help handbook is merged into the tdeaddons kate plugins handbook. The patch has been tested on Slackware 14.0 32-bit.
Comment 5 Darrell 2014-02-26 16:28:53 CST
Created attachment 1961 [details]
katesort sources pruned of cruft (attachment corrupted)

This tar.xz file is derived from the original sources but pruned of all unnecessary cruft. These sources are used with a 'katesort' build script as though the sources would be installed to the application branch. The help handbook was updated with a separate *.desktop file in order to properly populate the help handbook table of contents.

These pruned sources were tested on slackware 14.0 32-bit.

I prefer the patch that merges kate sort into tdeaddons. No additional *.desktop files are needed with the tdeaddons version because the short handbook was merged directly into the tdeaddons kate-plugins handbook. The original sources were about 750 KB, the pruned sourced about 350 KB, and the merged tdeaddon sources only about 75 KB.
Comment 6 David C. Rankin 2014-02-27 13:41:25 CST
That's smart. For testing do we just add the katesort directory below tdeaddons and let the existing tdeaddons autotools setup configure katesort to build (I guess via it's subdirs or directories call?)
Comment 7 David C. Rankin 2014-03-01 03:02:23 CST
Created attachment 1965 [details]
katesort plugin source code - before qt-tqt and kde-tde convert (attachment corrupted)

Slavek, as you requested here is the original source before qt-tqt or kde-tde conversion. Darrell, this has all the cruft cleaned and is named 'katesort' as you named it to become a subdirectory to the tdeaddons code. It already has had the 'admin' directory deleted/replaced with the tde admin. The only things that will need to be done after you push this to the git tree is:

(1) convert_existing_qt3_app_to_tqt3
(2) convert_existing_kde3_app_to_tde
(3) copy Darrell's docbook fix/merge to doc dir

I have already tested the above conversion process (minus the docbook merge) and it works fine. So let's get this pushed. The resulting file list is:

/opt/trinity/lib/trinity/libsortplugin.la
/opt/trinity/lib/trinity/libsortplugin.so
/opt/trinity/share/apps/kate/plugins/sort/plugin_sort.rc
/opt/trinity/share/doc/tde/HTML/cs/katesort/common
/opt/trinity/share/doc/tde/HTML/cs/katesort/index.cache.bz2
/opt/trinity/share/doc/tde/HTML/cs/katesort/index.docbook
/opt/trinity/share/doc/tde/HTML/cs/katesort/sort_plugin_cs.png
/opt/trinity/share/doc/tde/HTML/en/katesort/common
/opt/trinity/share/doc/tde/HTML/en/katesort/index.cache.bz2
/opt/trinity/share/doc/tde/HTML/en/katesort/index.docbook
/opt/trinity/share/doc/tde/HTML/en/katesort/sort_plugin_en.png
/opt/trinity/share/icons/hicolor/16x16/actions/katesort.png
/opt/trinity/share/icons/hicolor/32x32/actions/katesort.png
/opt/trinity/share/services/katesort.desktop
Comment 8 Timothy Pearson 2014-03-02 18:07:49 CST
Comment on attachment 1956 [details]
TDE14 source code for katesort-plugin (attachment corrupted)

Can you please resubmit this attachment?  It was corrupted in the Bugzilla upgrade.

Thanks!
Comment 9 Timothy Pearson 2014-03-02 18:08:40 CST
Comment on attachment 1960 [details]
Patch to add katesort plugin to tdeaddons (attachment corrupted)

Can you please resubmit this attachment?  It was corrupted in the Bugzilla upgrade.

Thanks!
Comment 10 Timothy Pearson 2014-03-02 18:09:05 CST
Comment on attachment 1961 [details]
katesort sources pruned of cruft (attachment corrupted)

Can you please resubmit this attachment?  It was corrupted in the Bugzilla upgrade.

Thanks!
Comment 11 Timothy Pearson 2014-03-02 18:09:43 CST
Comment on attachment 1965 [details]
katesort plugin source code - before qt-tqt and kde-tde convert (attachment corrupted)

Can you please resubmit this attachment?  It was corrupted in the Bugzilla upgrade.

Thanks!
Comment 12 Darrell 2014-03-02 18:23:57 CST
Created attachment 1967 [details]
Patch to add katesort plugin to tdeaddons

Updated patch to replace corrupted version of the same in attachment 1960 [details].
Comment 13 Darrell 2014-03-02 18:29:57 CST
Created attachment 1968 [details]
katesort sources pruned of cruft

Updated tar.xz to replace corrupted attachment 1961 [details].
Comment 14 Slávek Banko 2014-03-04 15:17:00 CST
Pushed to GIT in hashes ba41b408, d7401b1d, 462324fb and final 3e682801.
Thank you all for prepare and testing.

This bug report can be closed?
Comment 15 Michele Calgaro 2014-03-05 02:42:02 CST
Kate sort works great! Well done. IMO we could close.
Comment 16 Michele Calgaro 2014-03-12 23:11:09 CDT
I am closing the bug.
David, if you really need the sort plugin to be converted to a "katepart' plugin so that if can be used in KWrite as well, please open a separate wishlist bug report, since that will definitely go after v14.0.0 release