Andrea Crotti | 1 Nov 2008 14:32
Picon

Bundle newbie and erlang


One of the things I love most of textmate is the possibility of many bundles
to search for documentation with a simple ^-H, it's fantastic.

Now I'm studying erlang and I didn't find this functionality in the bundle,
then I made this

#!/usr/bin/env bash

OFF=$TM_CURRENT_WORD.html
echo $TM_CURRENT_WORD | /usr/bin/grep ':'
if [[ $? == 0 ]]
then
	MOD=echo $TM_CURRENT_WORD | cut -d ':' -f 1
	FUN=echo $TM_CURRENT_WORD | cut -d ':' -f 2
	OFF="$MOD.html#$FUN"
fi

ADDR="http://www.erlang.org/doc/man/$OFF"
curl $ADDR

Know it's almost working, but if I give something like
lists:seq it doesn't go to the seq function, because I should also know the
arity of a function, and how to get it??

When I've got something I think it could be useful I can propose in the
developer section?
Thanks
--

-- 
View this message in context: http://www.nabble.com/Bundle-newbie-and-erlang-tp20279615p20279615.html
(Continue reading)

Christoffer Winterkvist | 1 Nov 2008 15:13
Picon

Making a Command using PHP

Is it possible to make a TM command that runs PHP and then displays results in an option box like 'File Completion' (Experimental Bundle) or do I need to use Ruby?


Mvh Christoffer Winterkvist
---------------------------------------




_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Marc Feldesman | 1 Nov 2008 23:21
Picon

Printing vs Viewing Font

I'm having a bit of trouble balancing the the size of the print font with the size of the font visible on the
screen.  The print font is way too large to fit comfortably on a standard sheet of paper, but it appears that
in order to reduce the printing font I also have to reduce the size of the font on the screen.  Is there some way
to decouple these two font sizes and types?  I'd like the print font to be no more than 9 or 10 point, while the
on screen font I'd like to keep at 13 or 14 point.  I've got a 30" monitor and screen real estate is no problem.  I
have old eyes, but I don't like to waste paper or have ugly printouts.

Any suggestions on how to resolve this.  I don't see anywhere to decouple these two fonts.

Thanks.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
Dr. Marc R. Feldesman  
Professor & Chairman Emeritus  
Anthropology Department 
Portland State University 

please reply to:  feldesmanm <at> pdx.edu 
my PERS blog:  http://persinfo.blogspot.com 
SKYPE:  mrfearless47

--- On Sat, 10/25/08, Allan Odgaard <mailinglist <at> textmate.org> wrote:

> From: Allan Odgaard <mailinglist <at> textmate.org>
> Subject: [TxMt] Re: How do I vary the C indentation?
> To: "TextMate users" <textmate <at> lists.macromates.com>
> Date: Saturday, October 25, 2008, 8:04 PM
> On 26 Oct 2008, at 02:48, Mikael Høilund wrote:
> 
> > [...]
> > I'd also like to see this, as I think this would
> enable me to let this
> > auto-indent:
> >
> > class Foo
> >   def bar; end
> > private
> >   def baz; end
> > end
> 
> I think that is already possible. You want to match
> ‘private’ in both  
> the decrease and increase indent patterns. At least a
> similar  
> construct in C++ indents as expected:
> 
>     struct Foo
>     {
>        Foo ();
>     private:
>        void bar ();
>     };
> 
> 
> _______________________________________________
> textmate mailing list
> textmate <at> lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

_______________________________________________
textmate mailing list
textmate <at> lists.macromates.com
http://lists.macromates.com/listinfo/textmate
Andrea Crotti | 2 Nov 2008 02:04
Picon

Error with java bundle


I get this error if I try to run a java program

