On 02/29/2012 10:21 AM, Darrell Anderson wrote:
These look like kate plugins:
http://www.3111skyline.com/dl/dt/trinity/ss/kate-plugins.jpg
These look like katepart plugins:
http://www.3111skyline.com/dl/dt/trinity/ss/katepart-plugins.jpg
Your second picture shows a unique Sort Kate plugin. What is the file name of the plugin? Is the Sort plugin installed in $HOME/share/apps/kate or $PREFIX/share/apps/kate/plugins? The global katepart plugins are installed at $PREFIX/share/apps/ktexteditor*.*.
The plugin is in ~/.kde/share/apps/kate/plugins/sort and the rc file is:
11:09 alchemy:~/.kde/share/apps> cat kate/plugins/sort/plugin_sort.rc <!DOCTYPE kpartgui> <kpartplugin library="libsortplugin" version="1" name="sort" > <MenuBar> <Menu name="tools" > <Text>&Tools</Text> <Action name="edit_insert_sort" /> </Menu> </MenuBar> <ToolBar name="extraToolBar" > <Action name="edit_insert_sort" /> </ToolBar> <ActionProperties> <Action icon="katesort" name="edit_insert_sort" /> </ActionProperties> </kpartplugin>
The remaining plugins I have are:
11:09 alchemy:~/.kde/share/apps> ls -1 kate/plugins/ katecppsymbolviewer katefiletemplates katehtmltools kateinsertcommand katemake katemodeline kateopenheader katepybrowse katesnippets katetextfilter katexmlcheck katexmltools sort
Do you know from where you obtained that plugin? Is the plugin provided by your distro or something you installed from elsewhere?
Yes, these are all stock plugins from openSuSE 11.4 (3.5.10) that Ilya maintains. All of the source.rpms are available here:
http://ftp5.gwdg.de/pub/opensuse/repositories/KDE:/KDE3/openSUSE_11.4/src/
Specifically, the kate-sort plugin is:
http://ftp5.gwdg.de/pub/opensuse/repositories/KDE:/KDE3/openSUSE_11.4/src/kd...
The contents of the source are:
11:15 alchemy:~/suse/114/tmp> rpm2cpio ../srpm/kde3-katesort-1.0-1.3.src.rpm | cpio -idmv hi16-action-katesort.png hi32-action-katesort.png katesort-1.0.tar.bz2 kde3-katesort-1.0-icons.diff kde3-katesort.spec
If you can discern from where you obtained that plugin, then perhaps we can hack the code into a katepart plugin rather than a kate plugin. If we can do that then you/our desire to add sorting to kwrite will be possible.
Many of the kate plugins are installed from tdeaddons. The standard katepart plugins come from tdelibs.
Darrell
It would be supercool to add this to tde :)