Definitely True. We need good code completion for RoR on Textmate. It's all
about having the right tools and decent code completion is definitely top of
the list. Something like what MS visual studio has, they call it
intellisense, would be everything. I mean code completion for your own
classes/methods anywhere....
Is there anything we as a community can do to improve the Ruby bundle for
this? I understand the plugin API is not done yet for TM...
cheers
-James
_________________________________________________________________
Get a FREE small business Web site and more from Microsoft® Office Live!
http://clk.atdmt.com/MRT/go/aub0930003811mrt/direct/01/
I've looked for an answer but, as yet, haven't found one. I'm experiencing
irregular spacing within the textmate window. It doesn't matter what format
the file is in. It looks something like this: 'Po in t you r b rows e r
to'. I've looked at preferences but don't see an answer. I'm using ver
1.5.6 on PowerBook G4 running mac os x 10.4.10. Any suggestions?
--
View this message in context: http://www.nabble.com/Irregular-spacing-tf4406810.html#a12572251
Sent from the textmate users mailing list archive at Nabble.com.
I have a question that I'm sure has a simple solution, and if my
brain worked properly these days I'd be able to find it either online
or somewhere in the archives... But I can't, so here goes...
I need to parse an entire project through a regex, and produce some
formatted output. The regex is quite simple, and the reason is to
create a 'translation' file. I have a huge project where I've used
the wordpress-style convention (which in turn is based on the gettext
style convention) of translating strings, namely passing them to the
__() function (this is all in php). I'm not using gettext, i've just
wrapped my own code around that function (which is why i'm using __()
instead of _() )
This function at the moment simply returns the input as output (since
all the text strings are in english, and I haven't really translated
anything yet so my translation files are empty). What I want is to
parse all of my code for /__\(['"](.*)['"]\)/ and some variations
thereof, and produce a line-separated list of strings that need to be
translated. I'd like to make this an automated process, because this
is an ongoing project and i'd like to refresh the to-be-translated
strings file frequently.
I believe poedit already does something like this, but attempting to
get my head around .po and .mo files at this point just gave me a
migraine (nb: if someone knows of a good, step-by-step 'for dummies'
tutorial for this stuff, I'd appreciate it).
Any ideas?
Constantinos Neophytou
Is there any way to excluding some directories from "go to file"? I
have a project set up where three (library) directories contain
something like 15000 files that I never want to complete on. Because
there's so many files, the "go to file" dialog box takes a few
seconds to appear. --M.
--
http://beebo.org
+44 78 2118 9049
Hello:
I work developing software using Windows at the office, but at home I
get to do my own stuff in a Mac -- so I use TextMate for that.
However, I've noticed that most (all?) language syntaxes in the bundles
menu use the 'C' escape character, even if the language really doesn't
support that escape sequence. Specifically, I was interested in
changing the Pascal/Delphi syntax to use doubled single-quotes ('') as
an escaped quoted-string quote instead of \' (which is taken as literal
in Pascal).
Anyway, before I take the time to learn and figure out the syntax
formatting stuff to do this, I was wondering if someone already had
done this (or if it could be included in the next version :).
Cheers!
dZ.
--
"Bastard Operators don't just win. Anyone can win. Bastard Operators
win and totally demoralise. That's real winning."
-- BOfH
hi,
just a short note: there is still a problem with the error parsing
machinery:
undefined control sequences don't get caught:
from the log file:
./pozdniakov-segerer.tex:38: Undefined control sequence.
l.38 \bikkkk
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
from the typeset & view output window:
Found 0 errors ...
greetings
christoph
Is this normal? <see the screen shot>. As far as I know, the blank bar
appear when in Python, Ruby, SQL, Regular Expression, and
AppleScript... probably more. I have poked around more and can't
figure what it does.
hi @all,
i am trying set up TextMate for using latexmk.pl as describe in
http://plesslweb.ch/2007/04/02/setting-up-latex-on-mac-os-x/ and , but
am running into some problems.
The symptom is
! LaTeX Error: Unknown graphics extension: .eps.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.72 ...\includegraphics[width=80mm]{pics/au4.eps}
?
! Emergency stop.
...
l.72 ...\includegraphics[width=80mm]{pics/au4.eps}
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
and, yes, i have
\usepackage{graphicx}
on my main file.
At this point I should say that I'm able to successfully compile the
project with TeXShop, but not with latexmk (simple manual latex +
bibtex + latex). In Linux, latexmk is doing the job perfectly.
What I guess might be the source of the problem is that I have two
latex installations, so i am guessing that One is texlive2007, and the
other results from installing too much stuff in Fink.
So, my question would be: how can I correctly setup TextMate/latexmk
so that it is going to use the correct installation?
Are there any path variables that need setting, or simply an explicit TEXINPUTS?
Any help would be greatly appreciated!
Hi there,
I just found out that Araxis Merge (IMHO one of the best merging tools
available, and the only program that makes me miss Windows sometimes)
is coming to the Mac platform.
The current beta is quite nice, has AppleScript support and includes
commandline tools for automation.
So... is there any chance of having the Subversion.tmbundle crew take
a look at it?
Hopefully you'll instantly fall in love and add support for it as a
diffing/merging tool : )
More info, and download at
<http://www.araxis.com/merge_mac/>
Thanks in advance ; )
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
Hi,
I don't know whether this is a bug or it's the normal case. I'm using
TM 1.5.6 (1414)
[ a '|' is indicating the caret]
Supposing you have a plain text file with a line:
Dies ist ein | Test.
TM_CURRENT_WORD = 'ein Test'
Why??
If I have that one:
Dies ist ein Test. |
TM_CURRENT_WORD = is undefined
Fine.
Can someone explain me that behaviour please.
Thanks,
Hans
I got the following error today when I tried to run a TextMate
command in the GTD2 bundle:
/tmp/temp_textmate.P3vuHw:4:in `require': No such file to load -- erb
(LoadError) from /tmp/temp_textmate.P3vuHw:4
I've been playing around with my ruby installation, but it seems to
be running fine (1.8.6). I can run a script with "require 'erb'"
from within TextMate, so I don't think that ruby is the problem. I
also checked to make sure that I haven't changed the code for the
command, but it checks out as the most current in svn.
Any idea what's going on? Thanks.
Mike
Hi Brad,
thx for the quick answer :)
The Latex bundle is the original which came with TextMate, Version 1.5.6 (1405).
The excerpt I mailed was taken from the main.log file.
Anyway, compilation with pdflatex is indeed unsuccessful due to the eps figs.
On my linux system I've always had success with 'latexmk -ps', and so
I've set 'TM_LATEX_OPTIONS' to '-ps'.
The output of the typesetting process is the following (WARNING: LONG)
Typeset & View
main.tex
Theme:
Compiling LaTeX…
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6
Typesetting: ./main.tex
Document Class: article 2005/09/16 v1.4f Standard LaTeX document clas
Typesetting: ./draft.tex
Typesetting: ./introduction.tex
LaTeX Warning: Citation `klattklatt1990' on page 1 undefined on input line 9.
LaTeX Warning: Citation `hms1964' on page 1 undefined on input line 15.
LaTeX Warning: Citation `guenther1998' on page 1 undefined on input line 19.
LaTeX Warning: Citation `hanson_stevens2002' on page 1 undefined on input line
LaTeX Warning: Citation `stevens1989' on page 1 undefined on input line 28.
LaTeX Warning: Citation `liberman1985' on page 1 undefined on input line 28.
LaTeX Warning: Citation `perrier2005' on page 1 undefined on input line 28.
LaTeX Warning: Citation `doupekuhl1999' on page 1 undefined on input line 31.
LaTeX Warning: Citation `leonardo2005' on page 1 undefined on input line 32.
LaTeX Warning: Citation `doupekuhl1999' on page 1 undefined on input line 33.
Typesetting: ./synergies.tex
LaTeX Warning: Citation `rabiner1967' on page 2 undefined on input line 37.
LaTeX Warning: Reference `eq:amps' on page 2 undefined on input line 44.
LaTeX Warning: Reference `eq:main' on page 2 undefined on input line 45.
LaTeX Warning: Reference `fig:au' on page 2 undefined on input line 64.
./synergies.tex:72 Unknown graphics extension: .eps.
Typesetting: ./results.tex
LaTeX Warning: Citation `klattklatt1990' on page 3 undefined on input line 8.
LaTeX Warning: Citation `klatt1980' on page 3 undefined on input line 9.
LaTeX Warning: Reference `sec:vowels+consonants' on page 3 undefined on input
LaTeX Warning: Citation `ladefoged2005' on page 3 undefined on input line 25.
Typesetting: ./voweltable.tex
LaTeX Warning: Reference `fig:voweltriangle' on page 3 undefined on input line
Typesetting: ./voweltriangle.tex
./voweltriangle.tex:13 Unknown graphics extension: .eps.
LaTeX Warning: Reference `fig:au' on page 3 undefined on input line 48.
./results.tex:63 Unknown graphics extension: .eps.
./results.tex:71 Unknown graphics extension: .eps.
LaTeX Warning: Reference `fig:klatt' on page 3 undefined on input line 89.
./results.tex:93 Unknown graphics extension: .eps.
Typesetting: ./discussion.tex
LaTeX Warning: Reference `sec:vowels' on page 4 undefined on input line 11.
Typesetting: ./bibliography.tex
LaTeX Warning: There were undefined references
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right
Output written on main.pdf (4 pages, 121801 bytes)
main.log
This is BibTeX, Version 0.99c (Web2C 7.5.6
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6
Typesetting: ./main.tex
Document Class: article 2005/09/16 v1.4f Standard LaTeX document clas
Typesetting: ./draft.tex
Typesetting: ./introduction.tex
Typesetting: ./synergies.tex
./synergies.tex:72 Unknown graphics extension: .eps.
Typesetting: ./voweltriangle.tex
./voweltriangle.tex:13 Unknown graphics extension: .eps.
./results.tex:63 Unknown graphics extension: .eps.
./results.tex:71 Unknown graphics extension: .eps.
./results.tex:93 Unknown graphics extension: .eps.
Typesetting: ./bibliography.tex
Output written on main.pdf (4 pages, 120871 bytes)
main.log
Found 0 errors, and 5 warnings in 2 runs
It would be nice to have Code Completion included in the Rails bundle.
I have split my time using TextMate for PHP and Ruby on Rails, and one
thing that I like about how PHP is handled in TM is code completion
(hitting Escape for a partial function name to get a list of possible
functions to choose from.)
It would be extremely useful to have this for Rails. I read that if I
freeze Rails, then code completion would work, but in most cases, one
does not want to freeze Rails. One thing that would be especially
convenient is to have code completion for Rails methods that are
globally available in Rails views, such as link_to; this method alone
has no less than SIX other variations, to give you an example of the
standardized method naming convention in Rails. This is commonplace
among the other methods in Rails.
link_to variations include:
- link_to_function
- link_to_remote
- link_to_if
- link_to_image
- link_to_unless
- link_to_unless_current
Anyways, hopefully this will drum up some discussion about this and
get something going. It would be nice if someone who already has
experience creating Completion code for TM Bundles could handle this
task, since I rarely touch TM Bundles and Snippets.
--
Gary King
http://www.kinggary.com/http://www.linkedin.com/in/garyking
I searched the archives back to July of '06, but did not find anything
on the list about this...
I'm developing on a Linux box that's got my source tree on it. My Mac
NFS mounts this directory, and I use TextMate on my Mac to edit the
sources on the Linux box. Whenever I leave the textmate window and come
back, I have to wait for about 5-15 secs (with a spinning beach ball),
before I can edit my files again. Is there some NFS setting that I can
tweak to remove this wait? Or some config thing in textmate?
Any help would be appreciated.
Thanks in advance,
Per
--
Per Reedtz Thomsen | Reedtz Consulting, LLC | F: 209 883 4119
V: 209 883 4102 | pthomsen(a)reedtz.com | C: 209 996 9561
GPG ID: 1209784F | Yahoo! Chat: pthomsen | AIM: pthomsen
Hi,
Joachim Mårtensson wrote a marvelous extension to tm_dialog - the
code completion popup.
(See his mail http://lists.macromates.com/pipermail/textmate/2007-
August/021853.html)
Now I had the idea to enhance it a bit in respect of file/path name
completion and a word completion based on cocoa's spell checker
dictionaries.
####
File/Path completion:
tmCommand:
"$DIALOG" -f -p '{pathcompletion=YES;}'
Input: None
Output: Show as Tool Tip (for errors messages)
It turns out that this is the fastest way to insert a path I ever saw ;)
If you type '/App' it will start there and inserts the longest match
automatically.
If the current document is saved and you type ' ' it starts at
TM_DIRECTORY.
Is there TM_SUPPORT_PATH or TM_BUNDLE_SUPPORT before the caret and
you type e.g. ' ' it starts at the given path.
The popup window doesn't disappear if I inserted an item. Instead it
shows the content of the inserted path.
####
Word Completion
tmCommand:
"$DIALOG" -f -p '{wordcompletion=YES;lang=nl_NL;}' or "$DIALOG" -f -p
'{wordcompletion=YES;lang=en_GB;}'
Input: None
Output: Show as Tool Tip (for errors messages)
By my opinion it's better than cocoa's built-in completion ;)
It also doesn't disappear if I append a new character to my word or
if I delete a character. Instead it shows new suggestions.
A demo can be found at:
http://www.bibiko.de/TM_completion.mov (2.6MB)
Some tiny things have to be done but the tentative code works. If I
fixed them I will post the changes to Joachim. He will commit it to the
http://macromates.com/svn/Bundles/branches/Dialog%20PlugIn%
20Completion%20Menu/ branch.
My question is whether there are other possibilities to use this
extraordinary extension.
One idea would be to feed this popup window with TM's internal
completion list but up to now I didn't find a way to have access to
it (Allan?).
Comments, suggestions?
Cheers,
Hans
Hi!
Does anybody know how to add ability to edit/add post slug (for
WordPress blog) in TM?
I like to post through TM but my posts mostrly in russian so slugs are
too... And that is very non frendly for IE/FFox users - if i want to
send them link to my post...
Alexey Blinov
Hi all,
The Hyperlink Helper bundle is fun, but it would be more useful for me to have a
macro that would auto-convert all urls in a text document to active
hyperlinks--eg, replacing:
Please visit my home page at http://mysite.net/home.html today!
with
Please visit my home page at <a
href="http://mysite.net/home.html">mysite.net/home.html</a> today!
or some variation on this.
I could write this macro as a RegExp global replace, but I was thinking someone
else may have already scripted it. If you know of a pre-existing macro, please
let me know.
BTW this forum has been very helpful and quick to respond in the past--thanks
for the support!
jon
Hello,
One extremely useful command that I use very frequently when editing code in
Visual Studio.net is the "back to previous edit location" command.
For example; I am editing file X on line 12. When editing I decide I need to
change something in file Y. After making the change I want to go back to
file X on line 12. This happens a lot of times during coding sessions.
(there is also a next edit location command that would go back to file Y, so
it's kind of navigating in a stack of edit location history).
Is this functionality already present in Textmate? If not, consider this as
a feature request. Also is this something I could add myself using Textmate
extensibility features?
Regards,
Ward
--
View this message in context: http://www.nabble.com/feature-request%3A-back-to-previous-edit-location-tf4…
Sent from the textmate users mailing list archive at Nabble.com.
Ahoy.
I've been thinking about doing a smart codecompletion thing for HTML.
Then maybe CSS too.
The way it would work would be similar to how CSSEdit and Dreamweaver
code completion works.
Inside of an HTML tag, you hit space to bring up a list of attributes
that are valid for that tag.
Outside of an HTML tag you hit a key command or tab completion to
bring up a list of tags.
Also, it should be smart enough to insert xhtml tags or html4.0 tags
depending on the doctype.
Pretty simple really, but I'm not sure if people really want me to
share this or just do it for myself.
So, if you would use such a feature, please reply to this message.
Please also reply with what other features you'd like to see in this.
thanks
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Ciao Folks,
is it just me or is there something broken in the 'Typeset and
View'-Command after Revision 8121?
Using an otherwise unchanged setup, I am getting the following output:
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6
Traceback (most recent call last): File "/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texMate.py", line
376, in ? isFatal,numErrs,numWarns = commandParser.parseStream() File
"/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texparser.py", line
47, in parseStream fun(myMatch,line) File "/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texparser.py", line
237, in startLatex bp = LaTexParser(self.input_stream,self.verbose)
TypeError: __init__() takes exactly 4 arguments (3 given)
Any ideas?
Greetz
Bastian
hello list.
As I've mentioned before on Allans blog, I'm developing a plugin which
should ease developing Actionscript 2 with TextMate.
The plugin is a interface for Mtasc and has an integrated SocketServer which
can display your trace commands. It also has it's own browser (based on the
WebView of course), which can show which files are loaded by your flash
movie.
You can see some screenshots here: http://nesium.com/blog/flashmate/
It works pretty solid right now (I use it for production on a daily basis)
and I hope that I can release a beta version over the next week. So if
you're interested in using it, please drop me a line. I would be pretty
happy if someone could assist me in testing this thing!
cheers,
Marc
One of the very few complaints I have regarding Textmate is how it
handles font sizes for printed documents. I have the apple 30" cinema
display (beautiful!). The problem is that if I have a reasonably
small size font on the screen, the print size is huge. In order to
get the print on the page down to a reasonable font size, I have to
reduce the screen font size down to practically microscopic!
The help system mentions something about the Source Bundle having a
"View Source as PDF" function, but I couldn't find that function.
Bundles -> Source does not show it.
Anyway, I was wondering what other users have done to mitigate this
problem.
Thanks,
sjf
I love how Monaco 11 looks like against my dark TM background when in the
"light" smoothing style. However I can't stand the rest of the OS text and
especially Helvetica in Safari and prefer those to be in "standard" style,
they all just look too fat in "light" while Monaco looks anaemic in
"standard".
Thanks in advance
Allan,
I love Find in Project's... preview window which shows every matched
line in every file in the project. I love it so much so that I often
use it even when I only care about a single file in a project and
just ignore the extraneous results of the other files.
Thus, I am always disappointed when editing a single file (not part
of a project) and I select Find in Project... only to be greeted with
a window titled "Find in Project: <none>" that only beeps at me when
I try to use it. :-(
This may already be on the docket for 2.0, but I'd much prefer if
"Find..." and "Find in Project..." were to always bring up the same
window (whether editing a single file or a project) with one
difference. The window would have a radio-button such as:
(o) Search in current file
( ) Search in project
With the selected radio button according to whether the user used
"Find in Project..." or "Find..." to bring up the window. For single
file editing, the control would be disabled.
I'm sure you can think of a better UI design; I'm just arguing that
the preview functionality is useful in more than just a project context.
Said window could even grow an additional feature:
(o) Search in current file
( ) Search in project
( ) Search files in project matching pattern: [......]
(It should go without saying that any unique features of the
"Find..." window should be available in this unified window.)
I'm sure I'm missing something obvious that makes this a poor
suggestion or difficult to implement. :-)
Thoughts?
j.
Hello,
Can I please get the Grails <http://grails.codehaus.org> TextMate
bundle <http://ldaley.com/downloads/Grails.tmbundle.zip> considered
for inclusion in the bundles repository. It was primarily developed
by Graeme Rocher who developed the Groovy bundle which is in the
repository now. I am submitting this as I have made some changes/
additions with Graeme's blessing.
I would also like to get commit access to this bundle and the Groovy
bundle. What do I need to do to prove my worthiness so to speak? (not
meant to sound antagonizing)
Thanks,
- LD.