Re: How to make a plugin method a global command

2011-07-23 Thread Terry Brown
On Fri, 22 Jul 2011 13:52:43 -0700 (PDT) SegundoBob wrote: > Would it be safe to hash the commander and use hash(c) as the key of a > dictionary (which would replace the list)? I think that would work, but I don't think it's a problem just sticking an instance variable on the commander, as long

Re: How to make a plugin method a global command

2011-07-22 Thread SegundoBob
Terry, Thanks. That's a great solution. I'll use it. Before I read your post, I didn't know that monkey patching the commander (as you suggest doing) is allowed. Consequently, I came up with a roundabout way that does not monkey patch the commander: Very simple works for only one file open at