Joachim et al,
There is one minor (but annoying) detail about the combination of
Objective-C completion and Bracket Matching. I have come to rely on
Bracket Matching quite heavily, but that frequently leads to
situations like this:
NSFileManager *fileManager=[NSFileManager defaultManager];
if(fileManager fileEx|
At this point completion (Alt-Esc) will not do anything because there
is no opening bracket before 'fileManager'. So the only way is to type
the closing bracket (which inserts the opening bracket), back-arrow,
and then Alt-Esc, and later having to skip over the closing bracket.
Not really a big deal, and I suspect it would be difficult to
implement, but in a perfect world I would hope code completion at the
above situation would insert the brackets along with a snippet that
lets me tab to any arguments and eventually past the closing bracket.
Gerd
Hello everybody,
as nobody answered my question regarding "Configuring syntax
highlighting programmatically", I suppose there is no easy/standard
way to programmatically configure syntax highlighting. Therefore, I
will try to modify the syntax highlighting file and the current theme
file programmatically and then tell TextMate to reload them. While
searching how to do this, I found OSX::PropertyList.load to read
property lists and after asking google I also found that there is a
function OSX::PropertyList.dump. However, finding this information was
more or less fortune.
Is there a central place where I can search for TextMate documentation
for bundle developers? How was I supposed to find out about
OSX::PropertyList.dump?
Best regards
Daniel Sadilek
I was thinking of making a screencast that shows off a bundle i wrote.
When I tried to test out some sample content and posted it to YouTube
and Google Video it looked like absolute crap.
I seem to recall that allan posted a guide on how he made the 'casts
somewhere in the wiki, but i can't find it.
If anyone has tips and tricks using snapz-x pro or a HOWTO please let
me know.
Thanks,
STeven
Hi -
Maybe a feature req or maybe there's
already a solution that I'm not aware of...
I was wondering, if there's a way either by
prefs or by some manual mod somewhere to
make 'delete reference' the default as opposed
to 'move to trash' in a project file that might
contain a large number of directory + file refs.
I've accidentally deleted quite a few files
this way, and would like to minimize
my cursing if possible. :)
-Shin
Hi,
During the last two days I've fought against my mind.
I tried to get rid of escaping a backslash in bash. I have a bash
scripts which reads the selection/line, does something, and finally it
returns the result as InsertAsSnippet back to TM. Fine. Among others
one has to escape '\'. OK. I did this in Leopard
T="123\\123"
echo "${T//\\/\\\\}"
Fine. BUT THIS ONLY WORKS UNDER LEOPARD!
Under Tiger I have to write this:
T="123\\123"
echo "${T//\\\\/\\\\}"
It took me two days to figure out that this is caused by using two
different versions of Bash.
Is this a known issue? If so, is there link to an article mentioning
more of them?
[I couldn't find an entry mentioning that macromates.com. Maybe worth
to have one.]
To be compatible with Leopard and Tiger I have to write e.g.:
T="123\\123"
echo "$T" | sed 's/\\/\\\\/'
Regards
--Hans
Hi folks:
I realize this a difficult question, but on 3 10.5.2 computers, I have
installed the "Edit in TextMate" bundle in /Library/InputManagers
On two machines it works fine, and one it appears to no longer work.
I am scratching my head to figure out why.
In each case I have copied, rather than symbolically linked, the
directory "Edit in Textmate". In the case of the one not working, I
have tried both linking and copying, but to no avail. The permissions
on each are the same and look like this:
ls -l /Library/InputManagers/Edit\ in\ TextMate
total 8
drwxr-xr-x 3 root admin 102B Nov 18 09:59 Edit in TextMate.bundle/
-rw-r--r-- 1 root admin 462B Nov 18 09:59 Info
ls -dl /Library/InputManagers/Edit\ in\ TextMate
drwxr-xr-x 4 root admin 136B Nov 18 09:59 /Library/InputManagers/
Edit in TextMate/
Is there anything obvious I could have skipped, or should try? I've
been using svn to sync my plist file in ~/Library/Preferences , so
these should be identical.
Thanks.
Bill
William G. Scott
Contact info:
http://chemistry.ucsc.edu/~wgscott/
Hello,
I recently built my first TextMate bundle (http://sadilek.blogspot.com/2008/04/dna-sequence-analysis-with-textmate.html
) for some simple DNA sequence analysis.
It was really easy to accomplish this with TextMate.
However, I'm missing one feature: is there any way to programmatically
configure syntax highlighting?
What I want to achieve is that a user can configure pairs of string
and color. All occurences of the string should be highlighted in the
given color.
I have already built a corresponding dialog (very similar to the
preference dialog of the TODO bundle) in which I can enter strings and
select a color for each. The "only" thing missing is using this
information for highlighting the text.
Best regards
Daniel Sadilek
P.S. This sort of function would be interesting for the TODO bundle,
as well: for highlighting the TODO markers in the text.
Hi,
I have the following HTML code [ | indicates the caret]:
<li>1. Einlesen des Textes</li>
<dd>
<b>Das Einl|</b>
</dd>
If I press ESC to complete "Einl" to "Einlesen" TM beeps. I believe TM
has a problem internally with the following "<foo>". If I have a space
or a bracket after the "l" like "<b>Das Einl| </b>" the completion
works fine.
Even if I have "Einl|foo" OR "Einl|<>" OR "Einl|</>" and I press ESC
TM tries to complete "Einl" correctly.
TM has ONLY a problem if between < and > occurs one or more characters
AND if the grammar is set to HTML (in Plain Text it works!).
Is this a bug? Is that behaviour configurable/changeable?
TM 1.5.7 (1464) on Mac OSX 10.5.2 (ppc)
Thanks,
--Hans
Hi all,
No I'm not asking for a PHP debugger in textmate, but I am curious what you
guys do to get around this. Currently I'm the only textmate user at the
company I work for, everyone else uses ZDE. While I wouldn't want to give
up all the things textmate offers, I am a bit jealous of the debugger they
have in their IDE as in some cases it really makes it easy to resolve
issues. So is there any options for us textemate users? Is there other
ways to use the debugger outside of ZDE that makes it possible to have a
debugger on the side?
Any advice would be appreciated.
Thanks,
Clark
hi there,
while fixing indentation of a php-file using 'indent selection' i
found that textmate is wrong in the following case:
if( condition ){
code;
}elseif( condition ){
code;
}
is indented like this:
if( condition ){
code;
}elseif( condition ){
code;
}
how to reproduce?
- enter the code above in an empty php-document
- select all
- indent selection
workaround:
put elseif on a new line
cheers
Till Backhaus
Hi,
Working in a TM project, I often have this problem:
I want to compare code with another file in the project. I want to
see them both at once; possibly to edit one or the other or both.
Then I find I can only look at one of the files at a time - the
second file always opens in place of the first one, inside the
project. I have to trust my memory about what the first file said.
Bad idea, usually. :-)
My current workaround is to create a new document, and copy code from
the second file into it, so it can float beside the project. But this
is a poor replacement for two active windows; takes several steps,
and only one of the files can be edited actively.
I could also close the project, and open both files. Again, a poor workaround.
Is there any other way?
If not, is there anyone else who'd agree this would be a nice feature for 2.0?
Especially this happens with CSS cascade files, where I need to
choose how the same parameters are controlled at different levels.
Steven Rowat
Hi all,
I got a Mac Book Pro and this is my first time using Mac. I have
been using the evaluated version of TextMate and found couple problems:
1) The top folder in the drawer occasionally closes when I switch to a
space and back. It doesn't remember which folders that I have
previously opened.
2) I have read the key binding help pages for page up/down keys.
However, I seriously cannot find the page up/down keys on my Mac book
pro keyboard. What is the alternative?
3) Will the split screen editing include in the next release? I find
it difficult without such feature.
Many thanks in advance.
Joe
Hi all,
I'm working on implementing an "Ammend Commit" feature to the git
textmate bundle. Anyone around here know if it's possible to pre-
populate the message? I'm trying to do is make it populated with the
text from the previous commit.
Thanks!
Tim
On Mon, Apr 14, 2008 at 8:31 PM, Derek Belrose <derekb(a)realgeeky.com> wrote:
>
> On Apr 14, 2008, at 2:19 PM, Niels Kobschaetzki wrote:
>
> >
> > Well, with no real meta-key quite hard ;)
> >
> > Niels *who wonders which the right meta-key in the cli outside of Xorg
> > is…right now he goes left control (on FreeBSD 7)*
> >
>
> Well, in linux 'alt' is my meta key and esc is as well...but neither of
> those work in textmate.
in FreeBSD alt isn't a meta-key (in a TTY) and I can't remap it to
meta because changing TTYs isn't possible anymore. I mapped control to
caps and meta to control (you still need esc for…well esc ;) ) -- and
then there's meta on the win-key but that's awkwardly placed above
backspace
Niels
Doing a ⌃H document lookup in a Ruby on Rails file won't lead me to
the desired documentation. Instead, the lookup disambiguation menu
loops infinitely.
This is, I assume, a problem with my Ruby installation, but it
particularly bites me in TextMate, and I hope someone here can point
me to a solution. I am running Ruby 1.8.6 (supplied with Leopard),
Rails 1.2.6 (supplied with Leopard), ri 1.0.1 - 20041108, and TextMate
1.5.7 (1455). I am not aware of having installed any additional Ruby
or Rails.
If I type "delete" in a Ruby on Rails document, and press ⌃H to look
it up in the documentation, I find among the many choices
"ActiveRecord::Base::delete". Selecting that does not produce the
documentation window, but shows a second context menu containing:
ActiveRecord::Base::delete 1
ActiveRecord::Base::delete_all 2
ActiveRecord::Base::delete 3
ActiveRecord::Base::delete_all 4
Selecting one of these simply reopens the menu, and I'm stymied. I
can't get my documentation.
"ri delete" on the command line produces a list in which every entry
is duplicated. Refining to ActiveRecord::Base::delete shows
ActiveRecord::Base::delete, ActiveRecord::Base::delete_all,
ActiveRecord::Base::delete, ActiveRecord::Base::delete_all
… and once again, I'm stymied. That's why I conclude it's a Ruby/
Rails installation problem. I'm not experienced enough to trace it.
Can anyone offer/point me to a fix?
— F
Hi,
Has anyone else found that it's far too easy to accidentally delete folded
code in textmate
(without noticing!)?
Several times I've found that the body of functions I thought I had safely
folded away
seemed to just disappear, because I must have accidentally hit backspace
onto the
"...".
Obviously this could lead to disaster -- does anyone know of a way to
disable deletion
of folded text? If I can't find a solution to this problem I may have to
stop using
textmate for coding (which would be a shame, because otherwise I like it).
thanks,
Ben
Hi,
Has anyone else found that it's far too easy to accidentally delete folded
code in textmate
(without noticing!)?
Several times I've found that the body of functions I thought I had safely
folded away
seemed to just disappear, because I must have accidentally hit backspace
onto the
"...".
Obviously this could lead to disaster -- does anyone know of a way to
disable deletion
of folded text? If I can't find a solution to this problem I may have to
stop using
textmate for coding (which would be a shame, because otherwise I like it).
thanks,
Ben
--
View this message in context: http://www.nabble.com/Accidental-deletion-of-folded-code-tp16662190p1666219…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
If I run a Command-R against RSpec file. I get an error as the
following:
/Library/Application Support/TextMate/Bundles/Ruby RSpec.tmbundle/
Support/lib/text_mate_formatter.rb:5: uninitialized constant
Spec::Runner::Formatter::HtmlFormatter (NameError) from /System/
Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rubygems/custom_require.rb:27:in `gem_original_require' from /System/
Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rubygems/custom_require.rb:27:in `require' from /Library/Application
Support/TextMate/Bundles/Ruby RSpec.tmbundle/Support/lib/spec_mate.rb:
14 from /tmp/temp_textmate.bxz8HJ:3:in `require' from /tmp/
temp_textmate.bxz8HJ:3
Here is the file.
# text_mate_formatter.rb
module Spec
module Runner
module Formatter
# Formats backtraces so they're clickable by TextMate
class TextMateFormatter < HtmlFormatter
def backtrace_line(line)
line.gsub(/([^:]*\.rb):(\d*)/) do
"<a href=\"txmt://open?url=file://
#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> "
end
end
end
end
end
end
Running tests from Terminal works. I think I'm supposed see a colorful
result in the window, right?
Any help would be appricated.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
I'm searching for a way to run a validate Web pages created in TextMate.
The site has headers and footers via php includes for each page.
If this possible?
Thank you very much,
Bob DeLaurentis
Hi there.
I seem to be running into issues with textmate's code folding.
Say I have a file open and folded to-the-max and edit the file in a
different application, the folding points get all screwed up? The data
seems to be persistent too, I have to tinker around in the file for a
minute or so till TM actually rebuilds the index.
Is there any sneaky way of forcing TM to rebuild the folding index or
something?
Cheers!
________________________/Az.________
is there a way to expand all the subfolders from a folder in the drawer?or
at least is planed to retain the state of opened folders when you close a
project and open again, in the next version?
--
Cristi
www.ralcr.com
Hi,
I try to use the wonderful tm_interactive_input (thanks a lot!!), but
I have a tiny problem.
I copied the latest version of tm_interactive_input.dylib into
$TM_SUPPORT_PATH/lib/.
If I create a tmcommand like this:
TM_INTERACTIVE_INPUT_DYLIB="$TM_SUPPORT_PATH/lib/
tm_interactive_input.dylib"
if [ ! -f "$TM_INTERACTIVE_INPUT_DYLIB" ]
then
echo "$TM_INTERACTIVE_INPUT_DYLIB doesn't exist, build it first"
exit 1
fi
export DYLD_INSERT_LIBRARIES="$TM_INTERACTIVE_INPUT_DYLIB$
{DYLD_INSERT_LIBRARIES:+:$DYLD_INSERT_LIBRARIES}"
export DYLD_FORCE_FLAT_NAMESPACE=1
TM_INTERACTIVE_INPUT=AUTO ruby -e "
puts 'decoy line'
print 'Enter Something: '
STDOUT.flush
puts gets
"
I see the dialog and the prompt but I cannot enter something and I
cannot close the dialog (only APPLE+. works).
What I'm doing wrong?
MacOSX 10.5.2 on ppc; TM 1.5.7 (1464);
compiled tm_interactive_input.dylib version svn 9338
BTW: How can I change the button's titles?
Thanks a lot in advance,
--Hans
Is there a way to fold (hide) C/C++ #ifdef's that are not defined in a
project? In emacs there is a minor mode "folding" that has a
hide-ifdefs/show-ifdefs command to auto fold sections of code embedded
between the #ifdef and #endif.
It seems like TextMate should be able to do something very similar. If
anyone knows of this, please let me know.
Thanks,
-- dv
--
View this message in context: http://www.nabble.com/Fold--ifdef%27s-tp16569251p16569251.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi!
I have a repo to which I connect via https. The problem is that it
uses a self-signed certificate and I to tell svn each time to trust
the certificate (even so that I tell it to accept it permanently).
When I want to use now the svn-bundle nothing works because there is
no window where I can do any input of any kind for accepting the
certificate.
Any ideas what I can do about that? (It seems though the reason lies
in my svn-installation because the certificate doesn't get cached;
would be better if anyone would have an idea how to fix that).
Niels
If you have ever wondered about using keyboard shortcuts in an HTML
Output window see my post http://concise-software.blogspot.com/2008/04/textmate.html
which includes steps to create a Command in the Bundle Editor which
brings up an HTML Output window for testing Keyboard Shortcuts.
If you use Safari, there is also the Safari Tidy plugin that will validate
on the fly:
http://www.zappatic.net/safaritidy/
On Wed, Apr 9, 2008 at 1:58 PM, Tobias Jung <newsgr(a)tobiasjung.net> wrote:
> At 10:32 Uhr -0700 09.04.2008, Steven Rowat wrote:
>
> > Bob wrote:
> >
> > I'm searching for a way to run a validate Web pages created in
> > > TextMate.
> > >
> > > The site has headers and footers via php includes for each page.
> > >
> >
> > I'm in the same situation, and my low-tech solution (perhaps there
> > are more elegant ones) is to run the page in a browser, hit 'show
> > source' for the browser, copy the code, paste into a new untitled
> > document in TextMate, and then use the TM bundled validation. It's
> > a few steps but they're quick with key commands.
> >
>
> Well, if you're using the browser anyway, you could use Firefox plus the
> WebDeveloper Toolbar (which can send the current doc to the W3C validator
> even if it's loaded from your local hard disk) or iCab which has a built-in
> validator (though it's not always as accurate as the one from the W3C).
>
> Of course, a solution which can be directly called from TextMate would be
> nice, but I don't know any...
>
> Kind regards,
> Tobias Jung
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
I just put TmCodeBrowser 1.10 out. It uses an updated ctags (amongst
others better php support) and now remembers the sort setting on a per-
language base. Get it here:
http://www.cocoabits.com/TmCodeBrowser/
Gerd
I am often without internet, then I saved all the programming's
doc I need on my local drive.
I'd like to use that documentation instead of looking
for on the internet every time
I ask textmate some docs.
But in every bundle I didn't find it so easy (not just a global variable).
And another thing, I frequently update via svn my bundles,
but what happen if I modify one of them
(maybe changing one variable)??
Reading on the terminal looks like they're skipped because
modified by me, is that right?
So how should I modify third party bundles?
Thanks a lot
I am new to TextMate and I was wondering if there was a way to add a
Command+Shift+Option shortcut for PHP just like there are for other
languages.
-- Bryce R
I have posted instructions and a screenshot on my blog describing how
to make an Erlang Build Dialog:
http://concise-software.blogspot.com/2008/04/textmate-erlang-build-dialog.h…
This enables a build-on-save operation for Erlang projects. When you
save it automatically brings up a list of errors and warnings with
icons and links if there are any. If there are no errors or warnings
no dialog is shown.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Since upgrading to Leopard, I've had one very annoying problem. I
cannot get textmate to open a file when it has no extension and has
not been explicitly set to be opened by textmate yet. I've read the
blog on Leopard issues, and while this is similar to the quickview
issue, I think this is a new perspective.
In particular, I work with a lot of svn or svk checkouts, set up as a
project in the drawer. One of the filenames of a most important part
of the project is amavisd-maia. no extension, as is common for a lot
of unix programs. It's actually a perl file, but textmate (OSX
probably, but textmate follows the suggestion) insists on calling it
an executable and running it. Worse, it does so silently with no user
feedback at all... it took me forever to find out that it was
executing it without a terminal.
The only way to make it work is to open the info view in finder, and
change the program to open it with, but it only works on the one
file. If I wipe the project and check out a new copy, it does the
wrong thing again. As near as I can tell, there is no way to tell OSX
how to treat no-extension files.
I understand you want textmate to do the right thing when opening an
image or something, but why can't there be a setting to force
something to open in the editor? An option in the right click menu,
"open in editor"? A modifier when clicking?
David Morton
Maia Mailguard http://www.maiamailguard.com
mortonda(a)dgrmm.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFH8uT+Uy30ODPkzl0RAvvMAJsEX9nWvAHEoIEUQBp9UDANGWlLtgCfcE2d
6EQOhkTF3AZlTGeFUWNJ3Gk=
=BJsD
-----END PGP SIGNATURE-----
Translating is very annoying, so I think that maybe textmate could help
me to make it easier.
Is there any bundle for that?
I think a good way could be:
1. divide the screen in two parts, in the uppper put the text you want
to translate, in the lower the translation
2. then during writing the upper text should "follow" the translation
(this is optional and don't know how it could follow).
The problem is that I don't see a frame support...
Thanks
Hi
Sorry for my bad english, I hope that you understand the question ... :)
I would like to know if it is possible to show "html syntax error"
with colors.
Example : <p> bla bla bla bla bla <p> bla bla bla </p>
I would like the part <p> bla bla bla bla bla <p> bla bla bla </p>
in a different color
Perhaps it's possible to select with highlight color the text between
<p> and the
corresponding end tag </p>
idem for all the tags div /div etc ...
Best Regards
Alain Matthes
I am unable to use some of the LaTex bundle. The cmd-{, cmd-}, and cmd-
\ combinations for some of the "...based on current word" functions. I
get errors like the following:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/config_helper.rb:13:in /bin/bash: -c: line
3: unexpected EOF while looking for matching `''
/bin/bash: -c: line 5: syntax error: unexpected end of fileload_file'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/config_helper.rb:12:in /bin/bash: -c: line
0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileload_file'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/lib/config_helper.rb:19:in /bin/bash: -c: line
0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileload'
from /tmp/temp_textmate.wYTKvF:3
Any ideas?
Hi,
I tried vain various tricks to be able to show my files TeX in
QuickLook but for the moment unsuccessfully.
Have you an infallible method?
Best Regards
Alain Matthes
Hi all,
I have just committed 2 changes to the support dir.
I have introduced tm_interactive_input.dylib which allows any process
using it to request input from the user in the normal way (e.g. gets
in Ruby or read in Bash) and have TM present a dialog to the user
allowing them to enter input. You can read a little bit more about
this dylib @ http://macromates.com/svn/Bundles/trunk/Tools/tm_interactive_input/usage.md
.
I have also changed scriptmate to use this new feature, so any
scriptmate implementation for a particular language automatically
inherits this new functionality.
If you maintain a bundle and have a command that could benefit from
this new feature, then checkout the usage doc link above or take a
gander at what scriptmate does to set this up. I am on the IRC channel
fairly frequently so you can usually catch me there if you are having
problems using it.
Cheers,
LD.
I'm working on my thesis and it says
There was a problem reading the preferences file,
continuing with defaults.
I didn't touch the prefs, or at least I touched long
time ago, what could be the problem?
Anyway to fix it?
(I tried to set it up again in latex-preferences but
doesn't work..)
Having problems with code-completion.
Basically, whenever I hit alt-escape for triggering a completion I get this:
sh: : command not found
/tmp/temp_textmate.I8XxsT:164:in /bin/bash: -c: line 0: unexpected EOF
while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileshow_dialog'
from /tmp/temp_textmate.I8XxsT:118:in /bin/bash: -c: line 0:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileprint'
from /tmp/temp_textmate.I8XxsT:488
I am not sure, but I feel like I have seen errors like these pop up in
other bundles as well.
Any clues?
Thank you.
I just joined this list and seem to be having trouble posting, but
I'll give it another try.
I was wondering what the prevailing wisdom is regarding pattern naming
conventions for assembly languages. I'm working on a bundle for an
obscure chip (the long-discontinued Motorola DSP96002 which we still
use in a variety instruments on account of it being one of the few
DSPs which supports extended precision floats). So far, I've got
patterns like "assembly.opcode", "assembly.directive", and
"assembly.directive.macro", but I'm not sure this is the way to go.
Should these all be under "keyword", for example?
-Ted
Hi,
I can remeber that with the new OS X Leopard a new version of TM was
planned. Is that still in development and is there a date when it will
be released?
Thanks
Christian
Having problems with code-completion in Objective-C.
Basically, whenever I hit alt-escape for triggering a completion I get this:
sh: : command not found
/tmp/temp_textmate.I8XxsT:164:in /bin/bash: -c: line 0: unexpected EOF
while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileshow_dialog'
from /tmp/temp_textmate.I8XxsT:118:in /bin/bash: -c: line 0:
unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of fileprint'
from /tmp/temp_textmate.I8XxsT:488
I am not sure, but I feel like I have seen errors like these pop up in
other bundles as well.
Any clues?
Thank you.
Howdy,
I was wondering if anybody else was having issues with they keyboard
shortcut for going to/from the main window to/from the project drawer?
Whenever I hit Ctrl+Tab together, it spits out a cryptic tmp file
message, like:
/tmp/temp_textmate.T5GF9m:4:in
Any ideas? I recall it worked at one point.
Cheers,
Matt
Has anyone done any work to update the objective C bundle to work for
iphone software development, namely the correct syntax highlighting of
NS* and UI* classes the SDK has introduced or looking up in the
documentation?
Thanks,
Dave.
I am new to this list and apologize if this topic has already been
covered.
I am trying to design a bundle for an obscure DSP assembly language,
and I have reached the point where I have got this sprawling regular
expression that can identify every instruction recognized by the
processor. It actually works quite well, and it's wonderful to see
the syntax coloring kick in.
So my question is about how best to identify assembly language
components in terms of themes. Are there any precedents in this
regard? For the time being, I am using two main categories:
assembly.opcode
assembly.directive
I have also broken these down into the likes of
assembly.directive.macro and assembly.opcode.modifier. The latter may
be a peculiarity of the language I am using, which has constructs like
this:
tst d0
add d1,d2 ifeq
This tells the processor to add data register d1 to d2, but only if
the value of d0 tested zero. The "ifeq", then, is what I am referring
to as an opcode modifier, for want of a better term.
Anyway, I'm not sure if I am going about this right, or if it all
needs to go under keyword or something. Any suggestions?
-Ted
Hi everyone,
I've recently started coding in Objective-C and noticed that none of
the comments in my ".m" source files are syntax colored. CNTL-SHIFT-P
shows the comments' scope as:
source.objc
meta.implementation.objc
meta.scope.implementation.objc
Essentially, the same scope as the rest of the code. For comments, I
would have expected to also see something like:
comment-line-double-slash.objc
And also:
comment-block.objc
Any ideas how I can remedy this? BTW, I'm using TextMate v1.5.7
(build 1455). Have I somehow unwittingly screwed up my Objective-C TM
bundle?
Thanks,
--Cliff
This is a little experiment I've been working on for a while to
increase TextMate's interoperability with XCode and give it the
features of a robust IDE, like XCode, without sacrificing the elegance.
In short, the result is code complete, visual code-hierarchy, etc. for
languages like ruby, python, objective-c, javascript, etc.
It's in an alpha stage, but is quite usable and been shown to enhance
productivity. If you'd like to grab a pre-release build before it
gets rolled into the TextMate subversion repository, you can grab it
here:
http://code.google.com/p/textmate-xcode-completion/
Use the XCodeMate mailing list for feedback / support, as listed on
the website.
Thanks,
Tim
Hi,
I found a "simple" way to display any dialogs based on nibs as sheets.
The only preconditions are that the nib is NSPanel-based and all
buttons are bound to performClickButton.
This also works with "created windows" which will be updated. See tiny
screencast:
http://www.bibiko.de/TM_SHEET_PROGRESS.mov (1M)
Code:
TOKEN=$("$DIALOG" window create ~/Desktop/progress -ep
'{min=0;max=100;value=0;textcolor="#00FF00";}')
C=0
TXT=""
while [ $C -lt 100 ]
do
M="$C% ready on window token $TOKEN"
TXT=$(echo -en "$M\n$TXT")
echo "{value='$C';message='$M';text='$TXT';}" | "$DIALOG" window
update $TOKEN
C=$(($C + 2))
done
"$DIALOG" window close $TOKEN
Any comments?
--Hans
I would find it incredibly useful if I could do a Find/Replace such
that I could reliably rename symbols like variables and function
names. I envision that this would be based on scopes and that it would
constrain Find/Replace to exact matches of entire scopes. In Erlang
this would enable me to rename variables by doing a Find/Replace of
exact scope match for variable.other.erlang.
Hi,
I'm just writing the extension for DIALOG2 to show up a user-defined
open/save panel optionally with an accessory view.
I can call it like:
"$DIALOG" panel open -p '{message="Input"; button1 = Load;
allowMultipleSelection = 1; startDir = "/usr/bin/"; string=ANNA;
switch=1;}' ~/Desktop/acc.nib
whereby 'string' and 'switch' are set in the accessory view
(TextIInputField and a Checkbox) specified in acc.nib. It works fine.
Now I tried to show these panels as sheets bound to the current
window. This also works fine ;)
BUT: I do not know how to write the 'resultDict' plist back to TM if
I'm using sheets :{
(NSLog() shows the correct plist)
If I show up the panels as windows I'm using:
[TMDCommand writePropertyList:resultDict toFileHandle:[proxy
outputHandle]];
called within '(void)handleCommand:(CLIProxy*)proxy'
Fine. But if I'm using sheets then I have to call:
[openPanel beginSheetForDirectory: startDir
file: [parameters objectForKey:@"file"]
types: fileTypes
modalForWindow: documentWindow
modalDelegate: self
didEndSelector:
@selector(openPanelDidEnd:returnCode:contextInfo:)
contextInfo: nil];
within '(void)handleCommand:(CLIProxy*)proxy' and this means I have to
leave the method '(void)handleCommand:(CLIProxy*)proxy'
My method to handle the sheet after closing is
- (void)openPanelDidEnd:(NSOpenPanel*)openPanel returnCode:
(int)returnCode contextInfo:(void*)contextInfo
and I didn't find a way to get access to TMDCommand's [proxy
outputHandle]. I tried to copy the handle, to set proxy as class
variable, etc. I directly wrote to stdout but it's redirected.
Is there anyone who can give me an hint? (If it would be better to
post the preliminary code for panel.mm, please let it me know)
Thanks
--Hans
Hello,
After about two years of beauty sleep, TabMate is back with an updated
version!
TabMate is a plugin that makes it possible to have per-file indenting
settings, so you don't have to manually change these when you switch
between files with different code styles.
New in 1.2:
* Make TabMate work better with scripts that have a shebang line, as
well as PHP scripts and other files that do not necessarily have the
modeline as the first line
* Other minor tweaks to make TabMate more compatible with different
modelines out there
* Added lots of unit tests to the Xcode project, to make it easier to
do changes to the plugin, without breaking anything
* Thanks to Andrian Budantsov and Torsten Walter for patches!
For anyone interested in helping out: TabMate now has a trac with
subversion access at http://trac.konstochvanligasaker.se/tabmate
Support for vi/vim modelines is one example of a much-requested
feature that is probably fun to hack together!
http://konstochvanligasaker.se/tabmate
Thanks a lot
-- Håkan
Hi,
I am on TM 1455 Cutting Edge and I have just updated the LaTeX Bundle.
The Citation (Ref-TeX style) Command is now failing. It launches the
cite menu but does not bring up the entries of my bib file (specified
with TM_LATEX_BIB). Any help would be appreciated.
Thanks in advance.
All the best, Mark
ok scope isnt quite the right word...
lets says i have
<img src="something" width="10" height="15>
and i have the caret somewhere around src
is there a way to move to either right before or after the closing >
or when you get auto "" and it drops the caret in the middle,
is there a way to jump to right outside the quote?
been googling and digging through the power editing book but i'm not
finding anything...
The following process will give you a command which you can run to
help debug commands:
1) Create a Command in the Bundle Editor called "Command Output"
2) Paste the following script into the Bundle Editor:
#!/usr/bin/env ruby
print '<pre>'
print while gets
print "\n"
print "------------\n"
print "END OF STDIN\n"
print "------------\n"
print `env | sort`
print '</pre>'
3) Set Input to Selected Text or Scope
4) Set Output to Show as HTML
5) Set the scope to whatever scope you want to use in your command
Try it out. It will dump the input followed by a divider followed by
the entire environment supplied to the command.
I used this to determine what TextMate was supplying to the Command I
was writing.
Hi,
as you know TM 2.0 will be Leopard only. Fine. But what about DIALOG2?
Should DIALOG2 also compiled as Leopard only?
With the new SDK 10.5 you have some "tiny" improvements to enhance
DIALOG2.
Regards,
--Hans
Hello,
I have tried to figure out why pdfsync was not working with my (large
and multiple file) thesis tex project. I figured out, that pdfsync
has to be included from the main tex file and NOT from a stylefile
(i.e a custum made thesis.sty that includes pdfsync...). This is not
a big deal, but maybe it could be fixed so that texMate.py would find
pdfsync there too...
Thanks
Chris
Hi,
the new DIALOG2 allows to display an inline menu with headers like:
Nouns
table 1
tree 2
vase 3
Verbs
count 4
drink 5
eat 6
Very nice! But it could occur the following case:
Nouns
drink 1
tree 2
vase 3
Verbs
count 4
drink 5
eat 6
If I now choose "drink" I get:
<dict>
<key>selectedIndex</key>
<integer>6</integer>
<key>selectedMenuItem</key>
<dict>
<key>title</key>
<string>drink</string>
</dict>
</dict>
But I do not know which "drink". Ok, I also got selectedIndex 6 and it
would be doable to figure it out. To simplify it I changed the code
slightly to output this:
<dict>
<key>selectedIndex</key>
<integer>6</integer>
<key>selectedMenuItem</key>
<dict>
<key>header</key>
<string>Verbs</string>
<key>title</key>
<string>drink</string>
</dict>
</dict>
if there is an header given. If no header is found you will get the
"old" dict.
##############
An other very tiny problem I encountered is the following:
I would like to have this menu:
Offset
20
10
0
-10
-20
The negative numbers are interpreted as a separator because the
strings begin with -. One could easily fix it by using
"kMenuItemAttrIgnoreMeta". I did this, but this could be discussed, of
course.
Here's the code:
Cheers,
--Hans
Hi everyone,
the Koma-script classes offer a ”\minisec" command for simple sub-
headlines which do not appear in the TOC.
At the moment, these minisecs appear in the Symbol List left-aligned,
which is not so nice.
A simple fix for that is adding the following line to the "Symbol
List" bundle item so that the minisecs appear idented:
s/^\\minisec\*?(?:\[[^]]*\])?\{(.+)\}/ $1/; #
\minisec
I'd like to propose to add this to the standard bundle but I would
like to leave this task to the Knowing Ones ...
Best regards,
Matthias
--
Matthias Damm - mad(a)macpla.net
GPG key: http://macpla.net/MatthiasDamm.asc
GPG fingerprint: CED3 6074 7F7D 3148 C6F3 DFF2 05FF 3A0B 0D12 4D41
Stoppt die Vorratsdatenspeicherung! - http://www.vorratsdatenspeicherung.de/
Hi there,
I have been to Ryan van Barneveld's Blog downloading ie-preview.app in
order to install it on my Leopard/Textmate/Parallels set up.
(http://www.ryanvb.com/ie-preview/)
I cant manage to do properbly as I dont know how 'activate' the
sharing folders for windows. I cant find such an option (Windows
Sharing) in the preference pane.
Quote from his website:
-----------------------------------
1) In the Sharing panel of System Preferences,
turn on Windows Sharing and note your Computer Name
2) Be sure to test your Windows Sharing by going into
Windows XP through Parallels, opening a file explorer
window and typing your computer name into the address
bar preceded by two backslashes.
eg. type \\MyMacBook, hit enter and you should see your Mac files
-----------------------------------
I also dont want to mess up sharing options - not knowing what to do
exactly but only trying - in order to keep my laptop 'privat' in
public places.
Could anybody help please?
------------------------------
Thanks in advance!
Dennis
hi, I'm a bit confuse with the shell command to allow preview HTML
page with browser instead of Web Preview. I'm not familiar enough with
Terminal to "experiment".
when I paste:
sh ~/Documents/Scripts/browser.sh
... I go nowhere.
I would greatly appreciate someone's help on that, including the
command line to get a choice between Safari or Firefox.
--
cheers
Is there a way to get TextMate to auto pick the file language based on the
file path?
As an example, I have both matlab scripts and objective-c files each with
".m" extensions. When the path is .../matlab/... I would like them to use
the Matlab language bundle otherwise use the Objective-C language bundle.
When I used to use emacs, I had a load hook that was able to parse the file
path and use the correct mode.
Incidentally, I've added "firstLineMatch = '^[#%]+\s*.*[Mm]atlab.*';" to the
Matlab language which works if I start the file with a '% Matlab' comment -
this works for files I write, but not ones others write. Maybe there is a
way to have a "filePathMatch = '.*\/matlab\/.*'" (or equivalent) in the
language?
Thanks,
-- d
--
View this message in context: http://www.nabble.com/Language-based-on-path-tp16308189p16308189.html
Sent from the textmate users mailing list archive at Nabble.com.
What's this about the Dialog2 bundle... and what's this I hear about a
public AppleScript API for textmate (as mentioned in a commit to the
Dialog2 bundle)?
Can someone enlighten me and possibly post a link, or two? I'd like
to learn about Dialog2, specifically if it can help with the git bundle.
I'm really interested to know if any of the following are possible:
* Is it possible to open up a new html-output pane in textmate, bound
to a process, invoked by an already running bundle command?
* Is it possible, through the AppleScript-API, to list all of the tabs
that are open. (currently using the fantastic TMTOOLS plugin to do it,
but would be nice if this feature became part of core, as I'm not sure
if TMTOOLS has been the cause of some unstability i've been
experiencing)?
* What new dialogs are provided by Dialog2?
If someone's got a quick answer, I'd appreciate it :) Though, as I've
invested little time to writing this message, I'd not be terribly
disappointed if it was ignored.
Thank you beloved TextMate community,
Tim
A snippet with this content:
`/usr/bin/env ruby -v`
Tells me that it is using /opt/local/bin/ruby (1.8.6)
Yet a command with this content:
#!/usr/bin/evn ruby
puts RUBY_VERSION
Tells me that it is using /usr/bin/ruby (1.8.2)
And yet if I use the she-bang outside of textmate, the correct 1.8.6 version
is used:
$ echo '#!/usr/bin/env ruby' > ruby_test
$ echo 'puts RUBY_VERSION' >> ruby_test
$ chmod +x ruby_test
$ ./ruby_test
1.8.6
$
Any anyone tell me how to fix this? I wish to use 1.8.6 for everything. I've
read that environment.plist might be part of the solution but I can't find
such a file. If I need to create a new one, I don't know what to put in it.
Many thanks
--
View this message in context: http://www.nabble.com/Ruby-versions-differ-from-shell-and-she-bang-tp163104…
Sent from the textmate users mailing list archive at Nabble.com.
I am having trouble with the svn blame command in the SVN bundle. Everything
else works fine, but not that.
I get
NoMethodError
reason: undefined method `+' for nil:NilClass
trace:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/Support/format_blame.rb:49
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/Support/format_blame.rb:43:in
`each_line'
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Subversion.tmbundle/Support/format_blame.rb:43
I have searched and none of the solutions that have previously been
mentioned work, the files I've tried are definitely under version control
(because the info command works on them, and svn blame works from the
command line).
I have tried a fresh install of Textmate, with only Ciarán Walsh’s ReMate
and TMQuicklook plugins installed and it is still not working. I verified
this by running "locate TextMate" after running "sudo
/usr/libexec/locate.updatedb" and all I got was the output you would expect
(all the files in textmate.app, and the 3 plugins with their content in my
users application support folder)
--
View this message in context: http://www.nabble.com/SVN-Blame-not-working-tp16176714p16176714.html
Sent from the textmate users mailing list archive at Nabble.com.
Just ran into this problem today. In our project, we have several
files that our mirrored, so we use git to manage the symlinks. Today
we discovered that you can open a symlinked file, but when you try to
go and save it, the symlink is erased and replaced with a brand new
file, rather than updating the contents of the file that the symlink
points to.
Is this a known issue? Is there any suggested workaround for it?
(other than, make sure you don't edit a symlinked file?)
Thanks,
Tim
I've found a bug in the Ruby bundle for Textmate. Under certain
circumstances, using Control-Q to reformat comment code raises an exception
that spews error code into the source.
Is this the right forum to post bugs in Ruby bundles?
The problem occurs if you have a comment that contains a single word that
goes past column 79. For example, in the following code (also attached) the
x's in the comment extend out to column 80:
#
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
def func(x,y)
x+y
end
If you place the caret inside the comment and press control-Q you see the
following:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Source.tmbundle/Support/bin/rubywrap.rb:365:in
/bin/bash: +': invalid option
Usage: /bin/bash [GNU long option] [option] ...
/bin/bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o optionwrite'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Source.tmbundle/Support/bin/rubywrap.rb:408
def func(x,y)
x+y
end
This doesn't happen if the word in the comment stops before column 80.
This isn't an impossible scenario because it's easy to have a URL in your
documentation that's more than 80 characters long.
--
Bill McNeill
http://staff.washington.edu/billmcn/index.shtml
I am a recent TextMate convert. Part of what swayed me was the range
of bundles including LaTeX. I'm also pretty new to LaTeX.
I have been using TextMate to render LaTeX with various engines
including XeTeX. It has been working perfectly on everything until now.
Now when I Apple+R to render I get the regular panel for a moment,
along with engine output/info, then it goes black but the spinner
stays. It "runs" forever like this. The behavior happens on any
engine and document content/size. The documents render to PDF fine
from TeXShop. None of that setup has changed. I installed the bleed
version of TextMate two days ago to see if it might fix it. No
difference.
What *has* changed in my setup is I installed the CS3 Adobe web suite
(a new paid/registered version, not warez) which includes Acrobat
Professional. I am guessing this has hooked/broken some PDF meta-info
somewhere.
Any pointers where to look to fix this? Acrobat includes an
uninstaller but I'd rather not do that. Is it something that can be
updated in the LaTeX bundle? I think this is likely since other LaTeX
apps are still rendering to PDF, only TextMate's behavior changed.
Thanks for looking at this!
-Ashley
Repost because the original message was garbled...
I've found a bug in the Ruby bundle for Textmate. Under certain
circumstances, using Control-Q to reformat comment code raises an exception
that spews error code into the source.
Is this the right forum to post bugs in Ruby bundles?
The problem occurs if you have a comment that contains a single word that
goes past column 79. For example, in the following code the x's in the
comment extend out to column 80:
#
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
def func(x,y)
x+y
end
If you place the caret inside the comment and press control-Q you see the
following:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Source.tmbundle/Support/bin/rubywrap.rb:365:in
/bin/bash: +': invalid option
Usage: /bin/bash [GNU long option] [option] ...
/bin/bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--rcfile
--restricted
--verbose
--version
--wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o optionwrite'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Source.tmbundle/Support/bin/rubywrap.rb:408
def func(x,y)
x+y
end
This doesn't happen if the word in the comment stops before column 80.
This isn't an impossible scenario because it's easy to have a URL in your
documentation that's more than 80 characters long.
--
Bill McNeill
http://staff.washington.edu/billmcn/index.shtml
Lately, i've been experiencing various issues with the Rails Bundle:
- none of the generator tasks (controllers, models, migrations etc.)
work anymore. I just get an empty confirmation window and the tasks are
not run.
- when running any rake tasks, i get "stack level too deep" errors:.
For insatnce, here's the output from "Migrate to current" command:
RakeMate r6193
rake aborted! stack level too deep (See full trace by running task with
--trace) (in /Library/WebServer/railsapps/sparkle)
Done
Rake tasks and generator tasks work perfectly fine from the command line.
I'm using current Rails Bundle from trunk, but also tried the one that
came with the lastest TM release. I'm running on Leopard, Ruby 1.8.6;
projects are Rails 2.0.2, but it also seems to happen with Rails 1.2
projects.
Any ideas? Thanks.
Sebastian
Bummer, looks like Edit in TextMate… is not working properly from
Mail.app (or likely any WebView) since the Safari 3.1 install. The
content of the WebView is not transferred to TextMate. The MacVim folks
actually mailed me about it since they're using a modified version of
Edit in TextMate… with MacVim. Anyway, I won't be able to look into the
matter for a couple weeks in-case someone else wants to take a crack and
send Allan a patch.
j.
Hi all,
It seems the "Citation based on current selection" (Esc or Alt+Esc)
command doesn't show the entries of a .bib file that contain commas
in any field.
Example. LaTeX file with
\bibliographystyle{plain}
\bibliography{sample} % to get sample.bib
The entry (in sample.bib):
@book{knuth79,
author = "Donald E. Knuth",
title = "Tex and Metafont, New Directions in Typesetting",
year = "1979",
publisher = "American Mathematical Society and Digital Press",
address = "Stanford"
}
doesn't show up unless the comma in "title" is removed or replace by
another symbol such as _ (underscore).
TextMate 1.5.7 (1436)
Mac OS X 10.4.11 (PPC G4)
Cheers,
AgusN
Hi,
I've just migrated to Leopard, and I have the following problem.
If I drag'n'drop a pdf file from the Finder to a LaTex doc I get the
following error:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
1.8/pathname.rb:205:in /bin/bash: -c: line 0: syntax error near
unexpected token `('
/bin/bash: -c: line 0: `dup': can't dup NilClass (TypeError)'initialize'
from /tmp/temp_textmate.gqGtWt:7:in
OK. I went through previous mails regarding that issue, and I found
"update it". But what?
I'm using Textmate 1.5.7 (1455) on 10.5.2 (G5 ppc)
and
/usr/bin/ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]
Thanks for any hint in advance,
--Hans
Hi,
maybe this is a general issue.
I'm working a lot with bash/perl scripts. Sometimes I would like to
drag'n'drop a file from the Finder or from the Project Drawer to my
current document to only insert the relative/absolute file path plus
name. Up to now it is "only" possible to insert the content of that
file which is very useful. How about to use SHIFT drag'n'drop to
insert the relative file path and OPT drag'n'drop to insert the
absolute file path. Of course, the drag'n'drop commands specified in
bundles come first.
The only solution I found is to generate a drag'n'drop command, File
Types: *, Scope: empty, and handle the insertion stuff by myself.
--Hans
In the dialog after executing "Call Generate Script in Rails"
I think "OK" is more appropriate than "Ok" as the button label.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Thomas Aylott - subtleGradient wrote:
>
>
> I do recommend using Transmit with DockSend and the Transmit bundle
> for TextMate.
> Set it up properly and you can upload with a single action from
> inside textmate.
>
>
> —Thomas Aylott – subtleGradient—
>
>
Hi Thomas, thanks for the tip - I just found it on the forum archives. I'm
just getting started with TextMate and the Transmit bundle was just what I
needed. I have a small problem with DockSend though. I'm using Transmit
3.6.2.
Let's say my Transmit is already connected to my server, and my "Their
Stuff" is at the root level on the server. When I use DockSend to upload a
file that's in a directory within the root, say an img directory, it uploads
the file, but after it does so, I can't navigate to the img directory nor
any other directory within root. I always get this message:
http://www.nabble.com/file/p16265488/24cxhcn.png
where the blurred out part is the directory name I'm trying to open.
The only way to get out of it is to navigate to a higher-level directory
using the dropdown that's above the "My Stuff" directory box or to
disconnect. Once I can get to the location of the file, however, I see that
it's uploaded. If I'm DockSending to the root (the current directory my
"Their Stuff" is in), I can navigate to any other directory just fine.
It doesn't seem to be TextMate-specific (if I drag a file to the Transmit
icon on the dock I get the same error), but I can't find any Transmit forums
nor can I find the problem when I search for it. So I'm hoping maybe
someone on here has had this problem too. Maybe it's an outlier bug, but I
often have my Transmit window open and would rather not have to deal with
this every time I DockSend a file!
Thanks,
Annie
--
View this message in context: http://www.nabble.com/Remote-editing-of-projects-tp15053548p16265488.html
Sent from the textmate users mailing list archive at Nabble.com.
I recently recognized, that the control + escape shortcut to envoke
the gear menu doesn't work. Now I searched the archives, and found
that this question has come up before.
The only answer was, that it could be that the keyboard shortcut is
already assigned in the system-preferences.
Looked there, and it sure isn't.
I even created a new user and tried there, but even there it doesn't
work. Is this a known bug? Or am I just missing something?
running latest Leopard.
Thanks,
Thomas
Does textmate have an equivalent to emacs query replace that takes
term to search for, what to replace it with and then steps through
each match and asks if you want to replace or not
( moving view obviously to that area so you can view the code around
it )
?
hi, first post to this forum, after switching from BBEdit to TextMate.
while I'm discovering everyday the benefit of this change, I came
across a syntax problem with a Applescript I was using successfully
with BBEdit.
the principle of the script was to create folders and sub-folders,
then create a new document in one of them with my text editor, save it
with a title, bringing it to the front for entry.
changing the app to TextMate, I get an error:
[quote] AppleEvent Handler failed: expect end of line but get "to" [/
quote]
I have posted an entry on MacScripter, to hear that TextMate was
"poorly scriptable, even Standard Suite is badly implemented".
any solution to contradict that?!
below the script in question:
> set theFolder to choose folder with prompt "Create/Choose Client
> Project folder"
> try
> set briefFolder to ((theFolder as text) & "Brief") as alias
> on error
> tell application "Finder" to set briefFolder to make new folder at
> theFolder with properties {name:"Brief"}
> end try
> tell application "Finder"
> set capturesFolder to make new folder at theFolder with properties
> {name:"Captures"}
> end tell
> tell application "TextMate" -- was BBEdit
> set briefDoc to make new document at beginning with properties
> {name:"$.tasks"} -- was "$.todo"
> save briefDoc to ((briefFolder as text) & "$.tasks")
> end tell
> tell application "TextMate" to activate -- was BBEdit
--
cheers, Pascal
Hi,
We have a big problem in our society.
We updated to Leopard 2 weeks ago. Since, we have a LOT of kernel
panics when using TextMate (1.5.7 1455). Just for yesterday, I got 5.
It happened every time saving a file from TextMate on servers
connected via SMB (Windows or Linux servers). But not each time. All
our macs under Leopard are affected (10.5.2). We're trying to solve
this problem over the past week without success (desactivate IPv6,
uninstall BlueHarvest,…).
The problem does'nt happen with programs like Coda or CSSEdit, and not
on Tiger + TextMate.
Someone would have an idea?
Thank you
Tue Mar 18 13:36:08 2008
panic(cpu 0 caller 0x001A8C8A): Kernel trap at 0x0105624a, type
14=page fault, registers:
CR0: 0x8001003b, CR2: 0x00000010, CR3: 0x01504000, CR4: 0x00000660
EAX: 0x00000800, EBX: 0x00000800, ECX: 0x00000f80, EDX: 0x00000000
CR2: 0x00000010, EBP: 0x34d33558, ESI: 0x00000000, EDI: 0x34d33780
EFL: 0x00010206, EIP: 0x0105624a, CS: 0x00000008, DS: 0x34d30010
Error code: 0x00000000
Backtrace, Format - Frame : Return Address (4 potential args on stack)
0x34d332a8 : 0x12b0e1 (0x457024 0x34d332dc 0x13321a 0x0)
0x34d332f8 : 0x1a8c8a (0x460550 0x105624a 0xe 0x45fd00)
0x34d333d8 : 0x19eb67 (0x34d333f0 0x34d33458 0x34d33558 0x105624a)
0x34d333e8 : 0x105624a (0xe 0x48 0x34d30010 0x1a0010)
0x34d33558 : 0x1058036 (0x78c1dd0 0x1 0x34d335c8 0x19d73a)
0x34d33578 : 0x1f1707 (0x34d3359c 0x0 0x34d335a8 0x1da8c3)
0x34d335c8 : 0x1f41dd (0x78c1dd0 0x34d33780 0xbd76484 0x385118)
0x34d33628 : 0x1db413 (0x78c1dd0 0x34d33780 0xbd76484 0x0)
0x34d338c8 : 0x356d8c (0x45ad550 0x0 0x80000002 0xbd76484)
0x34d33908 : 0x1d794d (0x45e5204 0x45ad550 0x80000002 0xbd76484)
0x34d33958 : 0x1c4d1a (0x78c1dd0 0x0 0x80000002 0xbd76484)
0x34d33f78 : 0x3dbe77 (0x4d8ea00 0xbd76380 0xbd763c4 0x13d1ed)
0x34d33fc8 : 0x19f084 (0xbd22240 0x0 0x1a20b5 0xbd22240)
No mapping exists for frame pointer
Backtrace terminated-invalid frame pointer 0xb045a2e8
Kernel loadable modules in backtrace (with dependencies):
com.apple.filesystems.smbfs(1.4.2)@0x1040000->0x106ffff
BSD process name corresponding to current thread: TextMate
Mac OS version:
9C31
Kernel version:
Darwin Kernel Version 9.2.0: Tue Feb 5 16:13:22 PST 2008;
root:xnu-1228.3.13~1/RELEASE_I386
System model name: iMac6,1 (Mac-F4218FC8)
I've got both a personal MacBook, and a work MacBook pro, each with
licensed copies of TextMate.
A few weeks back on my personal machine, I followed the instructions
here to get Textmate to detect files ending in _spec.rb as rspec, and
just .rb as Ruby on Rails:
http://blog.macromates.com/2007/file-type-detection-rspec-rails/
I've just now tried to do the same thing on the work machine, and
while it detects rspec, Normal .rb files are coming up as Ruby rather
than Ruby on Rails.
The Ruby On Rails language has
fileTypes= { 'rxml', 'rb'}
as per the blog post (Yes I realize as I type this I need to make it
work with Rails 2.0 conventions).
When went looking in the Ruby language def to delete the file type
association to 'rb', there doesn't seem to be one.
Any ideas?
--
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
(forgive my noobishness, I had to re-join the list after a long period
of inattention, and cannot respond directly to the original message,
from Thomas Aylott)
> Those few of you who care, please let me know what I need to do
> before I can replace the core bundles with these guys.
I was really excited to see activity related to JavaScript in /Review,
and I immediately switched my checkouts to track the JavaScript and
Prototype bundles in Review. The irony of someone who follows the
commit log feed yet had to re-subscribe to the mailing list is
exquisite, I know.
I've been using them for the past few weeks with few (if any)
noticeable problems, using the Prototype bundle as my chosen grammar
for *.js. That is, until today, when I decided to go poking about the
latest Prototype trunk.
The file generated by `rake dist` has _never_ been small, I'll grant,
but I don't recall so much chugging and whinging by my 2.2Ghz MacBook,
or seconds-long gaps of white syntax colorless-ness when switching
tabs (a beachball will occasionally pop up for a few seconds, even).
My wild shot-in-the-dark hypothesis is that it might be related to the
increased number of `include $base` declarations in the "new" grammar.
To reiterate, this only occurs on files like the `rake dist`-generated
prototype.js, which itself is over 4,000 lines of syntactically dense,
idiomatic (and often beautiful) JS.
There seems to be a regression in the regex literal highlighting, as
it no longer works when the RegExp literal notation is used as a
member of an object with any space separating the key's colon
delimiter and the literal itself. The literals are colored fine when
it begins on the very first character of the line, or when immediately
following a parenthesis. Line 275+ of prototype/trunk/src/selector.js
is a perfect example of this regression.
I narrowed down the cause of this anomaly to the 'string.regexp.js'
key of the Embedded grammar, specifically the `begin` regexp:
(?<=[=(:]|^|return)\s*(/)(?![/*+{}?])
The lookbehind seems to be blocking it; when I remove it, the RegExp
literals in the object values highlight as intended. This does cause
any single `/` to color everything after it as a regexp, but adding an
alternate end-of-line anchor ($) to the negative lookahead seemed to
fix that. (?![/*+{}?]|$)
There is also an oddity with the folding markers, which appears to be
related to the block comment syntax. Line 135 of prototype/trunk/src/
ajax.js:
'Accept': 'text/javascript, text/html, application/xml, text/
xml, */*'
Again, inside an object literal, but this time the "*/*" seems to make
the folding parser think "I need to start a new fold here!", when in
fact it is the last member of the object, and should have no folding
marker whatsoever. Take away the second * (thus turning it into a
block comment closing delimiter), and the folding marker disappears. I
was unable to parse the gargantuan folding regexps in the grammar
clearly enough to suggest a solution.
> The Review Prototype bundle is NOT upgraded for the latest version
> of prototype.
I'd be willing to pitch in on this effort, if you (or whomever "owns"
the bundle) would like. I've done a bit of local hacking on various
bundles, and I can certainly provide examples off-list. The Prototype
grammar itself could use a little cleaning up, I'm sure.
Big thanks to all the bundle contributors for continuing to make
TextMate great! (Oh, and Allan, too :D)
~ Daniel Stockman
evocateur.org
I'm currently using the Blogging Bundle to post to a WordPress 2.4
blog. I'm not entirely sure if the problem I'm experiencing is on the
WP or the TM side of things (or someplace in between), but it
manifests itself within (and so far, only within) TM, so I thought I'd
start here. If these questions would be better directed elsewhere,
please let me know.
After posting via TextMate, the post gets sent back down to TextMate
with various meta-data filled in. Among this meta-data is the date
field. This date is being offset back by 4 hours, although the actual
post within WP has the correct time.
For instance:
* I create a post within TM at 11:04:41 -0400, and post it to my blog.
* The post, within wordpress, has a post date of 11:04:41 -0400
* The post that's returned to TM, however, now has a Date of 07:04:41
-0400
This rollback appears to be directly related to the time zone as
defined in WordPress. If I change my time zone to NDT (-0230), then
the time that appears on the post inside TextMate is rolled back by
2.5 hours:
* I create a post within TM at 11:04:41 -0400, and post it to my blog.
* The post, within wordpress, has a post date of 11:04:41 -0400
* The post that's returned to TM, however, now has a date of 08:34:41
-0400
The issue is that if I then update the entry and repost via TextMate,
I need to manually adjust the time on the entry, or it will now be
back-dated within WordPress as well. I frequently revise posts after
they've been published, and depending on the time of day, this
behaviour can even result in my permalinks being changed.
I also downloaded another blogging client (MarsEdit), and attempted to
re-create the problem there. Other Blogging Client displays the same
date/time as is stored in WordPress; reposting the entry does not
cause the date/time in Other Blogging Client to change.
Which leads me to suspect that the problem is somehow specific to
TextMate or the Blogging Bundle.
I'm running TextMate Version 1.5.7 (1455) if it matters. I'm not sure
which version of the Blogging Bundle I'm using, as it doesn't seem to
advertise that anywhere that I can see.
My thanks in advance for any pointers or suggestions anyone may be
able to offer.
Gwen
Hi,
I do not know whether this is interesting for other users as well,
but I find it's worth to have a small note on it.
Up to now TM doesn't have the chance to do something when it starts.
But there is an easy way to trigger a tmCommand or whatever.
A concrete example:
I want to open TM and it should start Rdaemon automatically.
Solution:
I wrote a tiny AppleScript with Script Editor:
tell application "TextMate"
activate
tell application "System Events" to keystroke "r" using {control
down,command down,option down}
end tell
and I save it as an application with the name "TM_Rdaemon" (if you
want, customize the icon ;). Now you put this app to any location or
drag'n'drop it to the Finder's toolbar.
If you invoke TM_Rdaemon.app it starts TM and it executes the key
combo CTRL+OPTION+APPLE+R which is a shortcut to open Rsession.proj
and to start Rdaemon.
To generalize it a bit one can also use this simple approach to
trigger a auto-start-up script. The only thing to do is to create a
tmCommand, let's say AUTOSTART, with the desired commands you want to
call after TM started and bind it to a UNIQUE key combo without
setting a scope.
After doing it, change the above mentioned AppleScript and
change ...to keystroke ... to your UNIQUE key combo.
Then you can change the AUTOSTART tmCommand easily to trigger some
stuff, e.g. open the Bundle Editor and open a specific project or
whatever; or open a file and set it to specific grammar language.
Everthing is done by using AppleScript's '"System Events" to keystroke'.
At least for me, it saves sometimes a bit time.
[BTW Is this worth to mention it in TM's wiki "How to > AppleScript" ?]
Cheers,
--Hans
I have a question about comment blocks in Java and possibly a bug with
the scope.
consider this (foo.java):
/**
* This class interfaces with the native Cpp Library to model a jet
engine.
* It provides methods to set input parameters and retrieve the state
of the
* engine via a list of output values.
*
* @author Thomas Krajacic
* @version 1.0
*/
when I put the cursor somewhere inside the first paragraph and select
from the menu
Edit > Select > Current Scope
The selection is missing the first 'T' and starts with the 'h'.
Anyway. There used to be this little command called "show current
scope" but I can't find it anymore.
Is it gone? I saw it in one of the first screencasts. (The shortcut he
used was Ctr-Shift-P, but typing that
actually performs the same thing as Shift-UpArrow... just selecting
the line from the cursor back to one line above)
Furthermore there was this episode [Scope Based Customization] where
Allan showed
the snippet to make returns inside a comment block automatically
insert an asterisk at the beginning of the line.
This has not been implemented yet? (Still something to create
yourself? Admittedly really simple but still...)
I already suspect that I have somewhat of a corrupt Textmate Bundle
maybe because I can't find those things.
I use the svn checkout to get the latest bundles and in my users
library/application support, there is no
Textmate Bundle that would override the checked out version.
Maybe someone can try the selection thing out and shed some light on
the snippet inexistence for me.
Thanks,
Thomas
Hi
I'm writing a Bundle to integrate RubyStacks in TM, the first release is
almost finished. However, I'm stuck with one feature:
One of the bundle commands is supposed to start mysqld. It's working so far,
but mysqld does not detach from the process and thus the (Ruby) script hangs
TM until killed. I've tried all kinds of things like calling it in backticks
`/path/to/mysqld`, or forking/detaching, even `nohup /path/to/mysqld &`. No
matter what I do, mysqld doesn't detach from the script launched from within
TM.
Any ideas why?
Thanks, -sven
--
View this message in context: http://www.nabble.com/Starting-mysqld-from-Bundle-tp16117091p16117091.html
Sent from the textmate users mailing list archive at Nabble.com.
Why is this not working for me?
When I use a \ref{} and press escape nothing happens except a sound
from the computer.
How can I track down the problem?
Christopher
*****************************************************
Department of Computer Science, University of Sheffield
Greetings list members,
Does anyone have any applescripts or information on enabling tiling
and cascading TextMate windows? I'm hoping to find someone on this
list who has a simple expedient or barring that finding out that it
isnt currently possible. Then take it from there. Thanks all~
~James
On Mon, Mar 17 Mar 2008, at 16:33, Hans-Joerg Bibiko wrote:
> I changed the code for it a bit in that respect.
>
> Now you can select the function declaration and send it to the
> Rdaemon, switch to the Rdaemon doc, and you can use that function
> (the Rdaemon console is not "messed up", error messages could be seen
> with opt+apple+A 2).
> ...
> Of course, if there is a need to have also/only the "old" behaviour I
> can add/change this. Any comments?
Ah, I see. Interesting approach. I do like that in some circumstances.
Other times, however, it is nice to get some immediate feedback on
errors and/or R output when sending selections of text to Rdaemon. I
guess the disadvantage is that you can't have multiple console windows
open without consequences. (Although I've never found myself doing
that.)
Might be nice to simply have two bundle commands: one to send silently
and one to update the console and output the result.
This new behaviour reminds me of the Emacs + ESS command 'evaluate
this line/region' without switching focus. On that note, as an
alternative, would it be possible to have a selection sent to the
console, the output displayed, and the focus shifted back (or always
staying on) the R source code window? I would find that quite useful.
Thanks for all your work!
Sean
> all three R bundles (R, R Console (Rdaemon), R Console (R.app)) are now uploaded to macromates' svn repository (Review trunk).
First of all, thank you for the continued development of these
excellent bundles!
When using these new versions of the Rdaemon and R bundles, the first
time I send code to Rdaemon from an R file, it works fine. After that,
however, I can't send any more code (i.e. nothing happens) until I
kill and restart the Rdaemon. The Rdaemon console continues to
function on it's own. Sending code to R.app works fine.
It works fine for me with the previous versions of these bundles.
This is R 2.6.1, TextMate 1.5.7 (1455), OS X 10.5.2.
Any ideas?
Cheers,
Sean
Hi,
all three R bundles (R, R Console (Rdaemon), R Console (R.app)) are
now uploaded to macromates' svn repository (Review trunk).
- to install them simply delete them using the Bundle Editor and
restart TM.
- have a look at http://wiki.macromates.com/Main/SubversionCheckout
for details how to checkout
- an example script
export LC_CTYPE=en_US.UTF-8
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
svn co 'http://macromates.com/svn/Bundles/trunk/Review/Bundles/R
Console (R_app).tmbundle'
svn co 'http://macromates.com/svn/Bundles/trunk/Review/Bundles/R
Console (Rdaemon).tmbundle'
svn co 'http://macromates.com/svn/Bundles/trunk/Review/Bundles/
R.tmbundle'
- reload Bundles
Changes:
1) R
- web search for the current word using RSeek.org
- if Rdaemon runs Send Doc/Selection to Rdaemon simply sends the code
to R without opening console.Rcon
2) Rdaemon
- starts faster
- Graphic Manager (prototype) opt+apple+G 1
If one has opened several graphic devices (x11, png, quartz, etc.)
the Graphic Manager will display previews of all devices (not yet for
pdf() or postscript() and the original devices are still open). One
can click on a preview to set it to the current device, one can close
a device (or all), and one can save a device as pdf, eps or as 150
dpi png, jpeg, tiff, pict, bmp, gif, sgi, jpeg 2000, tga, psd in
color or as grayscale. The preview by itself is a pdf, thus one can
drag&drop it to a location.
(Feedback is highly welcomed!)
- second syntax highlighting "Plain" to suppress the highlighting of
R's output
- and some minor fixes
Have fun,
Hans
Would it be possible to have something like flymake (http://flymake.sourceforge.net/
) for TextMate?
If it's not currently possible to build such a feature as bundle,
could it be possible in TextMate 2?
Maybe someone has already thought about this and could post some
conclusions/reasons/show-stoppers to the list.
I was a bit surprised that searching for "flymake" in the list
archives and the wiki didn't yield any results.
Of course, "flymate" comes to mind as a the natural name for such a
functionality. :-)
-Jojo
Is it possible to disable soft-wrap for specific parts of a document?
Example: In Markdown I would like to be soft-wrap on *except* inside
tables.
Thanks
Gerd
Hi!
I installed MacTeX today with the Leopard-Fix for making the
TeX-environment-switch possible. I added /usr/texbin to my .bash_login
as well.
TeXShop has no problems rendering files. TextMate just tells me:
/bin/sh: kpsewhich: command not found
Error: Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
My tip: the path-variable TextMate uses doesn't include /usr/texbin
When I type env in the Terminal I get a PATH that includes /usr/texbin
but it seems that the stuff from .bash_login is only read in my
session when I type . ~/.bash_login
Therefore I guess there was a change in Mac OS X where my stuff gets
its environment from.
My question:
How do I get TeX working again in TextMate (and maybe: How do I get
Terminal to use .bash_login always)?
Any help appreciated.
Niels
I found an odd bug in the MultiMarkDown list sibling generation:
It will strip out any number preceded by a "$" after I hit enter at
the end of the line.
EXAMPLE:
- Here is a number (1234) and here are some a dollar amounts ($123),
($123.00), (-$123).
- Here is a number (1234) and here are some a dollar amounts (), (.
00), (-).
I think the problem lies in this line:
# Strip Marker
$old_line =~ s/^\s*((\*|\+|\-|\d+\.)\s*)//;
...but I'm still new to Perl and Regex
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
I got a new Mac that has a second Option key instead of the dedicated
Enter key I had grown to love. I ended up writing a tiny app to make
it into an Enter key again:
http://henrik.nyh.se/2008/03/map-option-to-enter
I thought I'd mention it on this list since TextMate makes good use of
the Enter key, and Fn+Return isn't very pleasant.
I am sure there is an easy fix.
How do I use textmate with the macports python which is
/opt/local/bin/python2.4
I used macports to install some modules.
Hi Robin,
Yes, that was the problem. The beeping went away when I unchecked the
option in Skim.
Thanks
Shruti
On Mar 15, 2008, at 5:00 AM, textmate-request(a)lists.macromates.com
wrote:
>
> On 15/03/2008, Shruti Gorappa <gorappa(a)gmail.com> wrote:
>> I hear two beeps when I run "Typeset and View" (which I presume
>> are caused
>> because of the warnings) and would like to remove the beeps.
>
> The usual cause of beeping here is:
>
> 1. You are using Skim as the document viewer.
> 2. You forgot to disable "Check for file changes" in the Skim prefs.
>
> Robin
I am working on a Latex project that produces two warnings and
cannot remove these warnings.
I hear two beeps when I run "Typeset and View" (which I presume are
caused because of the warnings) and would like to remove the beeps.
Does anyone know which command produces these beeps and how I can fix
it?
Thanks.
Shruti Gorappa
I do almost all my writing in TM these days, using MultiMarkdown, and
then simply preview using the built-in browser to get pretty pages to
print when I need to. The built-in browser does a great job of
respecting left and right margins as set in style sheet, but it cares
not one whit for top and bottom margins and so when I print I get text
that starts at the very top and runs to the very bottom of the page.
Is there a way to change this within my little TM universe? Outputting
to a browser like Safari means I get all of Safari's headers and
footers, which I don't need.
john
Hi,
>I want TextMate to automatically use the 'CSS' Language scopes when I'm editing my <foo-css.inc.php> includes (which contain only css text), and to use the html Language scopes when I'm editing my html includes, <foo-inc.php> (which contain only html text).
OK, I can report that I solved my dilemma by renaming all the 'css.inc.php' files as '.inc.css' files, and TextMate properly sets the language as css.
I had read that using .css is less secure than using .php (which is why I didn't use .css to begin with), but that's probably only valid when the includes are inside the web site root; mine are outside.
Sorry for the false alarm.
Steven Rowat
Hello everyone,
I am heavily using the latex bundle currently and the bibliography
completion does not seem to work anymore. When trying to complete ~
\citep{Foo} I get 100% CPU usage by ruby and these messages after
killing it:
/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/
lib/LaTeXUtils.rb:141:in `parse_bibfile': Interrupt
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:116:in `map'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:116:in `parse_bibfile'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:251:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:248:in `each'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:248:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:216:in `call'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:216:in `recursive_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:215:in `each'
... 8 levels...
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:204:in `recursive_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:255:in `cite_scan'
from /Library/Application Support/TextMate/Bundles/Latex.tmbundle/
Support/lib/LaTeXUtils.rb:63:in `get_citations'
from /tmp/temp_textmate.Bb9x12:8
I am using the latest version of BibDesk to manage my bibfile, which
inserts quite a lot of non bibtex code in custom fields e.g.
@article{McCafferty2002ME,
Author = {McCafferty, S and Bermingham, E and Quenouille, Brice and
Planes, Serge and Hoelzer, G and Asoh, K},
Date-Modified = {2008-01-27 17:23:40 +0100},
Filed = {Yes},
Journal = {Molecular Ecology},
Pages = {1377--1392},
Read = {No},
Title = {Historical biogeography and molecular systematics of the
{I}ndo-{P}acific genus \textit{{D}acyllus} ({T}eleostei:
{P}omacentridae)},
Volume = {11},
Year = {2002},
Bdsk-File-1 =
{YnBsaXN0MDDUAQIDBAUGCQpYJHZlcnNpb25UJHRvcFkkYXJjaGl2ZXJYJG9iamVjdHMSAAG
GoNEHCFRyb290gAFfEA9OU0tleWVkQXJjaGl2ZXKoCwwXGBkdJCVVJG51bGzTDQ4PEBEUViR
jbGFzc1dOUy5rZXlzWk5TLm9iamVjdHOAB6ISE4ACgAOiFRaABIAGWWFsaWFzRGF0YVxyZWx
hdGl2ZVBhdGjSDRobHFdOUy5kYXRhgAVPEQLMAAAAAALMAAIAAANtYWMAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAADCsBfOSCsAAAAQSwYfTWNDYWZmZXJ0eTIwMDItSGlzdG8jMTA0QkFELnB
kZgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBLrb2LoXgAAAAAAAAAAAABAAM
AAAkgAAAAAAAAAAAAAAAAAAAABnBhcGVycwAQAAgAAMKv
+64AAAARAAgAAL2LhVgAAAABABQAEEsGABBGCwAQRggAB/
PvAABwQgACAEhtYWM6VXNlcnM6amlobzpXb3JrOmJpYmxpb2dyYXBoaWU6cGFwZXJzOk1jQ2
FmZmVydHkyMDAyLUhpc3RvIzEwNEJBRC5wZGYADgDwAHcATQBjAEMAYQBmAGYAZQByAHQAeQ
AyADAAMAAyAC0ASABpAHMAdABvAHIAaQBjAGEAbAAgAGIAaQBvAGcAZQBvAGcAcgBhAHAAaAB5ACAAYQBuAGQAIABtAG8AbABlAGMAdQBsAGEAcgAgAHMAeQBzAHQAZQBtAGEAdABpAGMAcwAgAG8AZgAgAHQAaABlACAASQBuAGQAbwAtAFAAYQBjAGkAZgBpAGMAIABnAGUAbgB1AHMAIABEAGEAYwB5AGwAbAB1AHMAIAAoAFQAZQBsAGUAbwBzAHQAZQBpAC8AIABQAG8AbQAuAHAAZABmAA8ACAADAG0AYQBjABIAnFVzZXJzL2ppaG8vV29yay9iaWJsaW9ncmFwaGllL3BhcGVycy9NY0NhZmZlcnR5MjAwMi1IaXN0b3JpY2FsIGJpb2dlb2dyYXBoeSBhbmQgbW9sZWN1bGFyIHN5c3RlbWF0aWNzIG9mIHRoZSBJbmRvLVBhY2lmaWMgZ2VudXMgRGFjeWxsdXMgKFRlbGVvc3RlaTogUG9tLnBkZgATAAEvAAAVAAIAC///AADSHh8gIVgkY2xhc3Nlc1okY2xhc3NuYW1loyEiI11OU011dGFibGVEYXRhVk5TRGF0YVhOU09iamVjdF8QfnBhcGVycy9NY0NhZmZlcnR5MjAwMi1IaXN0b3JpY2FsIGJpb2dlb2dyYXBoeSBhbmQgbW9sZWN1bGFyIHN5c3RlbWF0aWNzIG9mIHRoZSBJbmRvLVBhY2lmaWMgZ2VudXMgRGFjeWxsdXMgKFRlbGVvc3RlaTogUG9tLnBkZtIeHyYnoicjXE5TRGljdGlvbmFyeQAIABEAGgAfACkAMgA3ADoAPwBBAFMAXABiAGkAcAB4AIMAhQCIAIoAjACPAJEAkwCdAKoArwC3ALkDiQOOA5cDogOmA7QDuwPEBEUESgRNAAAAAAAAAgEAAAAAAAAAKAAAAAAAAAAAAAAAAAAABFo=}}
The last large chunk is a Finder alias to a file on the disk, wich
allows to store many files associated with each reference. Could that
be preventing the ruby script to parse the file?
Anyone with the same setup?
BTW, the completion method involving bibdesk directly (through
applescripts) still works but is slower and requires mouse clicks.
Thanks in advance.
NB: this was already sent to textmate-dev but is probably more
appropriate here
JiHO
---
http://jo.irisson.free.fr/
Every time I launch TextMate, whether it's opening an existing file or
launching the app from my dock, my system emits the normal error beep.
There aren't any dialog boxes that appear so I'm at a bit of a loss
for what might be causing this. Any ideas?
Thanks,
Mark
It would be great if any text within <source> tags were ignored by the
auto-indent feature, it tries to treat my inline Groovy code as XML which is
less than useful.
Otherwise, I'm a TextMate loving Release Engineer and this editing mode
rocks :)
Thanks,
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: cpatti(a)gmail.com
"Technological progress is like an ax in the hands of a pathological
criminal." -Albert Einstein
Hi,
In brief, what I want is for TextMate to automatically use the 'CSS'
Language scopes when I'm editing my <foo-css.inc.php> includes (which
contain only css text), and to use the html Language scopes when I'm
editing my html includes, <foo-inc.php> (which contain only html
text).
What I've Tried:
I have read through the Language and Scopes sections of the manual, and then:
--in the Bundle Editor, made a new language called 'css-inc-php'
--copied the css langauge into it
--left the scopeName unchanged at 'source.css'
--changed the fileTypes to:
fileTypes = ( 'css', 'css.inc.php' );
However, this does not do anything, so I assume TextMate is not using
this information, at least in the way I've set it up.
Why This Is Important To Me:
I'm switching back and forth hundreds of times a day between the css
include and the non-css include, and each time I do so, I have to hit
control-shift-option-C or -H to get the CSS or HTML scope.
In other words, each time I switch from one include to the other
(which I do about once every minute), I'm looking at the wrong scope
language, because I just changed it for the previous file, and
TextMate, obligingly enough (but sadly in this case) remembers.
Is there a way to get this to happen, so TextMate will automatically
recognize the CSS Language for foo.css.inc.php files?
Thanks
Steven Rowat
Hi,
if one writes a tmcommand which should write unicode characters (ucs
hex code large than 0xFFFF) via "Insert as Snippet" the output is wrong.
It is not easy to reproduce it caused by the font problem but doable.
-create a new tmcommand
-write echo "
-open Character Palette; go to View: Code Tables; browse to Unicode
00020000 CJK Unified Ideographs Ext. B; scroll the glyph window to
code point 20050 (column 0); double-click on it to insert into the
tmcommand
-write after the inserted character a "
[if you have such a font you should see this:
otherwise you see a square or whatever.]
-set the output of the tmcommand to 'Insert as Snippet'
If you invoke that command instead of the Chinese character you will
see a simple 'P'.
If you set the output to 'Insert as Text' you will see the correct
character (if you have the font ;)
Why a 'P'? Answer: This character has the UCS code point 0x20050.
Insert as Snippet ignores the leading 2 and will insert 0x0050. And
0x50 is a 'P'.
One can do it for all characters beginning from 0x10000 up. Always
the same.
I know, this bug is more or less marginal but at least for me it's
important – it's my job ;)
Cheers,
Hans
Thanks Thomas,
I had a look at the CSS bundle already, but I will definitely try and
get a better grip on the rules you have there.
I think the idea of compressing as well as alphabetizing is good, but
I wanted to make it fairly solid before I looked at integrating with
anything else.
Alphabetizing is quite helpful when you get used to it, and certainly
helps when you're inheriting a code base. The script seems to run
very quickly, although I'm on a dual-core MBP.
Thanks for your reply,
Pete
On 11 Mar 2008, at 12:00, Thomas Aylott wrote:
> From: Thomas Aylott - subtleGradient <textmate(a)subtleGradient.com>
> Date: 10 March 2008 12:37:17 GMT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] Bundle to alphabetize CSS rules
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Personally this comment would confuse me for my own CSS. But I can
> imagine it being useful for working with other peoples crazy CSS
> files.
>
> There are already reformatting macros in the CSS bundle that I made
> to completely compress or pretty-print all your rules. It might make
> sense to merge these commands somehow. Depending on the speed of the
> php.
>
> Check out the regex I use in those macros. I tried to make it pretty
> flexable and just ignore the contents of of the rules. I haven yet
> heard of anyone running into a rule that my redormatter breaks.
>
> Thomas Aylott [SubtleGradient] from iPhone
The bundle includes v2.3.5 of the YUI! Compressor which weighs in at
about 900k, making an already large bundle a little larger. I've bound
the command to ⌃⌘C to keep it consistent with the other compression
commands.
If you've not already heard about the YUI! Compressor more information
is available at the YUI! Developer site[1]. It's a lot like Dean
Edwards' Packer but without the eval() and a different variable
renaming scheme (which seems to improve gzip efficiency).
(The bundle is nearly 2mb compressed so I've made it available for
download[2] instead of attaching it directly to the list)
john
[1]: http://developer.yahoo.com/yui/compressor/
[2]: http://from.johnmuhl.com/JavaScript Tools.tmbundle.zip
Is there an option that I've missed - to save a file as a copy and
then continue working in the original?
current 'save as' behaviour is to start editing the newly named copy.
I often do save as to create a restore point for a file and keep
getting caught out by the fact that I'm editing the new copy not the
old file...
any suggestions for how I might approach this better, or is there an
option for "save a copy of this with a new name and work in the
original"
;o)
TIA
I am currently taking an ancient Latin class.
Latin, in modern text, makes use of macron ( bars over letters ).
The best way to render these glyphs, I have found, is to use the
glyphs-description in the LaTeX set, e.g. \={u} produces a little u
with a bar over it.
Typing in 5 strokes just to produce that glyph is pretty painful, so i
wrote a bundle called "Latin Student". The bulk of of these features
were along the lines of ^u producing the aforegiven LaTeX set.
1. Is there any guide on how i could export this? A place where I
could check this and other ancillary notions like "linify based on ';'
prefixed by numbers"
2. Is there any interest in thinking about building a larger bundle
which could serve many Languages or non-Latin glyphsets
Valete,
Steven
Hi,
For what it's worth I just tried Hans-Joerg's "Save As..." command and it
worked exactly as expected: the steps involved were pretty minimal, but
maybe something got missed along the way?
(1) Download the "Save" file from Hans-Joerg's message.
(2) Change the extension to ".tmcommand", so the file name reads "
Save.tmcommand".
(3) Double click the newly named beast.
(4) Full steam ahead... using command-shift-s produced a byte-for-byte copy,
but also left me editing the original file.
Odd,
Paul
Hi.
I began working on a bundle to support google's ajax api, http://code.google.com/apis/ajax/
Currently I've implemented most of google maps, which is what I use
the most, but if anyone else is interested in implementing the other
APIs (search and feed), feel free.
Any feature requests or bug reports are welcome (with or without
patches)
I also plan on adding support for the pure maps API where everything
is prefixed with G or G_, but not sure if that should go into its own
bundle or not.
Regards,
Peter Haza
Hi!
For a long time I'm using the auto-completion of the LaTeX-bundle. I
have a bib-file with 290 entries and I want to use the auto-completion
of the bundle, soon after pressing escape for auto-completion there
are 3 ruby-processes in activity monitor to be seen that take up
altogether 180% of the processor (dual core ;) ) and no
auto-completion happens.
What can I do to track down and solve the problem?
Niels
I can't for the life of me figure out why this isn't working in my language
file, can someone help?
Thanks,
Steven
Sample text to search:
----snip------
<cffunction name="isEmpty" returnType="boolean" access="private"
hint="checks to see whether a field is empty">
<cfargument name="inputField" type="string" required="true" hint="the
input">
<cfset retBool = true />
<cfif Len(Trim(arguments.inputField))>
<cfset retBool = false />
</cfif>
<cfreturn retBool />
</cffunction>
-----snip-----
regex that works when using "find" inside TM:
<cffunction\sname=(["'])
bundle language text:
{ name = 'support.other';
contentName = 'entity.name.function';
begin = '(<cffunction\sname).(["''])';
end = '["'']';
},
--
Steven Ross
web application & interface developer
http://blog.stevensross.com
[mobile] 404-488-4364 [fax] 267-482-4364
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]
Hello 'Mates,
I'm working on a bundle (my first!) to alphabetize css attributes, as
described by Garrett Dimon here:
http://www.digital-web.com/articles/architecting_css/
I whipped up some 'working' (as in, it works on a 2000+ line CSS file
I threw it at) code here, which has some obvious problems. Here are
the key parts, all in PHP:
[code]
function find_rule()
{
global $input, $nOffset;
$nStart = strpos($input,'{',$nOffset);
if ( $nStart === false ) return false;
$nEnd = strpos($input,'}',$nStart);
$nOffset = $nEnd;
$nLen = $nEnd - $nStart + 1;
$aReturn[] = $nStart;
$aReturn[] = $nLen;
// return an array containing the start index and length of the next
rule
return $aReturn;
}
function alphabetize_rule($sRule)
{
preg_match_all('/[^:\s]*:[^;}]*;?/',$sRule,$aProps);
sort($aProps[0],SORT_STRING);
$sRule = implode(' ',$aProps[0]);
$sRule = '{ '.$sRule.' }';
return $sRule;
}
?>
[/code]
The problems, that I can see anyway, are in the regular expressions,
since a CSS rule can contain URLs and URLs can legitimately contain
both un-escaped semi-colons and I think even curly brackets. I can
spend a bit more time on those to search for '(' and ')' and allow
those characters between, so that's fine.
My real question is if anyone has any thoughts about managing the
whitespace that separates the rules. Generally I write CSS all on one
line, and my code will return attributes separated by spaces. Ideally
I'd like it to respect how the coder has written their CSS already,
leaving any newlines and indentation in place.
Does anyone have any thoughts on how best to do this? Do you think
this bundle would be useful?
Many thanks for any feedback.
Pete
Hi
Is there any string we can add somewhere in a document such that TM
recognizes it and sets the correctly spelling dictionary?
Basically, everytime I change from a PT to EN document (or vice-versa)
I need to change the spelling language.
Thanks for any hint.
Cheers
--
Alberto Simões
This is a bit off topic, but I have added a word count command to TextMate
for Latex using texWordCount.pl as described here
http://markelikalderon.com/blog/2007/12/30/latex-and-word-count-revisited/
This raised two questions.
1. Is there a "good practice" place to put such snippets of code, and
2. I put it in ~Library/Application Support/Textmate/Code
Adding the "Code" folder to the existing directory tree.
But this led me to a new problem in that I couldn't work out how to get that
directory tree found when trying to run the code. In Windows, because of
the space in "Application Support" I would gve the full and wrap it in
quotes, but the cmbinations I tried failed to work.
At the moment, I have created a new folder ~Library/TextMate for the script
and the word count seem to work well, it also picks up possible errors in
your latex code, but I haven't investigated that yet. A google search
confirms the need to use quotes, but I can't find an illustration of exactly
where these quotes go.
Some help would be gratefully received.
Thanks,
Graham
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am new to Textmate so maybe I just don't know if this already exists.
When I have a project I can set bookmarks. This is fine but it would be
nice if it would be possible to not only set bookmarks but to set
a) Bookmarks of different type (maybe color)
b) Add comments to bookmarks (annotations)
And aside from that it would be nice to be able to set a specific type
of bookmark (selected color) for results of the current search.
So it this already on the feature list, is it planned? or is it possible
to create a plugin that supports this feature. (I have more features in
my head but that for sure need a plugin)
Greetings,
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkfQ+XEACgkQSuF5XhWr2njsPACgqcaQsMhNcAuXV4IhWl8VU7JQ
/mgAn3rQ5RjE7qTzbdMLfIjVi1yHxfmA
=CIxT
-----END PGP SIGNATURE-----
I'm having problems running the mate terminal command, I get the following
error:
/usr/bin/mate: line 1: ../SharedSupport/Support/bin/mate: No such file or
directory
Any help would be much appreciated.
--
Bryce Roney
--
View this message in context: http://www.nabble.com/error-with-Terminal-%27mate%27-command-tp15891059p158…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
I'm finding I cannot copy text from main window into the find window. Also, if I type in a find query, textmate is unable to find the text in the file (even though I see it there in front of me).
Furthermore, I cannot copy or paste between textmate and other applications at all.
I've tried uninstall and reinstall without success.
Mac OS X 10.4.1
Textmate 1.5.7 (1436)
Standard bundles only.
Any tips? Thanks....
Rob
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
When I post to my WordPress blog using the Blogging Bundle, I get this
message:
> 2008-03-05 11:23:41.229 osascript[1107:10b] Error loading /Library/
> ScriptingAdditions/QXPScriptingAdditions.osax/Contents/MacOS/
> QXPScriptingAdditions: dlopen(/Library/ScriptingAdditions/
> QXPScriptingAdditions.osax/Contents/MacOS/QXPScriptingAdditions,
> 262): no suitable image found. Did find:
> /Library/ScriptingAdditions/QXPScriptingAdditions.osax/Contents/
> MacOS/QXPScriptingAdditions: mach-o, but wrong architecture
> osascript: OpenScripting.framework - scripting addition /Library/
> ScriptingAdditions/QXPScriptingAdditions.osax declares no loadable
> handlers.
Mind you, the post is successful, but this is quite annoying.
Any thoughts?
SRH
Hi,
I have some tiny problems with TM's HTML output window.
I have a tmcommand which generates HTML code on basis on a shell
script. Fine, after invoking it I see my result.
In addition I added a button called 'Refresh' to that HTML page. I
want to use it to start that shell script again (which writes the
HTML code to a file) using TextMate.system and then via JavaScript
'location.href' or 'location.replace()' to refresh the HTML output
window.
Well, this only works if I press the button at least twice or three
times(?).
After pressing the refresh button I had a look at the new generated
html file and the content is correct, but TM'S HTML output window
displays still the 'old' version.
I tried the meta tags no-cache and expire with '0'. No success. I
also changed the actual html code a bit to be sure that TM recognizes
it's a new document.
Is there a built-in cache for the HTML ouptut? Or can someone advice
me? How can force TM to refresh the HTML output?
Many thanks in advance,
--Hans
I use the standard font, Monaco font at size 12 with anti-aliasing
enabled. Somewhat frequently, the text becomes aliased and strange
looking in places, and the simplest solution seems to be to highlight
the text, which fixes the problem. Does anyone else experience this,
and is there a fix? Thanks.
Armon
Hi all,
I posted some noise a few days ago about replacing the system read()
function with an implementation that worked with tm_dialog for the
purpose of allowing user's to enter input into scripts/processes
running inside of TextMate (where normally you would enter it on the
command line).
I have an example of this working in the Groovy bundle.
http://macromates.com/svn/Bundles/trunk/Bundles/Groovy.tmbundle/
Support/bin/groovymate.rb
In particular ...
TextMate::DialogRead.init :title => 'GroovyMate', :prompt => "The
script is requesting some input:"
What this does is set some environment variables up for the process
that is about to launch (in this case `groovy $TM_FILENAME`). Now
whenever the running Groovy script reads from STDIN, and there is no
data currently there, a dialog is presented allowing input to be given.
This is not quite production ready, but if you want to use this kind
of thing in your bundle I would appreciate you giving it a try so I
can find issues faster. Contact me if you want to try it out.
Just to be clear, this is not tied to Groovy in any way. It's just
what I chose for the example.
LD.
I know this has been talked about before from various angles and there is a
(very poor) workaround in the Textmate FAQ, but I'd like to make sure there
are absolutely no more options.
The problem is, as most of you are aware, Textmate refreshes it's project
list every time the Textmate window gains focus and any other time the
software deems a project refresh necessary.
This is fine for small projects of a few hundred files or less, but it's
absolutely asinine for large projects with many files. When I switch back
from reading docs in a browser or whatever, I have to wait for several
seconds of spinning beach ball while Textmate refreshes the entire project
list.
How can I turn this off? Seriously. How can I stop Textmate from
automatically refreshing the entire project? I don't mind that it just
takes some time to refresh the number of files I have in my project, but I
do mine that it thinks it needs to refresh on focus every time. I know when
my files get updated and I know what's going on in my project directories.
I want to control the refresh so it only happens when IO know files actually
change.
(Before you ask, these are local project files and I'm using a year old
Macbook Pro with 2GB of ram and a 7200 rpm HD upgrade. This is not a
machine or network problem.)
--
View this message in context: http://www.nabble.com/Major-Project-Issues-with-Refresh-%28Textmate-is-unus…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am really interested in using the "Edit in TextMate" feature in
Safari but it doesn't work on the sites where I want to use it. I
believe I installed it properly because it works from Mail and some
web pages in Safari. After a bit of experimentation it seems the "Edit
in TextMate" command doesn't work if there is more than one textarea
on the page.
As a test, I created two HTML files on my computer:
<html>
<textarea></textarea>
</html>
and
<html>
<textarea></textarea>
<textarea></textarea>
</html>
"Edit in TextMate" works for the first file. For the second file it
fails silently (I don't see any errors in the Console). I am running
TextMate Version 1.5.7 (1455) and Safari 3.0.4 on Leopard 10.5.2. Any
ideas?
-Adam
I get the following message...
~/Library/Application Support/TextMate/Support/bin/Textile.rb: No such file
or directory
...when I try to preview or use any of the commands in the Textile bundle.
When I investigated, I discovered that there actually is "no such file or
directory".
I did a google search and found this...
> 9046 deleted | Diffs: previous, other | Lines: 0 ( +0, -10 )
> Created: 2008-03-04 07:18:15 -0600 (11 hours ago) | Author: duff |
Changeset: 9046
> • move Textile.rb wrapper to Textile bundle and update the commands
which use it — I don't see
> the need to have this command available to all bundles (given that in
the now more than two years
> it has been available, only one bundle command actually used it outside
the Textile bundle).
Is there something I should do to get the bundle working again, as a result
of this change?
Thank you,
Victor
Hi all
I recently installed JUnit 4.4 on 10.5.2. However every time i try to
run my JUnit test classes using textmate's bundle i get a Could not
find class error.
TIA
Hi, folks.
This is more a Mac OS X problem than a TM one, but probably MT has
some way to solve it.
I use TM to write in Portuguese.
Unfortunately, Mac OS X Portuguese dictionary sucks.
Is there any way to make TM use ispell or aspell or hunspell?
Kindest regards,
Alberto
--
Alberto Simões
Hi,
I would like to use TextMate as my Haskell editor instead of Emacs but
one thing is holding me back and that is the wonderfull indentation
features in the Haskell mode for Emacs.
In Emacs I can write the following very easily and press tab to cycle
between the possible indentations. In the code below there are only
one possibility for each line, and pressing tab multiple times does
not insert any tab or space characters.
f_25 :: [a] -> a -> [a]
f_25 s c = foldr g [] s
where g x acc = if x == c
then acc
else x : acc
If I for example unindent the code so I get the code below, then
pressing tab once for each line (or seleting the code and executing M-
x indent-region) will give me the pretty indented version back. Is
there any chance that this kind of functionality could be implemented
in TextMate?
f_25 :: [a] -> a -> [a]
f_25 s c = foldr g [] s
where g x acc = if x == c
then acc
else x : acc
Kind regards,
Emil Hedevang
hi :)
is it possible to skip binary files with "Find in Project"? as we have
many big files like videos and images in our projects this not only
eats up a great amount of memory but is also slow. it also doesn't
make any sense to us since we want to search within the sourcecode and
not some videos or images :). excluding those folders was a solution
for some projects but we can't do it for all of them.
regards,
oktay.
Hello,
It seems that TM is leaking memory in Find in Project (probably in
OakDocument), it is NOT visible when working with small projects, but
with bigger it grows RSIZE memory infinitely.
Steps to reproduce:
$ mate /Developer/Documentation
... then Find in Project for "test".
In Performance Monitor watch as RSIZE grows above 1GB after about one
minute.
My Mac is MacBook Pro 2.2Ghz 2GB RAM, 10.5.2.
I think it has something to do with OakDocument that is created for
all searched files in the list, also for some non-text files.
I just spotted that TM is not freeing RSIZE (nor VM) after closing
some huge binary files like .pch (VC binary) or so. (Libraries). It
may have something to do with that.
It may have something to do with my former mail about big files with
single line inside.
Currently I work with some huge C/C++ projects, and lately searching
for any file ends up with TM eating all my memory.
BTW. Can't Find in Project work in separate thread?
Like: when pressing [Find] in the Find in Project, [Find] button is
made inactive, below appears spinning wheel icon "Working...", and
below we may have [Stop] button that appears only when thread is active.
I often use this, but it hangs TM for a while, moreover it is not
possible to interrupt it.
Best regards,
--
Adam Strzelecki |: nanoant.com :|
Hi there,
is there any way of making RakeMate not htmlize rake's output?
I have a rake task that outputs compilation errors, and would like to
make them clickable so the user can open the offending file, but the
HTML I generate is escaped, so it's not useful.
Any ideas/suggestions/recommendations?
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
The current svn version of texMate.py does not work on OS X 10.4.11.
The reason, I think, is that Python 2.3.5 is installed, which does not
have the "subprocess" module. Since r8813, the texMate script has used
this module.
Robin
hi,
Although I'm in no way related to the project, I'd like to inform that
the MissingDrawer plugin has been updated.
The changes are not yet significant, but the best is that the
development of that oh-so-good plugin starts again, and we can so
expect many new features coming to us!
Maybe my dreams of a 'Expand/Collapse all' option will soon come true...
URL: http://jannisleidel.com/2008/02/missingdrawer/
Regards,
XC
I've gone through the steps on the “Revert to Default Bundles” wiki
page, restored default shortcut keys in the OSX System Preferences,
deleted TextMate related Preferences and Caches and relaunched
TextMate and still can't get access to the “Show Bundle Items” menu
via ⌃⎋
Additionally, I cannot assign ⌃⎋ to any bundle items. It's as if
TextMate has started to ignore all instances of that key equivalent.
To make sure it wasn't a system wide issue with ⌃⎋ I setup a
Quicksilver trigger which worked as expected.
To make matters worse I can't even figure out where/how to re-bind
“Show Bundle Items” to another key equivalent so that I can at
least regain that functionality.
Help with any of this is appreciated.
john
I am trying to create a Shoes bundle. For those who don't know shoes, it is
a GUI framework for Ruby. I'd like the bundle to use the ruby bundle's text
highlighting, folding scheme, etc. I can (and currently have) copied the
language into the new bundle, but can I somehow inherit the language from
the ruby bundle? Thanks.
Mike
Hi,
I have added an xcode project to the bundles repo (http://
macromates.com/svn/Bundles/trunk/Review/Tools/tmread/) called tmread
(it need's a better name). From the help file ...
"The goal of this is to facilitate scripts/commands running via
TextMate that require user input to use tm_dialog to get the input,
where typically the user would enter it on the command line."
In essence, you can use this to run scripts via textmate and have
textmate present a dialog to the user to allow them to enter input
into the process.
I need some help to test this. It passed under every circumstance I
can concoct, but of course there could be lurking bugs.
To fully make use of this though, you need to be a bit clever about
how you write the output of the running process to wherever your are
writing it to (typically the HTML output window). Consider thing's
like RubyMate. It executes a ruby script, writing the output of said
script to the html output window. It currently does this on a line by
line basis. This is problematic if you have the following script ...
#!/usr/bin/env ruby
$stdout.print("Please enter username: ")
username = STDIN.gets
The problem here is that RubyMate would not output "Please enter
username: " before the dialog is presented to the user asking for the
username. So the user won't really know what they are inputting.
I am not 100% sure how to solve this. Parsing the input line by line
is too convenient to through out the window. What we really need is a
way to identify when it is likely that the script we are running is
presenting a prompt and then pass that through as a line, considering
that most prompts end when a newline is entered. I am at a bit of a
loss on how to do this.
I would encourage anyone interested to grab tmread from the repo to
read the readme, build it and have a play so we can catch any issues.
LD.
Hi
rather than piggybacking on my other thread, I wanted to ask another
question, namely which version control system to take for collaborative
writing projects. I am basically starting afresh, so there is no code-base
already in a certain repository format to be taken into account, and I am
planning to use it for (collaborative) writing of text, mostly MultiMarkdown
and maybe Latex if I get the hang of it.
Most people advocating Subversion emphasize that it is widely used and
rather easy to learn. As I am not planning to maintain source code in it
anyway, these points may not be very important.
It seems to me, the alternatives (Bazaar, Git, Mercurial to name a few I
have read about) have matured quite a bit and I would not want to learn a
specific system only to find out that previous users are migrating away from
it for good reasons (that I may not see right now).
So: if the requirements were:
1) up-to-date versioning
2) easy install
3) idiot friendly
4) collaboration friendly (merging of textfiles having been altered by
several authors independently should be doable; see point 3 above)
5) offline work happens (branching and merging)
6) perhaps OS-independent (in case I can convince those other co-authors)
7) existence of a bundle providing integration into Textmate would be a huge
plus (but consider that I may be satisfied with a very limited subset of
what every versioning system offers already)
8) not sure if applicable: if a visualization tool such as Changes.app for
diffing said textfiles be callable to compare versions that would be great,
too. My experience with Filemerge et al, is limited because it does not seem
to like UTF-8 very much (which I require).
what would you choose?
Thanks
Christoph
Hello all,
perhaps this is a bit off-topic so please bear with me. Some regulars on
this forum were instrumental in developing these thougths though which is
what encouraed me to post here.
I am a researcher doing some of my writing in Multimarkdown text files and
put my work on a portable harddrive which I carry home after work,
synchronize to my home computer and carry on working there. Ditto for the
reverse.
After reading a series of inspiring articles about how to use subversion
repositories for academic writers over on Practex journal I am beginning to
think that I could make better use of my resources. Here is what I plan to
do:
Go to work, read, write, take notes etc. Some of this takes place in
textfiles, some will reside XML files (Tinderbox), and some also in binary
files at the end of the day. I have access to a server that I would like to
push all my changes and new data to and then go home. From home, I would
like to pull all changes to my home computer and carry on.
1) Will the version control systems compare whole lines or do some kind of
document comparison trying to find identical blocks regardless of (soft)
line breaks?
2) what I don't know is how well this system will work for binary files,
e.g. Aperture libraries, Word files from colleagues etc. Ideally, I'd like
to just send the changed bits of files, not all files that have changed to
save bandwith and time. If something went wrong I would want to go back in
time.
I am working on a localized system (meaning non-US) in case that is
presenting a problem.
I am not afraid of the command line but I have no experience with version
control whatsoever because I was left with the impression that it was of
little use outside source code development. Although I do some reading about
subversion, git, mercurial, bazaar etc I need some guidance if I am barking
up the right tree in the first place.
I would greatly appreaciate your thoughts
Prion
Hello all,
As a long-time TextMate user I'm well aware of the issues working with
projects on remote filesystems -- I have been doing it day in and day
out for just over three years now, using different combinations of
tools. Like many of you, I've used Transmit for quick single-file
edits and MacFusion/sshfs for heavier remote work for the past year or
more, and they work well enough to be productive, but with well-known
frustrations (latency, connection resilience).
Lately I'm using ExpanDrive (http://www.magnetk.com/expandrive), which
just launched officially. Same transport (SSH/SFTP), but with very
aggressive caching and intelligent connection management under the
hood. Together, they make it *way* snappier than sshfs on even
high-latency links, and allow your mounts to stay live on finicky or
intermittent connections, even as you sleep your laptop one place and
wake it hours later on an entirely different network.
It's a from-scratch new filesystem, not just a GUI for sshfs (though
it does use the MacFUSE core), so its performance and stability are
quite unlike what you may be used to. Of particular note (and this was
a goal in development), the caching works well enough to largely
eliminate the TextMate project focus lag problems we're all so
familiar with by now, even over long-distance connections.
(Full disclosure: I am tangentially connected with this project.)
I think some of you will quite like it.
-jrk
Does anyone else experience problems when searching the java api?
Here is an example of what happens:
1. Press Control-H to open API
2. Apple-F to open find window
3. Type "String"
4. Goes to "AttributedString" in the side panel
5. Pressing the next button or Apple-G does nothing.
I have tried the Regular Expressions option, Ignore Case, and Wrap
Around. None of them seem to work.
Very frustrating to need to continuously scroll down.
Anyone have a solution, or experience the same thing?
Hello,
I've sent a mail to Allan regarding the problem, but I want to share
also this problem with all of you subscribed to the TM list. Maybe you
have also encountered this?
I'm working with few auto-generated FO (XML) files that have no line-
breaks.
You can reproduce such dummy file with:
$ cd /tmp
$ perl -e '{print "<html></html>" x 20000}' > test.html
$ mate test.html
As you see TM gonna take 100% CPU for a really long-long while until
you get syntax highlight.
Also any modification (line-break) causes TM to take again 100% CPU
for a while.
I'm aware it is rare case to work with such files, but is there any
remedy for this problem?
I have soft-wrap turned on, also using System Monitor I can see that
it is tokenizer thread that is taking the whole CPU.
Regards,
--
Adam Strzelecki |: nanoant.com :|
... am I missing something? Can't seem to find a bundle for handling
XSLT tags. Is there one?
Thought I'd ask before I started to knock one up.
R
Richard Dyce MA (Cantab.) MBCS MIET | Director
Richard Dyce Consultants Ltd.
Business Consultancy | Training | Systems | Bespoke Applications
Programming
MySQL, PHP, JavaScript, FileMaker, AppleScript Studio
Contact: Add me to your address book
Web: http://dyce.com
Bio: http://www.linkedin.com/in/rjdyce
Registered Number: 4890568
VAT Number: 825 3090 44
Registered Office
9 Friary Gardens Winchester SO23 9AF
Incorporated in England and Wales.
Confidentiality Notice
The contents of this e-mail and any attachments are intended for the
named addressee only and may be confidential. Unless you are the named
addressee or authorised to receive the e-mail of the named addressee
you may not disclose, use or copy the contents of the e-mail. If you
received the e-mail in error, please contact the sender immediately
and then delete the e-mail. Richard Dyce Consultants Ltd. does not
accept responsibility for this message and any views or opinions
contained in this e-mail are solely those of the author unless
expressly stated otherwise.
While switching from the terminal version of Mercurial to the
Mercurial bundle, I have found out that it doesn't seem to support
user authentication. While many repos do not use authentication, the
one I am working on uses authentication when pushing to the central
repo.
Am I missing something, or is it simply something that isn't supported?
Your very best,
Sangwhan
I am hoping that this has been reported a work around available...
We often have the Textmate 'Find in Project' results become unresponsive to
mouse clicks. The only way to fix it is to restart Textmate. This also
occurs occasionally with the 'Go to Symbol' window as well.
Has anyone else had this happen. We have it on three different machines.
--
Steve Kickert
CEO
Riverock Technologies
www.riverocktech.com
952-232-5280 (direct)
612-965-1909 (mobile)
I finally figured out what was giving me the timeout error in Leopard,
when trying to do anything with the blogging bundle. It was an issue
related to my router (an actiontec GT704WG supplied by Verizon) that
only had problems with Leopard and not 10.4.
Here is the solution (I stumbled upon this when trying to troubleshoot
an issue connecting with adium as well):
1. Visit the router's configuration page and make note of the DNS
server IP's (there should be 2 or three of them). Each router will be
different on how you need to access the info, so use google if you
don't know.
2. Open network preferences, click on the connection you are using and
select advanced.
3. Click on the DNS tab and add the DNS entries that you got from your
router. (Your router's IP should already be listed there.)
4. You should now be able to connect.
http://forums.cocoaforge.com/viewtopic.php?t=16614&highlight=visit+routers+…
Once I followed those steps the problem was solved. What a relief! I
look forward to using the blogging bundle now!
Thanks again for all your help.
Tony
On Jan 18, 2008, at 3:51 AM, Tony Pelaez wrote:
> Though I have been successful at getting the blogging bundle to work
> in Tiger, when I try to run it in Leopard and fetch a post I get the
> following error:
>
>
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> 1.8/timeout.rb:54:in `open': execution expired (Timeout::Error)
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:564:in `connect'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/timeout.rb:56:in `timeout'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/timeout.rb:76:in `timeout'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:564:in `connect'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:557:in `do_start'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:546:in `start'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:1044:in `request'
> from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> ruby/1.8/net/http.rb:1001:in `post2'
> ... 9 levels...
> from /Library/Application Support/TextMate/Support/lib/ui.rb:17:in
> `dialog'
> from /Library/Application Support/TextMate/Support/lib/progress.rb:
> 42:in `call_with_progress'
> from /Library/Application Support/TextMate/Bundles/
> Blogging.tmbundle/Support/lib/blogging.rb:551:in `fetch'
> from /tmp/temp_textmate.b0oDWV:3
>
> has anyone been able to get the blogging bundle to work in Leopard?
>
> My System:
> OS X v. 10.5.1
> iMac Intel Core Duo
> ruby 1.8.6
> wordpress 2.3
>
> Any insight you can provide will be greatly appreciated.
>
> Tony
>
I've got a Ruby script here, and I'd like its output to act like RubyMate's
output - it should appear progressively as I call "puts" or "p" or whatever.
In fact, I'd like the output to piggyback on whatever RubyMate is doing.
But the script is not being run under RubyMate because it's part of a small
bundle I've written myself and the place we're starting is a .txt file
anyway (in other words, I've written a bundle that processes .txt files
using a Ruby script).
I'm betting there is some easy way to tell the bundle command that calls
this Ruby script to output like RubyMate. What would that be? Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Still fighting on trying to get this to work. New problem now that I have
got all the bundles installed and now X11 and CarbonEL is the error message
in the subject
When I create a plot the quartz window opens but freezes with the spinning
beachball.
Hopefully someone can help me again.
Thanks,
Graham
Assigning Textmate as the external editor, it works
as expected for several projects. Double-clicking
on a file name within Xcode will open it in Textmate.
Then all of a sudden, files clicked in the Xcode
project menu no longer open --- instead
Xcode will pop up an error message saying
it cannot find the files and the "perhaps it has been
moved" thing.
If I then disable Textmate as the external editor,
everything will work fine again.
This does not happen if I assign BBE instead
of Textmate.
Perhaps I've missed something.
What am I doing wrong here?
-Shin
Hi there.
I'm twiddling here around with a RE problem and was wondering if you
could help me.
So here is the case. I want do do some tricky Syntax highlight matching,
and wanted to have the visual sidebar with the line numbers.
So in order to test this, I do inside TM Document window this:
(^[^\n]*\n)
This seems to work fine, and will select every single line in document
window.
But is I test the Javascript, which is:
linenum: {
exp: /(^[^\n]*\n)/,
replacement: "<span class=\"$0\"> 1</span>$1\n"
},
It doesn't do the replacement. So I also added a line-break in the
replacement-string, after the capture register, as you can see above,
but no honey.
As you can see, I want to replace every single in the document, with the
span instance above plus the Capture Register( Just like the Ruby code
does in TM Bundle ), which is the whole line, whether it is empty or not.
Any Ideas ?
regards, marios
thank you roger. you're a superstar. I knew it was something simple but was damned if I could figure it out. the language was on "DIFF" instead of "html"
many thanks
L-J
>What
language
is
showing
in
the
popup
at
the
bottom
of
the
document?
>Are
you
getting
proper
formatting
other
than
color?
>Roger,
--
Roger
Roelofs
roger.roelofs(a)gmail.com
____________________________________________________________
L-J Lacey
subtle as a fish
developing websites today for tomorrow
http://www.subtleasafish.com/
----- Original Message ----
From: "textmate-request(a)lists.macromates.com" <textmate-request(a)lists.macromates.com>
To: textmate(a)lists.macromates.com
Sent: Thursday, 21 February, 2008 11:00:05 PM
Subject: textmate Digest, Vol 41, Issue 23
Send
textmate
mailing
list
submissions
to
textmate(a)lists.macromates.com
To
subscribe
or
unsubscribe
via
the
World
Wide
Web,
visit
http://lists.macromates.com/mailman/listinfo/textmate
or,
via
email,
send
a
message
with
subject
or
body
'help'
to
textmate-request(a)lists.macromates.com
You
can
reach
the
person
managing
the
list
at
textmate-owner(a)lists.macromates.com
When
replying,
please
edit
your
Subject
line
so
it
is
more
specific
than
"Re:
Contents
of
textmate
digest..."
Today's
Topics:
1.
Re:
colours
in
textmate
have
disappeared
(L-J
Lacey)
2.
Re:
Re:
colours
in
textmate
have
disappeared
(Roger
Roelofs)
3.
TM
doesn't
have
trouble
with
RE,
but
I
have.
(marios)
4.
New
Rbundle
and
absolute
beginner
questions
on
how
it
works
(Graham
Smith)
5.
Re:
TM
doesn't
have
trouble
with
RE,
but
I
have.
(Daniel
Stockman)
6.
Re:
Working
with
pdfsync
in
latex
(Christian)
7.
Re:
TM
doesn't
have
trouble
with
RE,
but
I
have.
(marios)
8.
Re:
New
Rbundle
and
absolute
beginner
questions
on
how
it
works
(Paul
McCann)
9.
Re:
Octave/Matlab
bundle
(Thomas
Kjosmoen)
10.
Re:
TM
doesn't
have
trouble
with
RE,
but
I
have.
(Sven
Axelsson)
11.
Re:
New
Rbundle
and
absolute
beginner
questions
on
how
it
works
(Graham
Smith)
-----Inline Message Follows-----
Hi
Cristi.
I
did
as
advised
but
nothing
has
changed.
any
other
ideas?
thanks
______________________________________________________________________________________________________________
>first
thing
you
should
do
is
to
delete
plist
file
from
file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist
>>On
Feb
20,
2008
4:03
AM,
L-J
Lacey
<larmyia(a)yahoo.com>
wrote:
Hi!
I
have
searched
everywhere
I
can
to
find
the
solution
to
this,
so
excuse
me
if
it's
available
somewhere...I
can't
find
it!
What
I
think
happened
is
that
my
daughter
accidentally
pressed
"something"
and
suddenly
textmate
isn't
displaying
any
colours
when
I'm
coding.
I've
been
to
the
preference
panel,
and
tried
changing
the
theme.
downloaded
new
themes.
nothing
works.
I
can
get
the
colour
of
the
background
to
change,
but
none
of
the
text
will.
It's
doing
my
head
in
and
I'd
really
appreciate
it
if
anyone
knows
of
a
solution.
thanks
L-J
__________________________________________________________
Sent
from
Yahoo!
Mail
-
a
smarter
inbox
http://uk.mail.yahoo.com
-----Inline Message Follows-----
L-J,
On
Feb
20,
2008,
at
7:31
AM,
L-J
Lacey
wrote:
>
---
8<
---
>
What
I
think
happened
is
that
my
daughter
accidentally
pressed
>
"something"
and
suddenly
textmate
isn't
displaying
any
colours
when
>
I'm
>
coding.
I've
been
to
the
preference
panel,
and
tried
changing
the
>
theme.
downloaded
new
themes.
nothing
works.
I
can
get
the
colour
of
>
the
background
to
change,
but
none
of
the
text
will.
It's
doing
my
>
head
in
and
I'd
really
appreciate
it
if
anyone
knows
of
a
solution.
What
language
is
showing
in
the
popup
at
the
bottom
of
the
document?
Are
you
getting
proper
formatting
other
than
color?
Roger,
--
Roger
Roelofs
roger.roelofs(a)gmail.com
-----Inline Message Follows-----
Hi
there.
I'm
twiddling
here
around
with
a
RE
problem
and
was
wondering
if
you
could
help
me.
So
here
is
the
case.
I
want
do
do
some
tricky
Syntax
highlight
matching,
and
wanted
to
have
the
visual
sidebar
with
the
line
numbers.
So
in
order
to
test
this,
I
do
inside
TM
Document
window
this:
(^[^\n]*\n)
This
seems
to
work
fine,
and
will
select
every
single
line
in
document
window.
But
is
I
test
the
Javascript,
which
is:
linenum:
{
exp:
/(^[^\n]*\n)/,
replacement:
"<span
class=\"$0\">
1</span>$1\n"
},
It
doesn't
do
the
replacement.
So
I
also
added
a
line-break
in
the
replacement-string,
after
the
capture
register,
as
you
can
see
above,
but
no
honey.
As
you
can
see,
I
want
to
replace
every
single
in
the
document,
with
the
span
instance
above
plus
the
Capture
Register(
Just
like
the
Ruby
code
does
in
TM
Bundle
),
which
is
the
whole
line,
whether
it
is
empty
or
not.
Any
Ideas
?
regards,
marios
-----Inline Message Follows-----
-
Create
HTML
From
Document
/
Selection
with
Line
Numbers
(TextMate)
-
Add
Line
Numbers
to
Document
/
Selection
(Text)
-
Option
+
Command
+
L
will
show
the
line
numbers
in
the
gutter...
You
"want
to
replace
every
single"...
what?
"in
the
document".
And
I'm
really
perplexed
by
the
reference
to
testing
"the
JavaScript",
which
AFAIK
isn't
what
bundles
are
written/tested/interpreted
in.
I
think
more
clarification
is
required
so
we
can
understand
what
exactly
you
want
to
do.
~
Daniel
-----Inline Message Follows-----
Am
19.02.2008
um
23:12
schrieb
Paul
McCann:
>
That
should
be
enough
to
give
you
forward
and
backward
synching:
>
shift-command-click
for
pdf=>code,
and
control-option-command-o
for
>
code
=>
pdf.
>
>
Cheers,
>
Paul
Thanks
Paul
for
the
clarification.
Now
it
works
fine
and
I
am
to
pace
around...
Christian
-----Inline Message Follows-----
-
Create
HTML
From
Document
/
Selection
with
Line
Numbers
(TextMate)
>
-
Add
Line
Numbers
to
Document
/
Selection
(Text)
>
-
Option
+
Command
+
L
will
show
the
line
numbers
in
the
gutter...
>
>
You
"want
to
replace
every
single"...
what?
"in
the
document".
And
I'm
>
really
perplexed
by
the
reference
to
testing
"the
JavaScript",
which
>
AFAIK
isn't
what
bundles
are
written/tested/interpreted
in.
>
>
I
think
more
clarification
is
required
so
we
can
understand
what
exactly
>
you
want
to
do.
>
>
~
Daniel
>
Sorry
for
the
confusion.
Ok,
so
how
do
we
express
ourselves
better?
Lemmy
try
once
more.
The
question,
that
I
am
asking,
is
related
to
Regular
Expressions
and
Javascript.
(
So
this
is
not
a
Support
request
at
all
)
I
am
working
on
a
Plugin
for
Textpattern,
which
will
use
a
mootools
class,
to
append
the
corresponding
DOM
nodes
with
the
classed
span
tags.
This
will
all
happen
after
the
code
that
is
to
be
displayed
syntax
highlighted
is
already
encoded
to
entities.
That
works
all
so
far.
Now
in
order
to
get
the
same
effect
as
we
do
have
with
the
Make
HTML
document
from
source
with
Line
numbers
(Which
is
located
in
the
TextMate
Bundle
and
uses
Ruby
for
that),
yes
the
one
that
makes
the
span
tags
for
the
line
numbers,I
am
trying
to
figure
out,
why
the
same
Regular
expression,
that
I
mentioned
in
my
previous
post,
would
not
work,
when
used
as
above.
(
I
even
checked
the
Syntax
with
Flanagan's
Book,
also
tried
global
matching
but
no
luck
)
So
this
is
the
task:
Match
every
beginning
of
a
line,
including
the
first
line
of
the
document,
and
put
that
in
Capture
register
one,
then
match
every
line
until
the
end
of
the
Line,
end
put
that
in
Capture
Register
2,
then
replace
every
instance,
with
some
extra
Markup
(The
spantags
here
)
plus
Capture
Register
2.
This
works
from
within
TextMate,
but
not
in
Javascript.
I
hope,
this
explains
better
what
I
meant.
regards,
marios
-----Inline Message Follows-----
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck,
Paul
-----Inline Message Follows-----
{
name
=
'comment.line.number-sign.shell';
>
match
=
'(?<!\$)(#)(?!\{).*$\n?';
>
captures
=
{
1
=
{
name
=
>
'punctuation.definition.comment.matlab';
};
};
>
},
>
>
Might
Matlab's
bundle
be
patched
to
include
this,
or
should
an
>
independent
bundle
be
introduced
for
Octave?
>
>
Ben
>
>
>
______________________________________________________________________
>
For
new
threads
USE
THIS:
textmate(a)lists.macromates.com
>
(threading
gets
destroyed
and
the
universe
will
collapse
if
you
don't)
>
http://lists.macromates.com/mailman/listinfo/textmate
>
>
Hi
Ben,
Trying
again,
since
Mailman
bounced
my
message.
I'm
working
on
a
Matlab
bundle,
and
stumbled
upon
your
message
here.
Well,
I
just
added
Octave
support,
so
I'd
appreciate
if
you'd
check
it
out
and
give
me
some
feedback.
When
the
bundle
is
good
enough
I'll
submit
it
to
Allan.
You
can
find
it
here:
https://projects.ux.uis.no/projects/show/textmate
Hope
it's
useful.
--Thomas
--
View
this
message
in
context:
http://www.nabble.com/Octave-Matlab-bundle-tp15537210p15603337.html
Sent
from
the
textmate
users
mailing
list
archive
at
Nabble.com.
-----Inline Message Follows-----
On
20/02/2008,
marios
<tmtxpstuff(a)consking.com>
wrote:
>
So
this
is
the
task:
>
>
Match
every
beginning
of
a
line,
including
the
first
line
of
the
>
document,
and
put
that
in
Capture
register
one,
then
match
every
line
>
until
the
end
of
the
Line,
end
put
that
in
Capture
Register
2,
then
>
replace
every
instance,
with
some
extra
Markup
(The
spantags
here
)
plus
>
Capture
Register
2.
>
>
This
works
from
within
TextMate,
but
not
in
Javascript.
OK,
so
this
really
hasn't
anything
to
do
with
TextMate.
Perhaps
Javascript
won't
let
you
match
newline
characters?
Try
this
regular
expression
instead,
it
may
work
better:
^(.*)$
--
Sven
Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
-----Inline Message Follows-----
Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see
R Console (Rdaemon).tmbundle
which can then be double clicked to add it to TextMate.
Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type
start[tab]
and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck,
Paul
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
_______________________________________________
textmate
mailing
list
textmate(a)lists.macromates.com
http://lists.macromates.com/mailman/listinfo/textmateHi
Cristi.
I
did
as
advised
but
nothing
has
changed.
any
other
ideas?
thanks
______________________________________________________________________________________________________________
>first
thing
you
should
do
is
to
delete
plist
file
from
file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist
>>On
Feb
20,
2008
4:03
AM,
L-J
Lacey
<larmyia(a)yahoo.com>
wrote:
Hi!
I
have
searched
everywhere
I
can
to
find
the
solution
to
this,
so
excuse
me
if
it's
available
somewhere...I
can't
find
it!
What
I
think
happened
is
that
my
daughter
accidentally
pressed
"something"
and
suddenly
textmate
isn't
displaying
any
colours
when
I'm
coding.
I've
been
to
the
preference
panel,
and
tried
changing
the
theme.
downloaded
new
themes.
nothing
works.
I
can
get
the
colour
of
the
background
to
change,
but
none
of
the
text
will.
It's
doing
my
head
in
and
I'd
really
appreciate
it
if
anyone
knows
of
a
solution.
thanks
L-J
__________________________________________________________
Sent
from
Yahoo!
Mail
-
a
smarter
inbox
http://uk.mail.yahoo.com
L-J,
On
Feb
20,
2008,
at
7:31
AM,
L-J
Lacey
wrote:
>
---
8<
---
>
What
I
think
happened
is
that
my
daughter
accidentally
pressed
>
"something"
and
suddenly
textmate
isn't
displaying
any
colours
when
>
I'm
>
coding.
I've
been
to
the
preference
panel,
and
tried
changing
the
>
theme.
downloaded
new
themes.
nothing
works.
I
can
get
the
colour
of
>
the
background
to
change,
but
none
of
the
text
will.
It's
doing
my
>
head
in
and
I'd
really
appreciate
it
if
anyone
knows
of
a
solution.
What
language
is
showing
in
the
popup
at
the
bottom
of
the
document?
Are
you
getting
proper
formatting
other
than
color?
Roger,
--
Roger
Roelofs
roger.roelofs(a)gmail.com
Hi
there.
I'm
twiddling
here
around
with
a
RE
problem
and
was
wondering
if
you
could
help
me.
So
here
is
the
case.
I
want
do
do
some
tricky
Syntax
highlight
matching,
and
wanted
to
have
the
visual
sidebar
with
the
line
numbers.
So
in
order
to
test
this,
I
do
inside
TM
Document
window
this:
(^[^\n]*\n)
This
seems
to
work
fine,
and
will
select
every
single
line
in
document
window.
But
is
I
test
the
Javascript,
which
is:
linenum:
{
exp:
/(^[^\n]*\n)/,
replacement:
"<span
class=\"$0\">
1</span>$1\n"
},
It
doesn't
do
the
replacement.
So
I
also
added
a
line-break
in
the
replacement-string,
after
the
capture
register,
as
you
can
see
above,
but
no
honey.
As
you
can
see,
I
want
to
replace
every
single
in
the
document,
with
the
span
instance
above
plus
the
Capture
Register(
Just
like
the
Ruby
code
does
in
TM
Bundle
),
which
is
the
whole
line,
whether
it
is
empty
or
not.
Any
Ideas
?
regards,
marios
-----Inline Attachment Follows-----
I wonder if someone with a lot of patience can help me with getting the basics of this working. I have downloaded the the three files that Hans-Jorg uploade to this forum, as they don't appear to be in the repository yet.
Of the three files only one looked like the other bundle files and I copied it into the same directory where the old RBundle was located. I now have a new set of commands and updated the help index.
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
I am also being extremely dim in getting things to work.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
in the runtime window. However, what I get is
> test
Error: object "test" not found
Execution halted
If I open R and have the RConsole open, then "send selection to r.app" works as expected, but as that has a rather clumsy shortcut key, I assume the shorter command R option is the "normal"way of working
I accept my unfamiliarity with TextMate is probably the problem, but I would appreciate someone pointing out the obvious to me.
Many thanks,
Graham
>
So
here
is
the
case.
I
want
do
do
some
tricky
Syntax
highlight
>
matching,
>
and
wanted
to
have
the
visual
sidebar
with
the
line
numbers.
>
[...]
>
As
you
can
see,
I
want
to
replace
every
single
in
the
document,
with
>
the
>
span
instance
above
plus
the
Capture
Register(
Just
like
the
Ruby
code
>
does
in
TM
Bundle
),
which
is
the
whole
line,
whether
it
is
empty
or
>
not.
Actually,
it's
really
hard
to
understand
what
you're
aiming
at,
here.
"Just
like
the
Ruby
code
does
in
TM
Bundle"...
uh,
which
one?
What
command/snippet
are
you
referring
to?
I
see
several
ways
of
adding
line
numbers
to
a
document
(bundle
name):
-
Create
HTML
From
Document
/
Selection
with
Line
Numbers
(TextMate)
-
Add
Line
Numbers
to
Document
/
Selection
(Text)
-
Option
+
Command
+
L
will
show
the
line
numbers
in
the
gutter...
You
"want
to
replace
every
single"...
what?
"in
the
document".
And
I'm
really
perplexed
by
the
reference
to
testing
"the
JavaScript",
which
AFAIK
isn't
what
bundles
are
written/tested/interpreted
in.
I
think
more
clarification
is
required
so
we
can
understand
what
exactly
you
want
to
do.
~
Daniel
Am
19.02.2008
um
23:12
schrieb
Paul
McCann:
>
That
should
be
enough
to
give
you
forward
and
backward
synching:
>
shift-command-click
for
pdf=>code,
and
control-option-command-o
for
>
code
=>
pdf.
>
>
Cheers,
>
Paul
Thanks
Paul
for
the
clarification.
Now
it
works
fine
and
I
am
to
pace
around...
Christian
Daniel
Stockman
wrote:
>>
So
here
is
the
case.
I
want
do
do
some
tricky
Syntax
highlight
matching,
>>
and
wanted
to
have
the
visual
sidebar
with
the
line
numbers.
>>
[...]
>>
As
you
can
see,
I
want
to
replace
every
single
in
the
document,
with
the
>>
span
instance
above
plus
the
Capture
Register(
Just
like
the
Ruby
code
>>
does
in
TM
Bundle
),
which
is
the
whole
line,
whether
it
is
empty
or
not.
>
>
Actually,
it's
really
hard
to
understand
what
you're
aiming
at,
here.
>
"Just
like
the
Ruby
code
does
in
TM
Bundle"...
uh,
which
one?
What
>
command/snippet
are
you
referring
to?
>
>
I
see
several
ways
of
adding
line
numbers
to
a
document
(bundle
name):
>
-
Create
HTML
From
Document
/
Selection
with
Line
Numbers
(TextMate)
>
-
Add
Line
Numbers
to
Document
/
Selection
(Text)
>
-
Option
+
Command
+
L
will
show
the
line
numbers
in
the
gutter...
>
>
You
"want
to
replace
every
single"...
what?
"in
the
document".
And
I'm
>
really
perplexed
by
the
reference
to
testing
"the
JavaScript",
which
>
AFAIK
isn't
what
bundles
are
written/tested/interpreted
in.
>
>
I
think
more
clarification
is
required
so
we
can
understand
what
exactly
>
you
want
to
do.
>
>
~
Daniel
>
Sorry
for
the
confusion.
Ok,
so
how
do
we
express
ourselves
better?
Lemmy
try
once
more.
The
question,
that
I
am
asking,
is
related
to
Regular
Expressions
and
Javascript.
(
So
this
is
not
a
Support
request
at
all
)
I
am
working
on
a
Plugin
for
Textpattern,
which
will
use
a
mootools
class,
to
append
the
corresponding
DOM
nodes
with
the
classed
span
tags.
This
will
all
happen
after
the
code
that
is
to
be
displayed
syntax
highlighted
is
already
encoded
to
entities.
That
works
all
so
far.
Now
in
order
to
get
the
same
effect
as
we
do
have
with
the
Make
HTML
document
from
source
with
Line
numbers
(Which
is
located
in
the
TextMate
Bundle
and
uses
Ruby
for
that),
yes
the
one
that
makes
the
span
tags
for
the
line
numbers,I
am
trying
to
figure
out,
why
the
same
Regular
expression,
that
I
mentioned
in
my
previous
post,
would
not
work,
when
used
as
above.
(
I
even
checked
the
Syntax
with
Flanagan's
Book,
also
tried
global
matching
but
no
luck
)
So
this
is
the
task:
Match
every
beginning
of
a
line,
including
the
first
line
of
the
document,
and
put
that
in
Capture
register
one,
then
match
every
line
until
the
end
of
the
Line,
end
put
that
in
Capture
Register
2,
then
replace
every
instance,
with
some
extra
Markup
(The
spantags
here
)
plus
Capture
Register
2.
This
works
from
within
TextMate,
but
not
in
Javascript.
I
hope,
this
explains
better
what
I
meant.
regards,
marios
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see
R Console (Rdaemon).tmbundle
which can then be double clicked to add it to TextMate.
Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type
start[tab]
and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck,
Paul
Ben
Abbott
wrote:
>
>
I'm
interested
a
bundle
that
supports
Octave's
syntax
which
is
nearly
>
same
as
Matlab's
...
plus
a
bit
more.
>
>
Additional
Octave
"features"
are
listed
at
the
link
below
>
>
http://www.gnu.org/software/octave/FAQ.html#Octave-Features
>
>
The
additional
syntax
includes
>
*
Comments
with
the
number-sign,
"#"
>
*
Strings
delimitted
by
double
quotes,
ex:
"string"
>
*
Line
continuation
by
backslash.
>
>
The
Matlab
bundle
apparently
respects
single
and
double
quotes,
but
is
>
agnostic
to
line
continuation.
Thus,
the
only
additional
thing
needed
for
>
Octave
is
support
of
the
number-sign
for
comments.
>
>
I
cut
the
text
below
from
the
shell
script
bundle
and
pasted
it
into
the
>
Matlab
bundle,
and
it
appears
to
work
properly!
>
>
{
name
=
'comment.line.number-sign.shell';
>
match
=
'(?<!\$)(#)(?!\{).*$\n?';
>
captures
=
{
1
=
{
name
=
>
'punctuation.definition.comment.matlab';
};
};
>
},
>
>
Might
Matlab's
bundle
be
patched
to
include
this,
or
should
an
>
independent
bundle
be
introduced
for
Octave?
>
>
Ben
>
>
>
______________________________________________________________________
>
For
new
threads
USE
THIS:
textmate(a)lists.macromates.com
>
(threading
gets
destroyed
and
the
universe
will
collapse
if
you
don't)
>
http://lists.macromates.com/mailman/listinfo/textmate
>
>
Hi
Ben,
Trying
again,
since
Mailman
bounced
my
message.
I'm
working
on
a
Matlab
bundle,
and
stumbled
upon
your
message
here.
Well,
I
just
added
Octave
support,
so
I'd
appreciate
if
you'd
check
it
out
and
give
me
some
feedback.
When
the
bundle
is
good
enough
I'll
submit
it
to
Allan.
You
can
find
it
here:
https://projects.ux.uis.no/projects/show/textmate
Hope
it's
useful.
--Thomas
--
View
this
message
in
context:
http://www.nabble.com/Octave-Matlab-bundle-tp15537210p15603337.html
Sent
from
the
textmate
users
mailing
list
archive
at
Nabble.com.
On
20/02/2008,
marios
<tmtxpstuff(a)consking.com>
wrote:
>
So
this
is
the
task:
>
>
Match
every
beginning
of
a
line,
including
the
first
line
of
the
>
document,
and
put
that
in
Capture
register
one,
then
match
every
line
>
until
the
end
of
the
Line,
end
put
that
in
Capture
Register
2,
then
>
replace
every
instance,
with
some
extra
Markup
(The
spantags
here
)
plus
>
Capture
Register
2.
>
>
This
works
from
within
TextMate,
but
not
in
Javascript.
OK,
so
this
really
hasn't
anything
to
do
with
TextMate.
Perhaps
Javascript
won't
let
you
match
newline
characters?
Try
this
regular
expression
instead,
it
may
work
better:
^(.*)$
--
Sven
Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.
-----Inline Attachment Follows-----
Paul,
Thanks, that would all seems to make sense. And yes it does seem a nice environment, which played a small part in my decision to buy a Mac.
Graham
On 20/02/2008, Paul McCann <paul.mccann(a)adelaide.edu.au> wrote:
Hi Graham,
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see
R Console (Rdaemon).tmbundle
which can then be double clicked to add it to TextMate.
Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type
start[tab]
and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
> test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck,
Paul
______________________________________________________________________
For new threads USE THIS: textmate(a)lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate
___________________________________________________________
Rise to the challenge for Sport Relief with Yahoo! For Good
http://uk.promotions.yahoo.com/forgood/
I wonder if someone with a lot of patience can help me with getting the
basics of this working. I have downloaded the the three files that Hans-Jorg
uploade to this forum, as they don't appear to be in the repository yet.
Of the three files only one looked like the other bundle files and I copied
it into the same directory where the old RBundle was located. I now have a
new set of commands and updated the help index.
However, I am not at all sure what to do with the other two files (Rdaemon
and R,app) as these don't unzip to bundle files.
I am also being extremely dim in getting things to work.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R
runtime opens and the command is executed and this line appears in the
runtime.
I would now expect to type "test" in Textmate, hit command R again and get
something like:
> test
[1] 3 4 6 7 8 9 10
in the runtime window. However, what I get is
> test
Error: object "test" not found
Execution halted
If I open R and have the RConsole open, then "send selection to r.app" works
as expected, but as that has a rather clumsy shortcut key, I assume the
shorter command R option is the "normal"way of working
I accept my unfamiliarity with TextMate is probably the problem, but I would
appreciate someone pointing out the obvious to me.
Many thanks,
Graham
I'm interested a bundle that supports Octave's syntax which is nearly
same as Matlab's ... plus a bit more.
Additional Octave "features" are listed at the link below
http://www.gnu.org/software/octave/FAQ.html#Octave-Features
The additional syntax includes
* Comments with the number-sign, "#"
* Strings delimitted by double quotes, ex: "string"
* Line continuation by backslash.
The Matlab bundle apparently respects single and double quotes, but is
agnostic to line continuation. Thus, the only additional thing needed for
Octave is support of the number-sign for comments.
I cut the text below from the shell script bundle and pasted it into the
Matlab bundle, and it appears to work properly!
{ name = 'comment.line.number-sign.shell';
match = '(?<!\$)(#)(?!\{).*$\n?';
captures = { 1 = { name = 'punctuation.definition.comment.matlab'; }; };
},
Might Matlab's bundle be patched to include this, or should an
independent bundle be introduced for Octave?
Ben
Hi Folks,
I am pretty new to textmate and I already love the way how to typeset
only with textmate and to preview the PDF.
I now tried pdfsync and can't get it to work.
I have my preambel and include all my chapters with input. After
typesetting, I highlighted a word with an included file and used "Show
in PDF-Viewer (pdfsync)", but nothing happens. How ould I get this to
work, so that I can jump from the code to the pdf and vice versa?
Thanks in advance
Christian
Hi Cristi. I did as advised but nothing has changed. any other ideas?
thanks
______________________________________________________________________________________________________________
>first thing you should do is to delete plist file from file:///Users/cristi/Library/Preferences/com.macromates.textmate.plist
>>On Feb 20, 2008 4:03 AM, L-J Lacey <larmyia(a)yahoo.com> wrote:
Hi!
I have searched everywhere I can to find the solution to this, so excuse me if it's available somewhere...I can't find it!
What I think happened is that my daughter accidentally pressed
"something" and suddenly textmate isn't displaying any colours when I'm
coding. I've been to the preference panel, and tried changing the
theme. downloaded new themes. nothing works. I can get the colour of
the background to change, but none of the text will. It's doing my
head in and I'd really appreciate it if anyone knows of a solution.
thanks
L-J
__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
Hi,
I've just started using Textmate for LaTeX work now that I have
managed to get it working nicely with skim (thanks all for the recent
thread!). One thing I am confused by (and I couldn't see anything in
the archive that mentioned this) is the function of the "trash aux
files" command.
I've used a similar thing in emacs before to clean up after compiling
a PDF from a tex file, but Textmate's version seems to be a bit over-
keen and it deletes the compiled PDF file too. Is this correct, or do
I need to alter a setting somewhere? I've had a look in the
preferences file and options window but I can't see there is a switch
in either of those so I presume this is being taken care of by a
support script?
Any help would be appreciated.
Many thanks,
Nigel
Hi!
I have searched everywhere I can to find the solution to this, so excuse me if it's available somewhere...I can't find it!
What I think happened is that my daughter accidentally pressed "something" and suddenly textmate isn't displaying any colours when I'm coding. I've been to the preference panel, and tried changing the theme. downloaded new themes. nothing works. I can get the colour of the background to change, but none of the text will. It's doing my head in and I'd really appreciate it if anyone knows of a solution.
thanks
L-J
____________________________________________________________
L-J Lacey
subtle as a fish
developing websites today for tomorrow
http://www.subtleasafish.com/
___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
Hi,
I've developed a Bundle for the Maude system[1], a "high-performance
reflective language and system supporting both equational and
rewriting logic specification and programming for a wide range of
applications", and I'd appreciate any feedback on it (the bundle, not
Maude).
To evaluate code (the first seven commands in the gear menu do that),
the bundle assumes you have `maude' installed somewhere in your PATH,
or set TM_MAUDE to the path of the executable. The coding aids make no
such assumption.
Included in the bundle is a MaudeMate "script" runner that parses
Maude's output and error messages and emits fancy HTML. Unfortunately,
TM's ScriptMate makes a few assumptions Maude doesn't fulfill, so it's
based on a hacked rip-off of that module.
The bundle is available via SVN[2]; you'll probably also need to
download Maude[3] and a few code examples[4].
Again, I'd appreciate any feedback on what I've strung together.
Thanks,
Martin
[1] http://maude.cs.uiuc.edu/
[2] http://mkhl.googlecode.com/svn/trunk/TextMate%20Bundles/Maude.tmbundle/
[3] http://maude.cs.uiuc.edu/download/
[4] http://maude.cs.uiuc.edu/maude2-manual/
I just converted from TeXShop to Textmate for my LaTeX editing needs
and find
myself missing one of TeXShop's features:
After typesetting a document, TeXShop remembers which page of the PDF
document you were last looking at and after typesetting again
automatically
jumps to that page.
Textmate's Typeset & View, in contrast, always takes me to the first
page of
the document no matter what I was looking at before which is an enormous
pain when I'm tweaking page 38...
Is there any way I can get this functionality in Textmate?
Cheers,
Tobias
Dear Chris,
You're not alone, and I enjoyed reading your note and Haris' reply. I
seem to be in a similar situation to you. I too am an academic, though
I am in the humanities. I occasionally think about just going "all
LaTeX" but I am held in check by the fact that I would be the only
using it in my field, in my department, in my building. I too have
settled on a workflow built around MultiMarkdown because of its
readability, its text file nature, and because it outputs such
beautiful looking documents when you pass it through a CSS of your
choosing.
I currently rely on other apps for my backup, but I have really longed
for a svn set up, because I really would like the finer-grained
control. With the switch to Leopard, I'm thinking of trying to make
the push sometime soon, so please keep at least me posted on what you
learn and how to do these things. (Jacob is laughing somewhere that I
still haven't done this -- I tried this past summer to get an svn up
and running, but I just didn't have the time to dedicate to what was a
project in and of itself.)
john
--
John Laudun
Department of English
University of Louisiana – Lafayette
Lafayette, LA 70504-4691
337-482-5493
laudun(a)louisiana.edu
This is the first time I've ever experienced this problem. I was typing
along in TextMate and suddenly it started to get really sluggish, so I
pulled up activity monitor and whenever I edit text in TextMate, it shoots
up to 50 or 60% CPU usage. I have an Intel Core 2 Duo MBP running OSX
10.5.2 and TextMate Version 1.5.7 (1455). I usually leave TextMate open for
days at a time and I've never had this problem before. I tried closing
TextMate and reopening and that didn't do anything. Any ideas what might
be causing that?
--
View this message in context: http://www.nabble.com/Typing-eats-up-system-resources-tp15546901p15546901.h…
Sent from the textmate users mailing list archive at Nabble.com.
Hi again,
>I don't know a way to solve your problem, but one trick that'll make
> >your current behavior a little nicer is Control + Option + W, which
> >closes all open tabs, rather than jamming on Command + W.
>
> That would be a help, but it's not working for me. Can you tell me where
> it is in the menus (I can't find it), so I can adjust it with Menu Master?
> Or if it's not in the menus, how do I get access to it?
There's a slip in the first-quoted message: it's control-COMMAND-w to close
all tabs, and the menu it sits in is "File".
Cheers,
Paul
Hi,
I am new to wonderful textmate and facing a problem. I am not sure
where I am going wrong.
When I try to "undo" using keyboard shortcut (command + z) I get
something like this on screen.
----------------------------------------------------------------------------------------------------------------
File: /Users/venkatesh/Documents/test.php
Word: </title
Selection:
------------------------------------------------------------------------------------------------------------------
Any suggestions?
Thanks,
--
Venkatesh. K
I don't know a way to solve your problem, but one trick that'll make
your current behavior a little nicer is Control + Option + W, which
closes all open tabs, rather than jamming on Command + W.
On Thu, Feb 14, 2008 at 1:13 PM, Steven Rowat <Steven_Rowat(a)sunshine.net> wrote:
> Hi,
>
>
> Daniel wrote:
>
> >Unless I'm living in a parallel dimension, the name of the currently viewed file is always at the very top of the window, next to the file icon above the tab bar. Is this not the case?
> >
> >Command + T (Go To File) is also your friend, as is Command + Option + (L/R) Arrow (Go to Previous/Next Tab, respectively).
>
>
> Thank you; the Command+T I knew, the second I didn't.
>
> They will be useful, but don't solve the issue I tried to describe.
>
> Again: what I want is to be able to make a file display in the tabs at the top, when the tab list is already full, and the file is further down in the drop-down list.
>
> The only way I can do this at present, that I know of, is to hit Command-W twenty or more times and unload everything so I have a blank project, and then reload the files I want to have as tabs at the top.
>
> I find working with visible tabs, when I'm passing data between four or five files repeatedly (ie., several includes and a main php file) to be much faster and easier than finding them in the drop-down list over and over as I switch back and forth between them. So I'd like to put them at the top each time, before I begin editing them. I'm currently working with hundreds of files that often have only a single digit or number different, and it's very easy to get them confused unless all my ducks are in a row (in this case, literally, a row across the top).
>
> And sometimes there's only *one* that I'm missing from the top - but still, if it's way down the list, then there's no way to get it up there without unloading everything else before it (if I'm right about this).
>
> It's not a big deal; I can just unload and reload and it's quick. But still I think it would be cleaner if the file listing gave this option - to have a file tab become visible when this is preferred, so that the chosen file would change its position in the file listing and become the final visible tab.
>
> steven rowat
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
Hi Steven,
it's much easier than that for Bundle items! Just open the bundle editor
(control-option-command-b) and then find the item whose shortcut you wish to
change. In this case just look in the HTML bundle (filter on "Command" using
the pull down at the top left if you like) and it's there. There's a field
at the bottom right for setting the key equivalent.
Cheers,
Paul
Hi there,
This may be a bit of a newbish question, but hopefully someone can answer it
for me.
I have quite a few JSP files, but a couple of them contain almost solely CSS
information (with some serverside info sprinkled in).
So, of course, I'd like those couple of files to be highlighted as CSS
files, with the CSS bundle to be active for those files.
However, the issue I am running into is that whenever I select the language
for that file, it sticks for all JSPs.
So what would be the best way to get those few files to be read as CSS, but
keeping their same file names, etc?
Thanks in advance for all of your help,
--
View this message in context: http://www.nabble.com/Changing-language-for-a-specific-file-tp14630274p1463…
Sent from the textmate users mailing list archive at Nabble.com.
When defining "static variables" in Preferences->Advanced->Shell
Variables, is it possible to include the values of static variables in
the values of others?
For example, I tried defining:
P1 /some/path
P2 $P1/subdir
But the value of P2 is "$P1/subdir", not "/some/path/subdir" as I wish.
--
Daryl Spitzer
Hi,
One additional note: as recommended in the TM Help, I tried
downloading MenuMaster but still no joy. Even though it easily
allows me to add a key binding for "Strip HTML Tags from Selection",
using the keycommand still does nothing.
Other (core) commands can be changed and work afterwards, so I
suspect it's a bundle communcation issue. Another test seems to
confirm this: when I change the "Insert Close Tag" command (in the
HTML bundle), it visually shows a change, but the keyboard continues
to work with the original default command. Restart TM, the change
persists in the menu, but still uses the default from the keyboard.
So I'm stuck, I think. Is there a way around this, that anyone knows of?
steven rowat
Hi,
I attempted to assign a key-binding to "Strip HTML Tags from
Selection". A command installed via System Preferences doesn't work,
and I assume this is as explained in the TM help:
"Dynamic menu items i.e. those which change title depending on the
programs state (like Fold Current Block / Selection) should be
specified with their initial title. The initial title can be found by
opening the MainMenu.nib file in Interface Builder (use Show Package
Contents on TextMate and navigate to Contents ? Resources ?
English.lproj)."
So I have installed Interface Builder, found the MainMenu in the TM
package, double-clicked it to open it in IB, and then double-clicked
the MainMenu icon, which opens. However, the Bundle Menu item only
drops down the first four global items; none of the Bundles show up.
(Also, a small yellow tooltip opens on hover over the MainMenu icon,
saying "One of the children has a bad/missing connection".)
Is there a way to find out what name I should be using to bind "Strip
HTML Tags from Selection"? Apparently the bundles aren't connected in
IB - ? - or is there another way to access them?
steven rowat
timetrap-2 wrote:
>
>
> On 2008-01-26 14:27:39 -0600, Sebastian said:
> And just to confirm that the reverse is actually true, could somebody
> confirm if you are running RakeMate tasks in the Rails bundle with 2.0
> projects without any trouble? Thanks.
>
I have the same setup as you do, Rails 2.0.2, Rake 0.8.1 and RakeMate r6193
and it works fine. A colleague has the same setup on his mac and he gets
the error you do. Go figure...
--
View this message in context: http://www.nabble.com/Problems-with-Rails-Bundle-and-RakeMate-tp15112223p15…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
A couple weeks ago GetBundle stopped both Installing and Updating
bundles. I can list installed bundles and view the bundles in the
repository but when I try to install or update I see the dialogue
come up that say "This may take a while..." which then just
disappears with no error whatsoever. I've tried removing all of the
bundles that I'd previously installed via GetBundle as well as
removing and reinstalling GetBundle itself. Any ideas?
Erik Jones
DBA | Emma®
erik(a)myemma.com
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com
Greetings,
I'm working in a TM project with dozens of files, and there are only
room for about 5 or 6 names in the tabs across the top of the project
window.
This is creating an interface problem for me - if I select one of the
files that's not across the top, by using the ">>" symbol to get to
the list, I'm expecting it to move into the tab window (as the last
item), but it doesn't. It stays invisible (i.e., no tab).
So I'm working on a file that doesn't have its tab at the top. It's a
small issue, but I've repeatedly found it confusing and/or
frustrating to have to go to the ">>" window to see which file I'm
currently working in, rather than just looking at the top and seeing
which one is the 'clear white' tab.
Is there any way around this? Or if not, can it be added as a future
feature (that selecting a file would automatically make it visible as
the last tab to the right, replacing whichever one is there)?
Thanks
Steven Rowat
Hi,
OK, this is a very tricky crash. I try to describe it as precise as
possible:
-TM runs for hours
-I open the Find Dialog; regular expression is checked
-I type something into the search textfield containing among others '\t'
-I selected something '(.*?)' within the search textfield
-I copy the selection apple+C
-I move the caret to an other position within the search textfield
-I paste the pasteboard content apple+V
-I type something else
and then I press TAB to move the focus to the replace textfield. TM
crashes immediately.
I tried several times to reproduce the crash but without success. It
happens very sporadically and VERY VERY infrequently (up to now three
four times).
As attachment I send the crash report.
Hopefully this report can help.
G5 ppc, Mac OS 10.4.11, US keyboard, English environment, Input
Method 'U.S.', TM 1.5.7 rev1455
Thanks,
Hans
A 'pattern' I use frequently seems to be confusing textmate's
indentation of C++ code.
The problem comes from writing things like:
{ // Comment
If you simply write into textmate, you get something like:
{
{ // Comment
foo();
}
}
If I try to select and indent the code, I end up with:
{
{ // Comment
foo();
}
}
Now the problem is the other way!
I tried looking at the how the indentation works, but it was some way
beyond me I'm afraid. Any suggestions?
Chris
Hi,
I have a general question. Would it be possible to create a single
NIB (without external Xcode) as a table editor?
Given is a file containing TAB delimited data. These data should be
sent to a tm_dialog NIB as plist. In principal this should work but
the number of columns and rows can differ(?)
The NIB file should contain an editable NSTableView and two buttons
'Cancel' and 'Save'. By pressing the button 'Save' the current
content of the NSTableView should be outputted as plist.
Is this possible?
Many thanks for any hint in advance.
Hans
Hi all,
I'm using a TextMate to post to my blog based on WordPress 2.3.3.
Before I upgraded to WordPress 2.3.3, I was able to upload my post
using Blogging Bundle. But after updating to the WordPress 2.3.3, I
cannot do so.
Whenever I try to upload a post, I get the following message at the top.
Received exception:HTTP-Error: 412 Precondition Failed
Type: Blog Post (Markdown)
Is anyone having the same issue? I know I can try downgrading my
WordPress installation, but since it fixes some XML-RPC related
security issue, I'd like to keep it.
Are there any workaround for this issue?
Thank you and regards,
--
Takashi Yoshida
tyoshida [at] mac [dot] com
When I do a Status using the Subversion Bundle, it correctly shows
what has changed.
However, when I try to do a commit from the subversion popup page,
the spinning dial starts up and never stops. After waiting a while, I
killed the svn process at the command line. Once I did that, TM poped
up a window asking for my SVN password.
I have used svn at the command line for months to check in/out code
and it works perfectly. My username on the svn repository is
different from my username on my mac, but the first time I used svn
from the command line, it failed and then I was able to put in the
correct username and password. Since then (months ago), svn from the
command line has worked perfectly. I think when svn is started by TM
it must be using my mac user name rather than the cached name. Is
there any way I can control this?
After I type my comments and hit commit, in the status window the
following appears:
Authentication realm: PAC
but I can’t see any place that I can type to supply my credentials.
I don't think it's a problem with our subversion repository because
the developer sitting next to me is able to commit from TextMate with
no problems.
Thanks,
Steve
_____________________
Steven Chanin
steven_chanin at alum.mit.edu
(415) 377-7503
Hello,
I'm using a ConTeXt bundle (similar to LaTeX) from
http://wiki.contextgarden.net/TextMatehttp://dl.contextgarden.net/support/context-tmbundle.dmg
When "building" with
⌘+R
an extra window with "html" content opens with a long log of the run.
My question is: is it possible to scroll down to the bottom of that
window automatically as the log is written to it?
The command which creates that window looks approximately like that:
##############################################
#!/usr/bin/env ruby
$:.unshift "#{ENV['TM_SUPPORT_PATH']}/lib"
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'scriptmate'
require "parse_texexec_output"
@file=File.basename(ENV['TM_FILEPATH'])
@dir=File.dirname(ENV['TM_FILEPATH'])
$cmd="texmfstart texexec #{xetex} --pass=\\'-halt-on-error
-file-line-error\\' #{@file}"
class CommandMate
def emit_header
puts html_head(:window_title=>"texexec", :page_title=>"typeset" ,
:sub_title=>"#{$cmd}")
puts "<pre>"
end
end
cmd_mate($cmd)
##############################################
Thanks a lot,
Mojca
To be honest, I can't tell if the failure to apply a style sheet is
something odd in my TM set up or something flakey going on with my
hosted set up. Would someone mind reminding how to make the call to a
local style sheet so that I can test what's going on?
Is it "file:///path/to/file.css" or is it "http://localhost/path/to/file.css
" -- and with the latter I assume I have to have the built in web
server running, yes?
john
I uploaded an Ant bundle to the review's section of the bundle
repository a couple of months ago. There have been a few tweaks but
it's now stable. I'm looking to getting it bumped up to the main
repository so am canvasing here for some feedback.
<http://macromates.com/svn/Bundles/trunk/Review/Bundles/Ant.tmbundle/>
On top of the obvious build and run commands it's main features are
integrated help, auto completion, document validation, and - the
handiest for me - build target selection from a dialog pop-up, bound
to ⇧⌘B. As Ant's a build system, and therefore language
independent, you will have to configure the commands by adding the
scope/s of your languages of choice, alongside possibly setting up an
environmental variable to target your build.xml file of choice.
Anything that helps/improves/patches, is more than welcome.
Cheers,
Simon
I take exception to the C syntax gobbling up whitespace at the
beginning of a line. It screws up my tab guides, as seen in the
example below (before EXCEPTION).
Gerd
Hello everyone,
I have a probably silly question for you concerning tabulations:
Yaml can't stand tabulations, it says it requires spaces instead. How
can I get TextMate to insert spaces instead of tabs?
Regards,
Xavier
Hi all,
Would anyone happen to be working on an Xdebug bundle? I'm thirsty for
a PHP debugging environment as an extension in TextMate. Was just
curious if something is available or if someone is in progress with
this effort before I attempt to reinvent the wheel.
Cheers!
/sf
Something like Autotext is def what I'm looking for. I have a problem and a
question however.
Question: is there a way to integrate this so it's globally accessible so I
don't have to change the language of a Java or Javascript file in order to
use it?
My problem is I'm receiving an error and it's not working. I've attached a
screenshot. I looked through the files for Autotext and don't see where (or
even what) the problem might be, maybe someone can help?
Thanks again for all your ideas and help...
On Feb 1, 2008 11:49 AM, Hans-Jörg Bibiko <bibiko(a)eva.mpg.de> wrote:
>
> On 01.02.2008, at 18:59, Daniel Stockman wrote:
>
> > On Feb 1, 2008, at 9:42 AM, Jamal Johnson wrote:
> >> I'd like to be able to put my cursor on a word (in a JS file let's
> >> say) and have that word highlighted _everywhere_ else in the
> >> document making it very easy to find / see where it is. [...] Is
> >> this possible?
> >
> > I dislike the idea of making the mouse cursor integral to a
> > function of a text editor, so here's how you could approximate the
> > behaviour via the keyboard (with menu path parenthesized):
> >
> > 1. With the caret inside or bordering the target word, press
> > Control + W (Edit > Select > Word). Alternately, double-click the
> > word itself.
> >
> > 2. Command + E (Edit > Find > Use Selection for Find)
> >
> > 3. Command + G (Edit > Find > Find Next)
> >
> > Your selection will now jump to each instance of the desired word
> > on each subsequent Command + G. It's not as whizbang as Aptana, but
> > I often feel IDEs do a lot more than necessary for certain tasks.
>
> I agree with Daniel.
>
>
> But as a short note: By using TMTOOLS (an 'unofficial' hacker tool ;)
> one could do this.
> see my mail: http://comox.textdrive.com/pipermail/textmate/2007-
> October/022827.html
>
> Cheers,
>
> Hans
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
--
---------------
.: Jamal :.
I am currently a user of BBEdit. I'd like to be able to use TextMate if I
could find a combination of an SFTP client and TextMate that would allow me
to edit multiple files remotely as a project (grouped in the same window,
with the drawer). Is there a combination of programs that will allow this?
Working locally is not an option because the dev environment includes a huge
MySQL database, among other things. But if I could work locally in a way
that immediately and automatically updated remotely, that might be OK.
--
View this message in context: http://www.nabble.com/Remote-editing-of-projects-tp15053548p15053548.html
Sent from the textmate users mailing list archive at Nabble.com.
Greetings,
I've been using TextMate for several months, and I'm now starting my
first multi-file project using the TextMate project interface.
I've encountered what appears to me as a substantial bug (see title).
I opened a ticket with a full description last week, but have
received no reply so far. Here's the "Summary" from the start of that
ticket:
"Summary:
At first, TM's Web Preview reads linked css stylesheet in the HTML
header correctly, but then will not update when the stylesheet is
changed. Browsers don't have this problem and show the new data as
expected. (TM Web Preview seems to get 'stuck' using its original
cached value, even when those values no longer exist in the css file.
) "
Here's the full description, including my Troubleshooting attempts
and exact steps to reproduce the bug:
http://macromates.com/ticket/show?ticket_id=79950679
In addition I'm puzzled by the fact that I've found an exact
description of the bug reported in this list in 2006. And there are
no replies to that report either! Strange.
Doesn't anyone besides me need to use the (wonderful) Live Web
Preview with linked external style sheets?
Or am I missing some hidden command or path configuration that will
allow this to work?
Best Regards,
Steven Rowat