Re: Text Filter Attachment Script

2012-10-25 Thread Patrick Woolsey
At 14:52 -0700 10/17/2012, Oliver Taylor wrote: I've got a simple ruby text filter that underlines text (in Markdown/Setext style): [... code elided ...] And I want to attach a script to the menu item so that if there's no selection the line is selected, then the text filter runs. Here's the

Re: Text Filter Attachment Script

2012-10-25 Thread Oliver Taylor
On Oct 25, 2012, at 1:23 PM, Patrick Woolsey pwool...@barebones.com wrote: I regret this arrangement won't work since you can only attach scripts to intrinsic commands, not text filters or other external items. Interesting, a very good to know. I've got a work-around going via Keyboard

Text Filter Attachment Script

2012-10-17 Thread Oliver Taylor
I've got a simple ruby text filter that underlines text (in Markdown/Setext style): text = ARGF.read counter = text.length puts text counter.times { print - } p And I want to attach a script to the menu item so that if there's no selection the line is selected, then the text filter runs.