TextMate has a built-in way of creating a custom (and live) completion parser. You start by telling the completion parser, in regex, what you want to scan the document for (e.g. /^chapter\s?\d+$/). This creates a list that TextMate presents in a completion pop-up (it also lets you manually define things you want in the completion pop-up).
I want this in BBEdit. And I'm trying to figure out how to do it. Here's what I've got so far: 1. A script attached to the save event (or something) scans the open document for a regex pattern. 2. This script creates a ctags file from the regex matches in BBEdit's "Completion Data" folder, and adds some predefined ones to the list. Would a ctags file work this way? Would this be flexible enough to get pretty much anything in a completion pop-up? Can the ctags file be in simple enough format that a simple ruby script could generate it? Is this a crazy way of getting competitions in prose? -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
