Hi there, I've just downloaded Textmate and am really enjoying using
it though there is one basic feature that I can't seem to find:
-how do I auto-format my code?
I program in Actionscript and am used to pressing the 'Auto Format'
button in the Flash Actions panel to tidy up my formatting.
I've looked at the manual and through the documentation but I can't
seem to figure this out!
Any help much appreciated and if anyone has any other specific tips
for AS users using Textmate please let me know :)
Thanks,
Ali
Hi,
I've noticed a bug in the function detection of the C language Bundle.
A function is not properly recognized when the arguments are spread
over several lines. This causes the syntax highlighting to be broken
and the function will not appear in the 'Jump to function' popup list.
I've attached a patch to the C syntax file which corrected the problem
for me. I haven't noticed any side-effects so far but I don't know if
it's really the best solution.
Allan, I would be glad if you could incorporate a fix to this issue in
an upcoming release.
Thanks,
Angelo
Hi all,
Every now and then my Project Drawer groups seem to collapse every
time TM becomes the active application, which bugs me no end. Is the
cause for that known? I can't seem to detect a pattern, it is fine
for weeks, then there are days where it does that all the time.
Thanks
Gerd
I'm attempting to use TM for my most common development tasks, but haven't
got my head around it yet. Can someone point me at the right place to find
documentation about the following:
Task 1: I work on a code base of about 50,000 lines of ordinary C code,
spread over about 30 files. Most of what I do is cut, paste, search, make. I
want to add some functions to the context menu. First, I want a function
that would take me to the definition of the item under the cursor. E.g., if
it's a function, open a window containing the prototype, or otherwise show
me the prototype. If it's a constant, take me to the header file where it's
defined. Second, I want a function that will find references to the symbol
under the cursor. I don't want it to find definitions or comments, just any
chunk of code that actually uses the symbol. This would be some variant of
the 'Use Selection For find', but as a context menu item.
Task 2: I want to add an item to the context menu that will do the
following: save any dirty files, then run the makefile of the project. If
there are any errors, take me to the place in the source file that contains
the first error. This would be something like the Command-B, but as a
context menu item. Also, when I tried using Command-B, it attempted to build
the code using Xcode. I just want it to run the makefile in a shell and show
me the errors. I would also want to
--
View this message in context: http://www.nabble.com/Context-menu%3A-Help-me-get-my-mind-around-this...-tf…
Sent from the textmate users mailing list archive at Nabble.com.
Hi everyone,
I use a lot Mathematica and I am so used to the way to type greek letters…
Here is how it works, it's very simple :
– First press Esc
– Then press, e.g., the letter “p”
– press once again Esc and the “p” you just typed is replaced by Pi
Of course, you see the generalization to the other Greek letters. The thing
is that,
writing a LaTeX document, I often find myself reaching to the Esc key just
to realize
that nothing happens and that I'm NOT in Mathematica :-D
So, what do you think ? Would it be possible to implement this way of
entering
greek letters in TextMate ?
Thanks in advance :-)
--
View this message in context: http://www.nabble.com/-LaTeX--Entering-greek-letters-%E2%80%9C%C3%A0-la-Mat…
Sent from the textmate users mailing list archive at Nabble.com.
Hey guys,
I want to suggest to change the "left...right" snippet, which wraps
"(something)" into "\left(something\right)". Right now the snippet
catches any trailing caracter, but commonly it will only be used with
brackets. I wanted to wrap "\{something\}" into
"\left\{something\right\}". So I changed the snippet to
${TM_SELECTED_TEXT/(.*)(\\}|\)|\])/\\left$1\\right$2/}
Maybe this is interesting for others and could be integrated into the bundle.
regards,
Ruben
Hello. It looks like `SmartyPants.pl` is still hard-coded in these
commands.
Markdown.tmbundle/Commands/Markdown preview.plist
Markdown.tmbundle/Commands/MultiMarkdown Preview.tmCommand
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
HTML.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
LaTeX (Memoir).plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
LaTeX.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
PDF.plist
Markdown.tmbundle/Commands/↓↓ Convert Document:Selection to
RTF.plist
Markdown.tmbundle/Commands/↓↓ Generate Output and open in
Browser.plist
If someone gets a chance, can they be updated to use "$
{TM_SMARTYPANTS:-SmartyPants.pl}" instead? Thanks.
---
Rob
<http://www.skurfer.com/>
Hi!
Fortunately the blogging-bundle is working for me again (fetching and
posting), only the category-snippet is not working. When I use it I
get the following error:
/tmp/temp_textmate.XHi7MM:4:in `require': No such file to load -- /
Users/nik/Library/Application Support/TextMate/Support/lib/dialog.rb
(LoadError)
from /tmp/temp_textmate.XHi7MM:4
I'm using the actual svn-co and the support-folder and so on is up to
date as well.
Any ideas?
Niels
Hello,
I have found very limited XML editing applications that are
affordable for the Mac.
I am wondering if there is a good XML (.xsd, .xml, xhtml, ect) bundle
or even a really nice Theme for reading said XML files?
Thank you!
Having upped my PHP version to 5.2.4 I realized that the Validate
syntax command in the Textmate PHP bundle gets text from both stdout
and stderr. Don't know if it was like that with previous PHP version,
but the fix is simple.
change result = `#{ENV['TM_PHP'] || 'php'} -d display_errors=on -l`
to result = `#{ENV['TM_PHP'] || 'php'} -d display_errors=on -l 2> /dev/null`
in the Validate syntax command
I also found it useful to add a similar command for ZendCodeAnalyzer.
Create a new command with Save: Current document, Input: Entire
document, and Output: Show as tool tip containing this code:
#!/usr/bin/env ruby
require ENV['TM_SUPPORT_PATH'] + '/lib/textmate'
result = `#{ENV['TM_ZCA'] || 'ZendCodeAnalyzer'} #{ENV['TM_FILEPATH']} 2>&1`
puts result.gsub(/^.*\(line (\d+)\)/, 'line \1')
TextMate.go_to :line => $1 if result =~ /line (\d+)/
In this case we do want both stderr and stdout, but they are in the
wrong order, so 2>&1 fixes that.
Perhaps this is useful for someone.
--
Sven Axelsson