/Users/andrea/Library/Application Support/TextMate/Pristine
Copy/Bundles/Java.tmbundle/Support/bin/javamate.rb:3:in `require': no such
file to load --
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor
(LoadError) from /Users/andrea/Library/Application Support/TextMate/Pristine
Copy/Bundles/Java.tmbundle/Support/bin/javamate.rb:3

I just svn up all my bundles in that folder via svn, did I do something
wrong maybe?
--

-- 
View this message in context: http://www.nabble.com/Error-with-java-bundle-tp20286039p20286039.html
Sent from the textmate users mailing list archive at Nabble.com.

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

Hans-Jörg Bibiko | 2 Nov 2008 02:10
Picon

Re: Printing vs Viewing Font


On 01.11.2008, at 23:21, Marc Feldesman wrote:

> I'm having a bit of trouble balancing the the size of the print  
> font with the size of the font visible on the screen.  The print  
> font is way too large to fit comfortably on a standard sheet of  
> paper, but it appears that in order to reduce the printing font I  
> also have to reduce the size of the font on the screen.  Is there  
> some way to decouple these two font sizes and types?  I'd like the  
> print font to be no more than 9 or 10 point, while the on screen  
> font I'd like to keep at 13 or 14 point.  I've got a 30" monitor  
> and screen real estate is no problem.  I have old eyes, but I don't  
> like to waste paper or have ugly printouts.
>
> Any suggestions on how to resolve this.  I don't see anywhere to  
> decouple these two fonts.

As far as I know up to now the Print command will use only the  
document font size.
But there are some workarounds.

1)
- invoke the command "Create HTML From Document" or "Create HTML From  
Document With Line Numbers" in the TextMate bundle
- you'll get a new doc containing an HTML representation of the your doc
- here you can change the font-size/family manually (line 22 and 23)
- press CTRL+OPT+APPLE+P to open the Web Preview
- press CTRL+P for printing

This can also be automated:
-open the Bundle Editor, select TextMate > "Create HTML From  
Document", and add e.g.:

.gsub(/font-size:.*/,'font-size: 9pt;')

to the line:
print document_to_html( STDIN.read, :include_css => !ENV.has_key? 
('TM_SELECTED_TEXT') )

to get

print document_to_html( STDIN.read, :include_css => !ENV.has_key? 
('TM_SELECTED_TEXT') ).gsub(/font-size:.*/,'font-size: 9pt;')

-close the Bundle Editor
-invoke that command
-you get a new doc and press CTRL+OPT+APPLE+P
-you'll see your doc in the Web Preview and press APPLE+P for printing

2)
An other way is to use a2ps if installed:
details: http://lists.macromates.com/textmate/2006-April/009412.html

--Hans

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

Hans-Jörg Bibiko | 2 Nov 2008 02:12
Picon

Re: Error with java bundle


On 02.11.2008, at 02:04, Andrea Crotti wrote:

>
> I get this error if I try to run a java program
>
> /Users/andrea/Library/Application Support/TextMate/Pristine
> Copy/Bundles/Java.tmbundle/Support/bin/javamate.rb:3:in `require':  
> no such
> file to load --
> /Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/ 
> executor
> (LoadError) from /Users/andrea/Library/Application Support/TextMate/ 
> Pristine
> Copy/Bundles/Java.tmbundle/Support/bin/javamate.rb:3

Probably you have to update the Support Folder as well.
See http://manual.macromates.com/en/bundles#support_folder

--Hans

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

Florian Gilcher | 2 Nov 2008 22:19
Gravatar

Re: Making a Command using PHP

Textmate is very nice: it doesn't care which scripting language you use to script it ;).

At whats even nicer: Ciarán Walsh wrote a nice introduction on how to use PHP for writing commands:


Have a lot of fun,
Florian Gilcher

On Nov 1, 2008, at 3:13 PM, Christoffer Winterkvist wrote:

Is it possible to make a TM command that runs PHP and then displays results in an option box like 'File Completion' (Experimental Bundle) or do I need to use Ruby?


Mvh Christoffer Winterkvist
---------------------------------------




_______________________________________________
textmate mailing list
textmate-qhrM8SXbD5LrQoZeqNtYVdAWLNoT+7d/@public.gmane.orgm
http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
textmate@...
http://lists.macromates.com/listinfo/textmate
Orestis Markou | 2 Nov 2008 23:23
Picon
Favicon
Gravatar

[ANN] PySmell v0.7, a Python auto-completion library

I'm very proud to announce the release of PySmell v0.7!

PySmell is an auto-completion library for Python, meant to be plugged  
in different editors. It uses static analysis to generate a TAGS file  
for your code, and uses that to give you suggestions. It's very fast -  
suggestions are instantaneous and analyzing Django 1.0 takes ~15  
seconds.

Download from PyPI: http://pypi.python.org/pypi/pysmell/

Issue tracking at Google Code: http://code.google.com/p/pysmell

Development at GitHub: http://github.com/orestis/pysmell/tree/master

The big news for this release is the support for Emacs and TextMate,  
on top of the already existing Vim support. This isn't tested as  
rigorously as I'd like, so please report any issues at Google Code.

Thank you,

Orestis Markou

--

orestis <at> orestis.gr
http://orestis.gr/

--
http://mail.python.org/mailman/listinfo/python-list

Orestis Markou | 2 Nov 2008 23:27
Picon
Favicon
Gravatar

[ANN] PySmell v0.7, a Python auto-completion library

I'm very proud to announce the release of PySmell v0.7!

PySmell is an auto-completion library for Python, meant to be plugged  
in different editors. It uses static analysis to generate a TAGS file  
for your code, and uses that to give you suggestions. It's very fast -  
suggestions are instantaneous and analyzing Django 1.0 takes ~15  
seconds.

Download from PyPI: http://pypi.python.org/pypi/pysmell/

Issue tracking at Google Code: http://code.google.com/p/pysmell

Development at GitHub: http://github.com/orestis/pysmell/tree/master

The big news for this release is the support for Emacs and TextMate,  
on top of the already existing Vim support. This isn't tested as  
rigorously as I'd like, so please report any issues at Google Code.

Thank you,

Orestis Markou

--

orestis@...
http://orestis.gr/

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

Allan Odgaard | 3 Nov 2008 07:58
Favicon

Re: A little help on some custom syntax?

On 31 Oct 2008, at 04:07, andresmb wrote:

> How can i define a scope selector for this:
>
> <anything> do
>  something
> end
>
> I want to highlight <anything> when it is before do block,
> what pattern should i add to ruby language bundle to acomplish this?

What is the end goal here? A pattern like: ^.*?(?=\s+do$) will match  
anything up to a ‘do’, but whether or not an end will come later, it  
can’t say.

Just adding that to the Ruby grammar though will surely break (other)  
things.

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


Gmane