On Thu, Apr 21, 2011 at 6:49 PM, Helio Perroni Filho <[email protected]>wrote:

> On Wed, Apr 20, 2011 at 10:54 AM, limodou <[email protected]> wrote:
>
> >> So in what format do I send the patches? Context diff, or something
> else?
> >
> > I always use TortoiseSVN patch tool because I work on windows platform
> > mainly.
>
> Alright then.
>
> I have three patches for you:
>
> *Bash Lexer*
>
> This is the lexer I created to enable syntax highlighting of bash script
> files. It's nothing fancy – it pretty much only wires into UliPad what
> support is already available in the wx.stc package – but it's good enough.
>
> *Script Utils*
>
> There are a number of recurrent operations that emerge when working with
> UliPad scripts – small things such as getting the contents of text buffers,
> opening new tabs and so on – which I eventually collected in a utility
> module. However in order to use that module from other scripts, the
> scripts/ folder must also be added to the module search path. This patch
> adds the scripts/ folder to the module search path, and creates the
> scriptils.py utility collection inside it. This way scripts can
> effortlessly make use of it:
>
> from scriptils import emptytab
>
> doc = emptytab(win)
> doc.SetText('Hello UliPad!')
>
> *Configurable memo.txt File Path*
>
> Easy Memo is a great tool for storing temporary notes, but sometimes I wish
> there was a simple way to share its contents across UliPad installations –
> so that, say, I can record a link to a website I've stumbled upon at work,
> and retrieve it for reading when I get home. I eventually managed that by
> making the path to the memo.txt file configurable, and setting it to a
> file inside a shared Dropbox <http://www.dropbox.com> folder. After the
> patch is applied, it's possible to set the path to memo.txt in config.ini:
>
> [default]
> memo = "C:\\path\\to\\memo.txt"
>
> All patches were created against revision 550.
>
> That's it for now. If you have any doubts or requests, feel free to contact
> me.
>
> --
> Ja ne,
> Helio Perroni Filho
> http://machineawakening.blogspot.com/
>
>
Thank you very much. And only one is some differenet. For scriptils.py I
din't put it to scripts folder, but modules, so if user want to import
scriptils,
just do like this:

from modules.scriptils import emptytab

I think it's better. What do you think.

-- 
I like python!
UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
UliWeb <<simple web framework>>: http://code.google.com/p/uliweb/
My Blog: http://hi.baidu.com/limodou

Reply via email to