I'm working on a command to reflow perl/shell style # comments and running into a problem with scopes.
When I do a 'select scope' with the mouse on a comment, it correctly selects the surrounding lines beginning with #. However, if I set up a simple 'cat' command (seen here: http://grab.by/WGt) with the input set to "Selected Text or Scope" and the output set to tooltip, the tooltip is displaying the entire contents of the file (seen here: http://grab.by/WHB)
I'm running Version 1.5.8 (1509) on 10.6.2. What am I missing? Thanks!
Matt
Hi
I'm not an expert with Ruby so I need to know if the next command is safe
I want to select a "number" and to get $\numprint{number}$ if number is not empty
and number is not inside a math environment
or
\numprint{number} if number is inside a math environment.
then
if number is empty, I want to get \numprint{...} or $\numprint{...}$
I made this and I would like to know if this code is correct
#!/usr/bin/ruby
# Created by Alain Matthes on 2009-11-15 (www.altermundus.com).
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
if ENV['TM_SELECTED_TEXT'].nil?
input = ENV['']
else
input = ENV['TM_SELECTED_TEXT']
end
if ENV['TM_SCOPE'].match(/math.((.*)|(la))tex/)
$math_del = ""
else
$math_del = "\\$"
end
TextMate.exit_insert_snippet("#{$math_del}\\numprint{#{input}$0}#{$math_del}")
Is it possible to use a shortcut to go out of the first environment {...} and then to go out
of the math environment because the caret is inside {number} ?
Best regards
Alain Matthes
I'm editing R code (under the "R" bundle), and having a number of
issues where I keep getting the dreaded spinning beach ball, and have
to wait a number of seconds before I can keep working. Notably,
whenever I typing in command and then enter the first '(' there is a
significant lag before I get the help pop-up. This is rather
annoying, as typing in simple statements takes a long time.
I had suspected this was a 2.9 versus 2.10 help system issue, so I
upgraded to R 2.10.0 and still had the issue. I also deleted all
traces of 2.9.2 and earlier from my machine, and I still have the
issue.
I'm running MacOSX 10.5.8. Perhaps I am seeing an issue for something
different between 10.5 and 10.6, but I am unable to upgrade to 10.6
for the time being.
I don't know if this is related, but when I start the Rdaemon, I also
see an error:
--
/Users/albert/Library/Application
Support/Rdaemon/daemon/startScript.sh: line 173:
regular
( -
regular
( + 2: syntax error in expression (error token is "( -
regular
( + 2")
>
--
-albert
Hi I'm Dave Miers and primarily use Textmate as an html editor. So I really haven't delved into the depths of what textmate is capable of. I'm still dependent on aids such as are found in the bundles etc.
I note as of the last update the drag snippets for flash and quicktime in the html bundles no longer works correctly. Now I'm not sure when this broke exactly, I just noticed it. version 1.5.9 (1589) I've repeated the problem on 2 systems one being PPC running 10.5.8 and on intel running 10.6.2
Here's an example of flash insert:
/tmp/temp_textmate.194vJJ:75:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of file>>' for nil:NilClass (NoMethodError)
from /tmp/temp_textmate.194vJJ:61:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from /tmp/temp_textmate.194vJJ:99
and quicktime:
2009-12-02 09:47:40.425 osascript[1505:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
134:135: syntax error: Expected “,” but found number. (-2741)
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="Movie Recording.mov">
<param name="controller" value="true">
<param name="autoplay" value="true">
<embed src="Movie Recording.mov"
controller="true" autoplay="true"
scale="tofit" cache="true"
pluginspage="http://www.apple.com/quicktime/download/"
>
</object>
I'm totally lost on this any help?
TIA
Dave
The reason I went back to a mac yet again was to get textMate. There is a
version for PC out there if you do a search for PC Version of textMate that
seems to support all the bundles.
Is there a way to get the ``Watch Document'' option to be master-file
aware? It seems to me that watching the master file doesn't work,
because it only re-compiles when the master changes, and watching the
included files doesn't work because it's not a whole latex file---I
get the error
Error: No \begin{document} found
I couldn't find the command \begin{document} in your file.
Help is much appreciated, as always.
Evan
--------------------------------------------------
Prediction is difficult, especially the future.
Niels Bohr
Javikel wrote:
> I want to buy TextMate but I want to obtain a new release, because I don't
> want to pay now for the 1.5.9 version and in 2 months pay again for an
> update.
Worry not:
http://wiki.macromates.com/FAQ/TextMate2
Cheers,
Paul
Currently the TODO Bundle is giving me this message.
I've searched the list and tried solutions given on page:
http://manual.macromates.com/en/bundles#support_folder.html
but got stuck at par. 5.7.4
In Terminal:
echo "$TM_SUPPORT_PATH"
Doesn't give any result at all. Can anyone explain what I've done wrong?
Thanks,
Gert
Ruby: 1.8.7.
Textmate: 1.5.9 (1589)
OS X: 10.6.2