I'm getting the message "interpreter failed: No such file or directory" when
I try to use bundle commands that are written in Ruby, including commenting,
HTML's "Convert selection to entities" and so on.
I've verified that /usr/bin/env and /usr/bin/ruby are functioning properly
outside of Textmate, and that the paths within the bundle scripts are
correct (mostly using /usr/bin/env ruby).
I've also tried adding a ~/.MacOSX/environment.plist file with my PATH
information, but that doesn't seem to have any effect either (did make sure
to log out.
I also deleted the Textmate.app package and downloaded the latest version;
no joy.
Any other ideas on how to get this working again? It just stopped sometime
yesterday morning and it's driving me nuts!
-chris
--
Chris Yates
The Island Packet/The Beaufort Gazette
Minor question/request,
When working with templates or new files to have Textmate
automatically adjust the default file name used when hitting SAVE to
something other than "untitled"?
For example, if I create a BASH template, and one of my fields is the
file/program name, I wanted to be able to either:
1) hit "apple-s" and have Textmate pull a possible default filename
from the area/field I had defined.
or
2) select text; hit "apple-s"; and have the text selection become
the default filename
#####################################################################
# Program: ${1:filename.sh} <---THIS IS WHAT IM TRYING TO AUTO-
CAPTURE TO THE SAVE DIALOG
#####################################################################
# Version: ${2:0.1}
# Date: ${3:`date`}
# Author: ${4:John Doe (jdoe(a)email.com)
#
# Notes:
# $5
#
#
#####################################################################
... <insert lots of code here> ...
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
I had TextMate set up to download "Cutting edge" and it just
downloaded a new upgrade the other day. Before the download, I had
everything working just fine with TeXniscope, but after I installed
the upgrade, whenever I compile a LaTeX file in TextMate, it doesn't
open TeXniscope. TeXniscope does update the PDF file (or open it if
it's not already open) but it doesn't bring that file into focus like
it did before. Even if I type Cmd-Opt-Ctrl-O nothing happens. In
the typesetting dialog that comes up, there's a button that says
"Preferences" and I have the "Show pdf automatically" option enabled,
but it still doesn't bring TeXniscope into focus. Any ideas?
Keith
hello:)
I would like in this snippet
${TM_SELECTED_TEXT/(\s*).*/$1/m}\begin{${1:environment}}
${TM_SELECTED_TEXT/(.+)|\n\z/(?1:\t$0)/g}
${TM_SELECTED_TEXT/(\s*).*/$1/m}\end{${1:environment}}
remove the \t and instead use white space,
How to do that?
Regards Alain
Sorry if this is well-trod ground, but I couldn't find anything in
the archives...
I'd like to see TextMate automatically detect the presence of a
project file inside a folder which is being opened and use the
project file instead of making a fresh, unsaved project from the folder.
This is especially problematic when opening items from the command
line. If I cd into a parent directory and see a directory which I'd
like to open in TM, I must type "mate <dirname>" if there is no
project file available, but if there is a project file, I must type
"open <dirname>/<projname>". That is, I must use a different command
depending on whether a project file is present or not.
Furthermore, I must either remember whether I have created a project
for a given directory, or take the time to manually check for one via
ls. I'd much rather be able to take the same action every time and
let TextMate do the right thing.
Of course, the matter gets complicated if there is more than one
project file in a particular folder. Perhaps in that case TM can
prefer the one named to match the enclosing folder, ask the user, or
just fall back to existing behavior.
Does anybody have other thoughts on this?
Thanks!
--mkb
Ahoy Allan.
I know you get bugged about this plenty, but…
Now that Leopard is going to be out on Friday, when do you think
you'll be releasing the first pre-alpha build of TextMate 2?
I think you've talked about tm2 stuff before, but I'm not sure if
there has ever been anything concrete mentioned about timing.
I made a quick wiki page where we can collect all TM2 info.
http://macromates.com/wiki/Main/TextMate2
—Thomas Aylott – subtleGradient—
Hi,
I just saw that there is a tiny bug in the JavaScript function goTo
(id) in markdown_to_help.rb.
If you click at an item in the TOC it jumps to that anker but with a
wrong offset, meaning the beginning of the anker is hidden caused by
the TextMate header image.
To solve that problem easily I would suggest to do the following if
one predicts that the first image in the html source code is
"header.png":
markdown_to_help.rb:
old:
68: function goTo (id) {
69: document.body.scrollTop = document.getElementById(id).offsetTop
+ 8;
70: }
new:
old:
68: function goTo (id) {
69: document.body.scrollTop = document.getElementById(id).offsetTop
- document.images[0].height - 1;
70: }
Cheers,
--Hans
I've been using TextMate for Rails development for several months now,
and am a big fan.
I have recently noticed one annoying bug, which is effecting my
TextMate, and my collegue's who is working on the same projects.
When I use the RoR bundle functions for Database migrations to, for
example, rename/rename column Textmate inserts this strange string into
the document.
]0; ]0; ]0; ]0; ]0; ]0; ]0;
]0; ]0; ]0; ]0; ]0; ]0; ]0;
rename_column :table_name, :column_name, :new_column_name
I've noticed this string popping up in other places (like at the top of
a printout), but the migration issue is the most annoying. Also this
problem is recent. I have done the same operations without encountering
the bug in the past.
Has anyone else encountered this problem? I can't find any reference to
it online.
Thanks
Sam
hello :)
I'm waiting for the Leopard DVD ( 2 days ) and I would like to know if
Leopard changes some characteristics of TM 1.5.6 like speed
in some actions
Regards Alain
Hi,
I just uploaded the new version 0.903
Download:
http://email.eva.mpg.de/~bibiko/downloads/textmate/TMTools.tmplugin.zip
Help:
http://email.eva.mpg.de/~bibiko/downloads/textmate/tmtoolshelp.html
"$TMTOOLS" help me
Changes:
added: get contentOfWindow
added: get/set smartTyping
added: get allBundles
added: get uuidFor
added: get defaultBundle
added: get allBundleItems
added: do checkUUID
added: get bundlePathsForUUID
Regarding to the issue of generating dynamic commands (esp. snippets)
I attached an example bundle "SCRATCH SNIPPETS" which contains one
command: "Create New Scratch Snippet".
This command takes a selection which contains the snippet (last
line := tab trigger = name of the new snippet) and installs a new
snippet into the "SCRATCH SNIPPETS" bundle (scope is set to the
current one automatically, but this can be changed easily). After
doing that the new snippet is ready for usage.
Of course, one can also create commands, macros, etc. dynamically ;)
[This bundle requires TMTOOLS release 0903!]
A demo movie is here: http://www.bibiko.de/TMscratchSnippet.mov (1.2MB)
Have fun,
Hans