[cssed-devel] Python plugin
Brought to you by:
iagorubio
From: Iago R. <iag...@hi...> - 2005-09-29 17:12:31
|
As I mentioned in my last mail, I'm going to explain the new python plugin. This plugin provides python binding for cssed's plugable interface. It's just a way to make cssedd scriptable. An example script can be: -------------------------------------------------------- import cssed text = cssed.get_text() cssed.set_selection_range(0, cssed.get_length()) cssed.clear_sel() cssed.add_text(text.expandtabs(4)) -------------------------------------------------------- This script will take all the text in the currently opened document, select and delete it, and change it for a version of the same text but with all tabs changes for spaces - 4 spaces per tab. As you can see is a really easy way to add custom functionality to cssed. If you want you can place those scripts in the $HOME/.cssed folder and integrate it in cssed's menus. I've been working with it for a long time and it's working really well with all but poorly written scripts. I've written some notes for users and developers that can help undestand better how it works: User Guide (start with this): http://iagorubio.com/cssed/release-0.4.0/python-plugin- doc/pycssed_user_guide-html-0.1/t1.html Developer guide (then with this): http://iagorubio.com/cssed/release-0.4.0/python-plugin- doc/pycssed_developers_guide-html-0.1/t1.html I've also uploaded some scripts I'm using and other test cases to test: http://iagorubio.com/cssed/release-0.4.0/python-plugin- doc/scripts_list.html They're packaged here: http://iagorubio.com/cssed/release-0.4.0/python-plugin- doc/pycssed_scripts.tgz All downloads are available from the snapshot page: http://iagorubio.com/cssed/release-0.4.0/binaries.html md5s http://iagorubio.com/cssed/release-0.4.0/checksums.html I hope you enjoy it !! -- Iago Rubio |