[txmt-dev] Re: Question about PlugIns

2013-01-29 Thread bmf
The ability to independently access and modify each individual selection from inside a command or plugin would make TextMate much more powerful and life a lot easier for plugin/bundle developers. Things like 'Expand selection to enclosing HTML/XML tags' or 'Wrap selections in tag (with multipl

[txmt-dev] Re: Question about PlugIns

2013-01-29 Thread Caleb Land
I spent some time playing with making a regular bundle, and I think that I can make some of the functionality work. The current (textmate 1) plugin has some functionality that I don't think I will be able to implement, like selecting matching tags. AFAIK there isn't a way to update the select

[txmt-dev] Re: Question about PlugIns

2013-01-28 Thread Allan Odgaard
On Jan 28, 2013, at 8:41 PM, Caleb Land wrote: > […] I can type "table>tr*3>td*3" and hit ^E and it will create a table with > three rows and three columns. > > It works on selections or if the cursor is at the end of the Emmet expression. > > How it works > From what I can tell, when an Emmet

[txmt-dev] Re: Question about PlugIns

2013-01-28 Thread Caleb Land
I have some more information about how the plugin works. Some background The Emmet plugin is the new name for the ZenCoding plugin. It gives some utility methods for writing HTML and CSS. It lets you type a shorthand syntax and then expand it with a keyboard shortcut. It's kinda like a beefed u

[txmt-dev] Re: Question about PlugIns

2013-01-28 Thread Caleb Land
It looks like the plugin needs information about the selection in the editor. It needs to be able go get the start position/end position and the contents of the selection It also needs the "TM_SCOPE" so it can detect what kind of file is being edited. Thanks for the help. -Caleb On Sunday

[txmt-dev] Re: Question about PlugIns

2013-01-27 Thread Allan Odgaard
On Jan 26, 2013, at 21:43, Caleb Land wrote: > […] It uses the result to access: > > TM_LINE_NUMBER > TM_LINE_INDEX Is all you need the position of the caret? ___ textmate-dev mailing list textmate-dev@lists.macromates.com http://lists.macromates.com