Allan Odgaard-4 wrote:
On 2 Jan 2009, at 15:50, Andrea Crotti wrote:
[...] lang = environ['TM_MODE'].lower() [...] It works fine, do you see any possible "problem"?
Other than use of the deprecated TM_MODE, no. But in your case the use seems justified, I’ll have to re-evaluate scrapping that variable.
I think the mode variable could be useful sometimes, and they are not so many, are there good reasons to take away some of them?
Allan Odgaard-4 wrote:
Simply set your command to have HTML output, and it’ll open the “browser” with your commands output as content. What you want is then to have your command output a <meta> tag with a redirect to the actual page (i.e. the Google search URL).
Ok I tried with this #!/usr/bin/env python import webbrowser import urllib2 from os import environ
lang = environ['TM_MODE'].lower() QUERY="http://google.com/codesearch?q=" + environ['TM_CURRENT_WORD'] + "++lang:" + lang print urllib2.urlopen(QUERY).read()
And it works, but it stops working at the first click, maybe not supporting frames or whatever it is in the details page of the source snippets?
Allan Odgaard-4 wrote:
If you have a patch to submit, then see http://wiki.macromates.com/Bundles/HowToContribute
If you have suggestions (no code) then write your suggestion here or at the ##textmate IRC channel.
Ok but now I'm working in my working directory (Bundles) with the default updated via svn (BTW is it normal we're still at revision 10740 since a long time?) in Pristine Copy/Bundles.
This is the way suggested on the manual which is different from the way suggested for developers.. So what should I do, merge everything in the Bundles folder? (and how?)
Some "suggestions", I love TM so I'd like to get it perfect: I think it would be really nice to use a distributed control system like darcs (http://darcs.net/) instead of svn, in such a "distributed" project we could have many nice features.
Frames (maybe already discussed) like in emacs or vim are very useful, I didn't find any nice way to use them. Maybe also giving some more controls to the window positions would be useful also.
And for last thing I would really love to get a small line of input to launch shell commands directly inside TM, useful whenever you need to launch something but you don't care about the output. I know here it's everything is minimal (and that's why it's fantastic), but it could be just activated with some key as the incremental search is, not really annoying.
The default behaviour could be show as tool tip only if you get some errors.