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.pyutility 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/

Attachment: Configurable memo file path.patch
Description: Binary data

Attachment: Script Utils.patch
Description: Binary data

Attachment: Bash Lexer.patch
Description: Binary data

Reply via email to