I love the idea!!!  Allowing those features to be scriptable is what will 
improve TextMate beyond any other text editor.  However, I am wondering if the 
URL scheme is the best way to implement those features.

I think in addition to the extended URL scheme idea, we should pursue a 
full-fledge TextMate Scripting API that incorporates all these features.  Look 
at what the Sublime Text 2 Scripting API makes possible: 
http://www.sublimetext.com/docs/2/api_reference.html.

No one is more steadfastly in support of TextMate than I am, but I'm not blind 
myself to the power such a thorough API gives to scripters.  Implementing a 
powerful VIM-like command mode is ~200-300 lines of Python.

If I had any inkling of the best practices for peacefully and sustainably 
bolting-on a Ruby interface to these parts of the C++ code, I would do it 
myself.  I could implement the code would someone else design the skeleton of 
the structure.

In any case, whether through URL scheme or otherwise, I see an infinite 
possibility for TextMate to be expanded into the future.  :)

"For small erections may be finished by their first architects; grand ones, 
true ones, ever leave the copestone to posterity. God keep me from ever 
completing anything." - Herman Melville, Moby Dick  

--  
Brandon Fryslie


On Wednesday, September 5, 2012 at 2:09 AM, Hans-Jörg Bibiko wrote:

> ... and furthermore one could also think about to get something back from 
> calling such a txmt:// url scheme.
>  
> Let's say one wants to know the current set grammar, then one could write a 
> command like:
>  
> txmt://get?currentGrammar
>  
> In order to access the result, well, there're several chances to achieve 
> that, but maybe a file hand-shake handling could be used, i.e. if TM2 
> receives such a "get url" it will process the request and writes the result 
> into a temp file (either a fixed file path or a path which will be passed in 
> txmt:// ) and if TM2 is ready it writes a second temp file (whose name is 
> also fixed or will be constructed on basis on the passed path) with an empty 
> content if the task was successful or, if not, with an error message. The 
> command would simply wait after invoking the txmt:// get url for the second 
> temp file and would process both files.
>  
>  
> Cheers,
> --Hans
>  
>  
> _______________________________________________
> textmate-dev mailing list
> textmate-dev@lists.macromates.com (mailto:textmate-dev@lists.macromates.com)
> http://lists.macromates.com/listinfo/textmate-dev
>  
>  


_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/listinfo/textmate-dev

Reply via email to