Recently, when I try to open TextMate, TextEdit opens up instead. I cannot
figure out how to launch TextMate. I think this started happening around
the time I upgraded to Lion, but I am not sure if there is any connection.
I rebooted one time and was about to launch TextMate, but now even if I
reboot it still brings up TextEdit.
Thanks for your help,
- Tad
--
View this message in context: http://old.nabble.com/TextEdit-opens-intead-tp32872813p32872813.html
Sent from the textmate users mailing list archive at Nabble.com.
Not sure what I've done to make this happen, but in the last day or so, ⌘T or Go to File has stopped working. I haven't edited any bundles recently, updated any bundles or any such activity.
Any ideas?
Adam Merrifield
seyDoggy vCard: seydoggy.com/vcard
I just updated my D compiler on Lion. Now when I run a C++ program in
? (not a D program!) I get the following:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:194: warning: Insecure world writable dir /Users/chuck/dmd2/osx in PATH, mode
040777
Any ideas?
Thanks,
Chuck Allison
> Was hoping there was an environment variable to get a list of the open
tabs in a project. Is this possible?
You can look at the environment variables by enabling the Bundle
Development bundle. Go into the Bundle Editor, and click on Filter near
the bottom. Check the box next to Bundle Development. Now go to a
document and press shift+ctrl+command+p. That should pop up a tooltip with
all of the environment variables. Someone please correct me if I am
mistaken and that is not all of the environment variables.
There is also this thing called TMTOOLS which supposedly hacks in a some
extra functionality...but rather than go that route you might just bide
your time and see if a future update possibly provides the features you are
looking for.
Brandon
Hi.
I installed the TxMt sass bundle from sea of clouds but despite adding the
path to html2haml in my .bash_profile & the shell variables preference in
TxMt when I try to run `html2haml` I get:
`/bin/bash: html2haml: command not found`
This on 10.6.8 & ruby-1.9.3.
Any help appreciated.
Cheers,
Phil...
--
Nothing to see here... move along, move along
Ok, so what is the latest way to get updated bundles? I've been using
GetBundles, but now when I try to use it, it just spins on "updating
TextMate support" or just any action. I can't get it to do any updates.
I used to just do:
cd /Library/Application\ Support/TextMate
svn up
but I had thought I read that bundles are moving to Github, so that command
isn't quite the right way.
So... what's the new and improved method to update bundles?
(one for example - I'm trying to see if there's a Rails bundle update that
has updates for Rails 3.1)
Thanks!
Is it possible to have a language bundle inherit foldingStartMarker and
foldingStopMarker from another? e.g. having the Ruby on Rails bundle using
the folding rules from the Ruby bundle.
Hi, I'm korean.
I'm very poor at english, but i have one question.
Why didn't parsed this ?
#ifdef
if(condition) {
#endif
#ifdef
}
#endif
int test_func() //TextMate didn't parsed this function.
{
...
}
}
Hi.
I'm trying to install the plugin in the Rails bundle & TxMt throws this
error:
`/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby on
Rails.tmbundle/Support/bin/list_plugins.rb:27:in `join': can't convert nil
into String (TypeError) from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby on
Rails.tmbundle/Support/bin/list_plugins.rb:27:in `'`
There's very little info on Google (I have successfully installed Edit in
TextMate in /Library/InputManagers & it's owned by root:admin) so I wondered
if anybody had had similar problems.
Cheers,
Phil...
--
Nothing to see here... move along, move along
>
> But that's because I chmod'd a couple of Cache directories in /usr/local/
> to
> 777 so they could be writable to by apapche 2.2. I don't think that can be
> the cause because I did the same in /opt/local/ where my working copy of
> perl is & TM returns any output from any script fine if I supply the
> correct
> shebang line `/opt/local/bin/perl`
I recommend changing the group of those files to Apache's group ('www' on
OSX I believe) and making the files group writable but not writable by
everyone. It's safer that way.
Hi, all.
I've just started to use TextMate & I'm wondering how to get it to recognise
the Ruby version I use.
I've altered my $PATH in TM's Prefs to reflect the change, Terminal shows:
[Mon Nov 14 20:00:55 dobbin@darkstar:~ ] $ which ruby
/usr/local/rvm/rubies/ruby-1.9.3-p0/bin/ruby
but running the example script even with a shebang line returns this:
#!/usr/local/rvm/rubies/ruby-1.9.3-p0/bin/ruby
RUBY_VERSION # => "1.8.7"
data = %w[one two three four five]
results = data.select { |n| n[0] == ?t } # => ["two", "three"]
Any help appreciated.
Cheers,
Phil...
--
Nothing to see here... move along, move along
Hello,
I want to use quantlib within TextMate.
My Shell Variables are:
PATH =
/opt/local/bin:/opt/local/sbin:
/Library/Frameworks/Python.framework/Versions/2.6/bin:
/usr/bin:
/bin:
/usr/sbin:
/sbin:
/usr/local/bin:
/usr/X11/bin:
/usr/texbin:
/opt/local/include:
/opt/local/lib:
and
TM_CXX = -I/opt/local/include
When I test quantlib with
g++ -I/opt/local/include/ -I/opt/local/include/boost testQuantlib.cpp -o testQuantlib -L/opt/local/lib/ -lQuantlib
it compiles fine.
How must I set the shell variables to use quantlib to compile with TextMate?
Thanks for the answer,
Andre
I have 20,000+ lines that I need to select-all and then be able to
insert a special character like ^ not normally found within the
document, at the beginning of every line, to allow me to then use Find
and Replace to insert a common string at the beginning of each line.
After doing this, I also need to be able to do the same thing at the
END of each line of text and run find and replace with a different
string on all 20,000 lines.
I know how to use Find & Replace.
What I don't know and what I can't locate in the manual document is
how to select all 20,000 lines and insert a character at the beginning
and end of each of those lines.
What is the most efficient way of doing this?
Thanks in advance for any help!
--
Adam Boettiger
adam(a)adamboettiger.com
Portland, Oregon
>
> I have 20,000+ lines that I need to select-all and then be able to
> insert a special character like ^ not normally found within the
> document, at the beginning of every line, to allow me to then use Find
> and Replace to insert a common string at the beginning of each line.
> After doing this, I also need to be able to do the same thing at the
> END of each line of text and run find and replace with a different
> string on all 20,000 lines.
> What is the most efficient way of doing this?
I think using sed might be more efficient since TextMate's handling of
large files can be a little unreliable sometimes. Press option+command+r
to bring up the Filter Through Command dialog and put this in the Command
input box:
sed -e "s/^/\^/" -e "s/$/\^/"
That is, substitute a literal ^ (\^) for a beginning-of-line (^), and do
the same for end-of-line ($).
That might be faster than the Find and Replace dialog on a big file. You
can also store it as a command if you end up doing it a lot.
I hope that helps,
Brandon
tracing a message to source.
the message in question is:
Type your password to allow TextMate to make changes.
the heart of the message is as i would see it is:
((((((( to allow ))))))))))) (((((( TextMate ))))))) ((((((( make
changes )))))))))
i do apologize for the excess use of parentheses to emphasize.
i have been dealing with this situation for a while now. in a few forums.
any way , the words the code developer used to convey a message are:
" to allow TextMate to make changes "
what is text mate changing ???
it would be nice to know.
this situation revolves around the action of placing a textMate file in
XAMPP htdocs.
I could chase answers over here and chase answers over there. etc.
but what would be really cool is if the code developer could stimulate some
reference to a file or a process or some other lead.
are there any command line utilities that could show the last known file
that executed action to the screen.
Thank you.
I'm new to textmate, so...
I was trying to figure out why the syntax highlighting in perl sucked so
much, when I realized it was getting messed up by some regex code.
Paste this into file (e.g. test.pl) and view in textmate. Does the 2nd
function hilight correctly? It is the /\\/ regex I think - comment the
first one out and watch the hilighting change.
sub fn() {
# some perl code
my $f = shift;
if( $f =~ /\\/ ) {
my $var = "Hello";
}
}
sub fn2() {
# some perl code
my $f = shift;
if( $f =~ /\\/ ) {
my $var = "Hello";
}
}
Thoughts? I am using textmate Version 1.5.10 (1631)
thanks -thomas
Hello everyone!
I discovered Textmate this summer and can't let go of it ^^
I'd like to use the Ada bundle, but when I try to run my program, textmate tells me "gnatmake: command not found". I suppose I did something wrong with the config.
besides, when I run the script given on the bundles page, I get
2011-11-09 09:49:49.095 osascript[1760:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
Ada comDoes anyone know how I could fix this?
thanks a lot for your help
Iwanami
Hi all,
I'm next to text mate and so far I'm loving it! There's one thing though
that I miss from BBedit, and it's likely there i just can't find it so if
anyone is kind enough to help me that would be nice.
In bbedit while writing CSS there's a function called : Context-sensitive
tag and attribute completion while typing ; basically it's simply suggesting
you word/function while you type so you can simply select it instead of
typing the whole thing. It's is slightly faster but what it liked more was
the fact that this way you avoid attribute typo. So is there something
similar in textmate? I'm still new to the whole bundle thing but I know
textmate get a lot out of it.
Thanks
--
View this message in context: http://old.nabble.com/Attribute-completion-while-typing-tp32805992p32805992…
Sent from the textmate users mailing list archive at Nabble.com.
Im trying to create a bundle for GAMS and when wanting to do syntax
highlighting i have an issue. Several of the commands in GAMS starts with a
$ sign, e.g. $INCLUDE, so how do i get the editor to recognize this? I've
tried doing the litteral \$ but it wont recognize it in my syntax.
{ name = 'keyword';
match = '^\b((?i)(\$INCLUDE))\b';
}
What am i doing wrong?
I user Textmate for all my Ruby work. It would be really great if Textmate 2.0
comes with Ruby 1.9 instead of using the default 1.8.7 that comes installed
with OSX these days. Please consider embedding Ruby 1.9 in Textmate 2!
You could of course provide an option for using that or the version of Ruby
installed with the system.
So, I'm new to my Mac, FileZilla and TextMate.
I have set TextMate as my editor in FileZilla but when I try to save it the
Mac just goes, "Doh!" and won't save my edits.
I notice that the red close jewel has a dot inside it and not a cross.
I'm perplexed.
Thanks
Martin
PS I think this probably has to do with file permissions. The files were
downloaded from an existing site.
--
View this message in context: http://old.nabble.com/Open-TextMate-from-FileZilla-and-I-Can%27t-Save-my-Ed…
Sent from the textmate users mailing list archive at Nabble.com.
> Macfusion
Unfortunately I've lost data using Macfusion when TextMate beachballs
looking through the remote filesystem. ForkLife has a ridiculous amount of
awesome, such as easily creating 'synclets', standalone app files that will
sync directories when you run them, and 'droplets' which are apps that you
can drop a file onto to upload it to a specific remote location. You can
mount any remote directory as a local volume (a la MacFusion but more
powerful). It really makes working with remote files as transparent as
working with them locally, you can transfer or sync remote directories
against each other with a bunch of options (such as includes/exclude by
regex filter & more) and it has a great visual diff/merge tool also. I'm
usually all for open source but this program saves me so much time that
using anything else would cost me way more than $30. It's a one-man-shop
(like a lot of the best software ;) ) so I feel good about giving him my
support.
Brandon
> So, I'm new to my Mac, FileZilla and TextMate.
Might I recommend ForkLift <http://www.binarynights.com/>. $30 of the
time-savingest dollars I've ever spent (and I really try to use open source
mostly). Makes it super easy to open a lot of remote files and edit them
without any hassel. Tons of great features, couldn't imagine my coding
life without it.
On Tue, Nov 1, 2011 at 5:00 AM, <textmate-request(a)lists.macromates.com>wrote:
> 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/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. Open TextMate from FileZilla and I Can't Save my Edits (martcol)
> 2. Re: Open TextMate from FileZilla and I Can't Save my Edits
> (tamouse mailing lists)
> 3. Re: Open TextMate from FileZilla and I Can't Save my Edits
> (martcol)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 31 Oct 2011 10:55:08 -0700 (PDT)
> From: martcol <martcol(a)tiscali.co.uk>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Open TextMate from FileZilla and I Can't Save my
> Edits
> Message-ID: <32753442.post(a)talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> So, I'm new to my Mac, FileZilla and TextMate.
>
> I have set TextMate as my editor in FileZilla but when I try to save it the
> Mac just goes, "Doh!" and won't save my edits.
>
> I notice that the red close jewel has a dot inside it and not a cross.
>
> I'm perplexed.
>
> Thanks
>
> Martin
>
> PS I think this probably has to do with file permissions. The files were
> downloaded from an existing site.
> --
> View this message in context:
> http://old.nabble.com/Open-TextMate-from-FileZilla-and-I-Can%27t-Save-my-Ed…
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 31 Oct 2011 16:51:43 -0500
> From: tamouse mailing lists <tamouse.lists(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Open TextMate from FileZilla and I Can't Save my
> Edits
> Message-ID:
> <CAHUC_t9FtLxsWzPmoB4Rug8p1Vze90u66gTZFz+yznpFaEyNAA(a)mail.gmail.com
> >
> Content-Type: text/plain; charset=UTF-8
>
> On Mon, Oct 31, 2011 at 12:55 PM, martcol <martcol(a)tiscali.co.uk> wrote:
> >
> > So, I'm new to my Mac, FileZilla and TextMate.
> >
> > I have set TextMate as my editor in FileZilla but when I try to save it
> the
> > Mac just goes, "Doh!" and won't save my edits.
> >
> > I notice that the red close jewel has a dot inside it and not a cross.
> >
> > I'm perplexed.
> >
> > Thanks
> >
> > Martin
> >
>
> I would, at a guess, say you're probably saying "TextMate.app" (or
> maybe without the .app part).
>
> What you want is to specify the command line program mate or matewait
> which runs separately and hooks up to the TextMate application when
> invoked.
>
> See: http://manual.macromates.com/en/using_textmate_from_terminal.html
> (which is really about calling TextMate from other appliations)
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 1 Nov 2011 00:17:55 -0700 (PDT)
> From: martcol <martcol(a)tiscali.co.uk>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: Open TextMate from FileZilla and I Can't Save my
> Edits
> Message-ID: <32757168.post(a)talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
>
>
> tamouse mailing lists wrote:
> >
> >
> > I would, at a guess, say you're probably saying "TextMate.app" (or
> > maybe without the .app part).
> >
> > What you want is to specify the command line program mate or matewait
> > which runs separately and hooks up to the TextMate application when
> > invoked.
> >
> > See: http://manual.macromates.com/en/using_textmate_from_terminal.html
> > (which is really about calling TextMate from other appliations)
> >
> > _______________________________________________
> > textmate mailing list
> > textmate(a)lists.macromates.com
> > http://lists.macromates.com/listinfo/textmate
> >
> >
> thank you tamouse
>
> I read the page on opening TextMate in another app. With FikeZilla there
> is
> already a way to get that. It's in preferences and I just navigated to
> >applications>TextMate. TextMate opens ok but once it is open it won't let
> me save any edits.
>
> Anyway, since posting I have worked out that it's a permissions thing. So,
> I
> don't think it's actually a TextMate problem but more about me not
> understanding my mac!
>
> The files are site files and are downloaded from an existing site. Somehow
> the mac thinks I don't have the permissions to edit them.
>
> Martin
>
> --
> View this message in context:
> http://old.nabble.com/Open-TextMate-from-FileZilla-and-I-Can%27t-Save-my-Ed…
> Sent from the textmate users mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
> End of textmate Digest, Vol 42, Issue 1
> ***************************************
>
Hi, I use Edit in TextMate a lot but recently it simply disappeared from my
menus. I have been using 10.6.8 for a while, the last system related
software I installed was the 'OS X Server Administration' pack if that is
known to cause issues.
I reinstalled the input manager with the command TextMate -> Install Edit
in TextMate, then tried moving /Library/InputManagers to
~/Library/InputManagers to see if that made a difference. I restarted
first my applications, and then my computer after each of those steps to
see if that worked.
Unfortunately it has not fixed it. Does anyone know what might be
disabling my InputManagers? Or if someone has a better solution for
writing Language Grammars I would be happy to hear it.
Thanks!
Brandon
*************************************************************************
*** We apologise if you receive this Call for Papers more than once ***
*************************************************************************
Call for Papers/Abstracts
PracTeX Journal: Issue 2012-1
Issue theme: "LaTeX in the IT World"
http://www.tug.org/pracjourn/
ISSN 1556-6994
Submissions due January 31, 2012 (extended)
Dear LaTeX and TeX Users,
The PracTeX Journal (the International Online LaTeX/TeX Journal) has
been publishing articles since 2005. Since its first edition, TPJ has
presented a wide range of articles on the practical use of LaTeX and
TeX. During these years, we have worked hard to present articles that
are useful to our readership. Among these articles are ones that
describe tools and techniques that can be used for teaching or
commercial purposes.
The PracTeX Journal brings together researchers and practitioners from
diverse fields, such as mathematics, physics, computer science, social
sciences, business, education, and others. Our purpose is to present
ideas on the use of LaTeX and TeX among different disciplines and
platforms, through the sharing of techniques as well as examples of
LaTeX and TeX markup.
+++++++++++
Highlights
+++++++++++
The PracTeX Journal 2012-1 issue has the theme "LaTeX in the IT
World".
The goal of this issue is to provide opportunities for technical
collaboration beyond academic walls, and present ideas on the use of
tools for education, teaching, classroom and commercial purposes. We
are looking for articles that discuss tools and techniques for using
LaTeX and TeX in IT, including making web page content, pulling
documents from databases and spreadsheets, managing programming
projects and source code, and other areas where LaTeX and automation
meet. Actual examples and LaTeX sources and markup are encouraged.
+++++++++++++++++++
Topics of Interest
+++++++++++++++++++
We look forward to receiving your paper submission by next January,
with innovative contributions in any of the TPJ main topic areas.
The topics and areas include, but not limited to:
- Tools that assist the students/authors in preparing
graphics, indexes, bibliographies, and other parts of documents;
- Text manipulation tools;
- Tutorials;
- Short videos;
- Free or almost free tools;
- Teaching texts;
- Homework styles;
- Cross-platform tools.
We encourage you to submit original papers describing your experiences
using LaTeX and TeX tools in an academic setting, and also papers on
tool development work in progress or completed.
+++++++++++++++++++
On-Line Submissions
+++++++++++++++++++
If you would like to submit an article or technical note for
publication please contact the editors at mailto:pracjourn@tug.org.
All submitted papers will be reviewed by the Production Editors on the
basis of technical quality, relevance, significance, and clarity.
All authors of accepted articles will be kept apprised of their
article's progress.
Please see http://tug.org/pracjourn/submit.html for the Journal's
guidelines.
+++++++++++++++
Important Dates
+++++++++++++++
- Paper submission deadline: January 31, 2012 (extended)
- Acceptance notification: Before Feb. 15, 2012
- Publication date: March, 2012
++++
News
++++
Submissions in any language are acceptable. Since its beginning in
2005, The PracTeX Journal has accepted papers not only in English but
also Portuguese, Spanish, Dutch, German, Norwegian, Chinese, Korean,
Romanian, and Italian. However, please contact the editors in
English, and submit an English abstract as well.
Don't hesitate to contact me should you have any questions.
Best Regards,
Francisco Reinaldo
2012-1 Issue Editor
mailto:pracjourn@tug.org
Hi,
This is my first post.
When using TM the auto bracket closing feature is great but I wonder if it's
possible to change it's behaviour slightly.
What I get currently:
function {
}
What I would like:
function
{
}
I appreciate that hitting return after typing 'function' would achieve me
this but is there a way of TM taking care of this?
--
View this message in context: http://old.nabble.com/Backet-autocomplete-tp32730304p32730304.html
Sent from the textmate users mailing list archive at Nabble.com.
> The second one was, in the same problem, I wanted to combine all the lines
> in a file into one long line - I couldn't find a "remove line endings"
> command. How would I do this?
You can also press alt+enter to insert a literal newline (or tab with
alt+tab) into the find box and do replace all.
Hi,
Been using TextMate for a while, but I came across two simple things that I
couldn't figure out how to do. FIrst, I had a text file that I had to find a
specific character position in the file.. ie. character 2456. There's no
way, that I can see, to go to that specific character position. The status
bar at the bottom shows lines / character, but not absolute character
position.
The second one was, in the same problem, I wanted to combine all the lines
in a file into one long line - I couldn't find a "remove line endings"
command. How would I do this?
Thanks!
John.
Hello,
HELP! I have recently had to re-enter my registration key in another
version of Textmate on my MAC laptop.
But now when I edit (in LaTeX but this problem is independent of the
bundle), instead of Textmate automatically highlighting a single,
entire line (under preferences), Textmate only underlines the current
line according to the chosen highlight color. The cursor marker is
also visible, as a blinking underscore. How can I reset to the my
earlier setting where the actual line is completely highlighted? I
have tried all color and theme combinations.
Thanks a lot,
Matthew
Hi there,
If some variable starts with "C", the whole line which contains that
variable and where it at the very first place highlighted as comment. I
suppose it comes from old F77 style, where C denotes comment, but it's
not necessary now. Is there any way to fix it? My current way-around is
to put single space before that variable, but in this case overall code
doesn't look as nice as before.
Thanks.
--
Kaster Might
Hi
I'm doing some Objective-C exercises in TextMate. Up until now, I've
put everything (interface, implementation and main) into one file and
hit cmd-R (presumably activating the C bundle's Run command) to see
the output. Now I want to use separate files, with the #import
command. Unfortunately, when I try this, I get an error about how my
class can't be found. Here's the code :
#import "Rectangle.h"
int main (int argc, char *argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
Rectangle *rectangle = [[Rectangle alloc] init];
[pool drain];
return 0;
}
And the error it gives:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Rectangle", referenced from:
objc-class-ref in ccccStDD.o
ld: symbol(s) not found for architecture x86_64
I understand that I can do this in Xcode, or using the terminal, but
since I'm making quick changes, I want to see the results quickly.
Making a change and hitting cmd-R let me do this easily.
I looked at the Xcode bundle, which also has a "Run" command, but it
seems to require an Xcode project to work.
Is there a way to get my files to link automatically before running? Thanks.
Nevan
Dear all,
thanks to some threads in the mailing list, i got a project drawer
showing me the file status of my git stuff.
But I seem to recall that it was also possible to get git actions
reachable via right-click somehow? I could not make that work so far.
Any hints?
Best regards,
Michael
>
> #!/usr/bin/env ruby -wKU
> require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes"
> ?
> TextMate.exit_show_tool_tip("Hello world")
That is exactly what I was looking for. Thank you so much.
Brandon
On Sun, Oct 16, 2011 at 5:00 AM, <textmate-request(a)lists.macromates.com>wrote:
> 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/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: Click to Highlight Opening and closing tags (Allan Odgaard)
> 2. Help with Ruby command (Brandon M Fryslie)
> 3. Re: Textmate not previewing in Firefox 7 (Michael Sheets)
> 4. Re: Help with Ruby command (Allan Odgaard)
> 5. Re: boost library (Andre de Boer)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 16 Oct 2011 09:46:09 +0200
> From: Allan Odgaard <mailinglist(a)textmate.org>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Click to Highlight Opening and closing tags
> Message-ID: <FA1FB4FC-A7EE-40E3-AEC6-8CC2C44F55D3(a)textmate.org>
> Content-Type: text/plain; charset=windows-1252
>
> On 30 Sep 2011, at 02:50, Basil Babaa wrote:
>
> > The following ticket was opened [?] Is there any news of status
>
> There are a lot of open tickets given that TextMate 1.x hasn?t seen new
> features in years.
>
> There has recently been news that there will be an alpha of 2.0 before
> Christmas which should close some tickets, but I?m not going into specifics.
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 16 Oct 2011 01:39:55 -0700
> From: Brandon M Fryslie <bmf(a)email.arizona.edu>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Help with Ruby command
> Message-ID:
> <CAPjYj-COm=Rw=N=spwU8Zh56oiLW5kNUV++WUN4xdx3qOAxTMw(a)mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi, I would like my Ruby command to replace the selected text, or show a
> tooltip in some situations. I see there is a command for doing this with
> bash: exit_show_tool_tip. However this:
>
> puts `exit_show_tool_tip "Error message"`
>
> isn't working for me. Is there some way to do this from inside a Ruby
> command?
>
> Thanks
> Brandon
>
Hi,
I am using the wonderful Rdaemon-bundle in TextMate.
But now I stumbled over a big problem parsing code to the Rdaemon
(by selecting the code and pressing CMD+T or selecting "execute selection").
It is a rather long script and some of the lines at the end of the script do not get parsed correctly.
They kind of get completely screwed up leading to error messages.
For example, this line in the original code:
for(i in 1:length(x)) { prt_reduced[,x[i]] <- reorder(prt_reduced[,x[i]], c(2,1)) }
looks like this after pressing CMD+T:
> for(i in 1:length(x)) { prfor(i in 1:length(x)) { prfor(i in 1:length(x)) { prfor(i in 1:egory
Error: unexpected 'in' in "for(i in 1:length(x)) { prfor(i in"
It seems to have something to do with the length of the script.
When I just execute this line, or chunks of code step by step, it works fine.
But if I try to run the whole script (with CMD+A, CMD+T) strange things happens at the end of the script (like this screwed up line above).
If I try to make the code smaller (delete lines etc.), it seems like different lines get affected by this strange behavior
(at it always happens at the end of the script).
So it seems to have nothing to do with particular lines of codes, but as I said, the length of the script.
As if at some point the parsing of code to the Rdaemon doesn't work anymore (perhaps something like buffer-overflow?).
hope someone can help!
thanks.
Hi, I would like to convert the tmlanguage format into the plist format that
is used by the bundles in the repo (writing a command for to be used for
writing languages that will render some text to html using ultraviolet so I
can test the language).
How can I accomplish this?
Thanks!!!
Brandon
Hello,
How can I include the boost library in a c++ program with TextMate?
So I can run programs like using TextMate.
#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>
int main()
{
using namespace boost::lambda;
typedef std::istream_iterator<int> in;
std::for_each(
in(std::cin), in(), std::cout << (_1 * 3) << " " );
}
Thanks for the reaction,
Andre
Hi, I would like my Ruby command to replace the selected text, or show a
tooltip in some situations. I see there is a command for doing this with
bash: exit_show_tool_tip. However this:
puts `exit_show_tool_tip "Error message"`
isn't working for me. Is there some way to do this from inside a Ruby
command?
Thanks
Brandon
Hi,
I'm new to both Textmate, web dev and the list. I was able to preview via
the HTML Bundle to Firefox 6, however I can't preview in FF7.
Any help would be great! Thanks.
The following ticket was opened as follows: Status: open, reported by Ryan Cornelsen on 2009-08-20 (request)
It reports as currently still open after 2 years…
Is there any news of status update on this request, as I would too like to re-iterate the request as it is an invaluable option…
Regards,
Basil
I've upgraded to Lion yesterday and I've configured TextMate to use a dark background. Lion's new hidden scroll bars are now unusable, I cannot see them when scrolling.
While I have enabled the scroll bars by default now (and there are good reasons why), TextMate should work with the default configuration of the OS. Will there be an update that makes TextMate more amenable to Lion's new UI elements?
Max
Hi again,
After playing around with it it only works if there is nothing before it. When I start a line with then I have 2 different colors one for % and one for the name of the array.
But the moment I put even a space before the %array or declare it or it's inside a parenthesis of a function then it does not work it gets a generic color...
Thanks for your help in advance.
Best,
John
Message: 6
Date: Fri, 14 Oct 2011 04:54:17 -0400
From: DZ-Jay <dz(a)caribe.net>
To: TextMate users <textmate(a)lists.macromates.com>
Subject: [TxMt] Re: Coloring Syntax
Message-ID: <10089806-887A-43E8-BED0-241FD2E1BEAA(a)caribe.net>
Content-Type: text/plain; charset=us-ascii
Hello John,
You can match multiple tokens on the same line and assign them to different coloured groups like this:
{ name = 'meta.entity.ksp';
match = '^(\%)([a-zA-Z0-9_]\w*)';
captures = {
1 = { name = 'punctuation.ksp'; };
2 = { name = 'entity.ksp'; };
};
},
Notice that both tokens to be identified have parentheses around them in order to be captured. The "captures" list follows standard regexp convention, that is, 0 is the matched string, 1 is the first matched group in parentheses, 2 is the second matched group, and so on.
Not specifying the "captures" list (like in your example) is the same as using capture "0," which is the entire matched string.
In my example, I assigned a different syntax scope identifiers to each token, allowing me to colour them individually.
By the way, the character class "[a-zA-Z0-9_]" is exactly what "\w" represents, so you could shorten your pattern to,
match = '^(\%)(\w+)';
which matches at least one, possibly more, contiguous word characters.
I hope this helps.
dZ.
On Oct 11, 2011, at 13:27, John Relosa wrote:
> Hello,
>
> I have a question about syntax coloring. I am using the below code to signify that this is let's say an entity scope
>
> {name = 'entity.ksp';
> match = '(\%)[a-zA-Z0-9_]\w*';
> },
>
> % is actually the signifier for a variable array so when I go to the preferences and change the scope to entity then those words that start with %array get a certain color.
>
> The problem is that the whole word including the "%" symbol gets colored.
>
> So here is my question to the textmate gurus.
>
> Is there a way to have the "%" symbol a different color and the word array a different color?
>
> What would be the code to accomplish that. Any pointers or ideas would be appreciated.
>
> Thank you.
>
> John
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
Message: 7
Date: Fri, 14 Oct 2011 05:06:44 -0400
From: DZ-Jay <dz(a)caribe.net>
To: TextMate users <textmate(a)lists.macromates.com>
Subject: [TxMt] Re: problem with Lion's new hidden scroll bars
Message-ID: <7B5F91DF-B98E-429D-A2F1-A839B2E188AF(a)caribe.net>
Content-Type: text/plain; charset=us-ascii
Hello,
I see in that FAQ that the scroll-bars visibility issue is indeed a "frequently asked question," but it doesn't appear to be even a "singularly answered question."
Is there a work-around?
By the way, thanks for the link. TextMate not re-opening its windows on restarting was driving me crazy!
dZ.
On Jul 21, 2011, at 08:25, Luc Heinrich wrote:
> On 21 juil. 2011, at 14:05, Max Lein wrote:
>
>> I've upgraded to Lion yesterday and I've configured TextMate to use a dark background. Lion's new hidden scroll bars are now unusable, I cannot see them when scrolling.
>
> http://wiki.macromates.com/Troubleshooting/Lion
>
> --
> Luc Heinrich - luc(a)honk-honk.com
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
End of textmate Digest, Vol 41, Issue 11
****************************************
Hi dZ,
Thanks for your help.
At first this didn't work in my bundle even though it should, so I created a new generic bundle besides the generic keyword and string, I pasted the code you wrote and it works
ONLY if the %array[] starts at the beginning of the text. If I need to declare it (in my syntax: declare %array[16] or if it's inside a function as an argument or parameter) then it does not work...
Even then that (starting the %arr[] in the start of a line) does not work in my bundle either obviously it has other code that might be conflicting...
Unfortunately I do not know enough to fix it myself so any input or help is greatly appreciated.
This question expands to the rest of the syntax of my language:
$variable
@strings_variable
!string_array etc...
but once I figure out how to color the signifiers different for one then the rest should be easy.
Thanks,
John
-------------------------------------------------
Hello John,
You can match multiple tokens on the same line and assign them to different coloured groups like this:
{ name = 'meta.entity.ksp';
match = '^(\%)([a-zA-Z0-9_]\w*)';
captures = {
1 = { name = 'punctuation.ksp'; };
2 = { name = 'entity.ksp'; };
};
},
Notice that both tokens to be identified have parentheses around them in order to be captured. The "captures" list follows standard regexp convention, that is, 0 is the matched string, 1 is the first matched group in parentheses, 2 is the second matched group, and so on.
Not specifying the "captures" list (like in your example) is the same as using capture "0," which is the entire matched string.
In my example, I assigned a different syntax scope identifiers to each token, allowing me to colour them individually.
By the way, the character class "[a-zA-Z0-9_]" is exactly what "\w" represents, so you could shorten your pattern to,
match = '^(\%)(\w+)';
which matches at least one, possibly more, contiguous word characters.
I hope this helps.
dZ.
On Oct 11, 2011, at 13:27, John Relosa wrote:
> Hello,
>
> I have a question about syntax coloring. I am using the below code to signify that this is let's say an entity scope
>
> {name = 'entity.ksp';
> match = '(\%)[a-zA-Z0-9_]\w*';
> },
>
> % is actually the signifier for a variable array so when I go to the preferences and change the scope to entity then those words that start with %array get a certain color.
>
> The problem is that the whole word including the "%" symbol gets colored.
>
> So here is my question to the textmate gurus.
>
> Is there a way to have the "%" symbol a different color and the word array a different color?
>
> What would be the code to accomplish that. Any pointers or ideas would be appreciated.
>
> Thank you.
>
> John
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
Message: 7
Date: Fri, 14 Oct 2011 05:06:44 -0400
From: DZ-Jay <dz(a)caribe.net>
To: TextMate users <textmate(a)lists.macromates.com>
Subject: [TxMt] Re: problem with Lion's new hidden scroll bars
Message-ID: <7B5F91DF-B98E-429D-A2F1-A839B2E188AF(a)caribe.net>
Content-Type: text/plain; charset=us-ascii
Hello,
I see in that FAQ that the scroll-bars visibility issue is indeed a "frequently asked question," but it doesn't appear to be even a "singularly answered question."
Is there a work-around?
By the way, thanks for the link. TextMate not re-opening its windows on restarting was driving me crazy!
dZ.
On Jul 21, 2011, at 08:25, Luc Heinrich wrote:
> On 21 juil. 2011, at 14:05, Max Lein wrote:
>
>> I've upgraded to Lion yesterday and I've configured TextMate to use a dark background. Lion's new hidden scroll bars are now unusable, I cannot see them when scrolling.
>
> http://wiki.macromates.com/Troubleshooting/Lion
>
> --
> Luc Heinrich - luc(a)honk-honk.com
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
End of textmate Digest, Vol 41, Issue 11
****************************************
Hello,
I have a question about syntax coloring. I am using the below code to signify that this is let's say an entity scope
{name = 'entity.ksp';
match = '(\%)[a-zA-Z0-9_]\w*';
},
% is actually the signifier for a variable array so when I go to the preferences and change the scope to entity then those words that start with %array get a certain color.
The problem is that the whole word including the "%" symbol gets colored.
So here is my question to the textmate gurus.
Is there a way to have the "%" symbol a different color and the word array a different color?
What would be the code to accomplish that. Any pointers or ideas would be appreciated.
Thank you.
John
I thought I would give ctags in Textmate a try. I installed the TmCodeBrowser.tmplugin and got stuff in the CodeBrowser window only for C. ctags is supposed to work for lots of languages so I tried Pascal and Python but the CodeBrowser window remained empty.
To attempt further failure, I downloaded the ctags source and an Ada language extension for ctags. I did the minor editing required of the ctags source to incorporate the Ada thing and built it. It was installed in /usr/local/bin so I moved it to /usr/bin (after re-naming the ctags that was originally there) because /usr/bin appears before /usr/local/bin on my PATH.
Same results--C only.
I can run ctags on an Ada file and a tags file is generated in the same directory that looks like it has lots of relevant stuff in it, so why doesn't the TmCodeBrowser.tmplugin pick it up?
Ideas?
Jerry
I forked sql.tmbundle on github, installed it in my Bundles directory,
and started editing the syntax via the Bundle Editor. They worked,
and I committed and pushed the changes; they ended up in a .tmDelta
file, which sounds right. But a co-worker who cloned the repository
isn't able to install it; TextMate complains that info.plist is
corrupt.
Meanwhile, TextMate somehow deleted all BUT the info.plist and tmDelta
files. Is that normal, too? I pushed that version, but he gets the
same corruption error there. We're both on 1.5.10 (1631), OSX 10.6.8.
Jay Levitt
Hi
I mistyped my email address during purchase, and my license key was
forwarded to someone else email. I sent in requests for another license key,
but I have not received any keys yet. Would you please help me renew my
license key?
The mistyped email was csc326(a)gmail.com, and my correct email is this email(
csc823(a)gmail.com).
Thanks,
Cuong Cu.
Actually, not a newbie, been using Textmate for years but
I'm wondering about something I'm seeing that's obviously
an error or warning indicator.
Bundle: PHP
Version: 1.5.10
Database: MySQL
OS: some flavor of Linux - someone else is hosting
Here's an example of the code
$HTTP_POST_VARS['guest0_zipcode']=$row[9];
Under the string "guest0_zipcode" is dotted red/white
which I assume to be an error or warning but I have no
clue what it really means. I'm baffled, can't find it
in the manual, (or I've completely overlooked it).
I'm using about 20 other variables with the same prefix,
guest0_ (yes, that's a zero, not an OH) and none of them
have the dotted line under them.
Another tidbit - every use of the user-defined variable "zipcode"
is flagged with this indicator, e.g.
$HTTP_POST_VARS['guest0_zipcode']=$HTTP_POST_VARS['zipcode'];
and
$HTTP_POST_VARS['zipcode'] . "',
Is there something magical about the word zipcode in Textmate? I'm
completely stumped.
Anyone have any insight to what's going on?
thanks
Hi,
Is it possible to disable the help-overlay for functions in the R / Rdaemon package?
(so if i start to write a function like mean( … I get a small yellow overlay window with the possible arguments etc.)
It sometimes takes really long on my machine till the overlay appears after I type a function
and during that time, I can't do anything except to wait.
Also, when I mistype a function-name, it seems like this help mechanism is searching even longer since it probably loops through all the function-names.
This half-second in which I can't do anything is kind of annoying and most of the time I don't really get important informations through this overlay window.
thanks!
Hi TM users,
I've never done revision control before, and I don't know where to
start. I need something I can use on OS X, and works well with TM. If
I Google for "OS X revesion control" I get many suggestions including
Mercurial, CVS, GIT, Subversion, Bazaar.
I really have no idea where to start. I'd welcome some suggestions, or
links to documentation I should perhaps read.
Thank you for any help you can give.
--
Justin Catterall www.masonsmusic.co.uk
Director T: +44 (0)1424 427562
Masons Music Ltd F: +44 (0)1424 434362
For full company details see our web site
Hi, I am using Mr. Knops' excellent TM CodeBrowser plugin. It doesn't seem
to work right out of the box with my Haskell code. I know it uses the CTags
program to generate the tags, what is the best way to get the tags working
with Haskell?
Thanks for your help,
Brandon
>
> Is MAMP relatively similar to XAMPP?
MAMP stands for Mac, Apache, MySQL, PHP
It is an adaptation of the phrase "LAMP stack" which is Linux, Apache,
MySQL, PHP.
OS X has Apache and PHP built in. To turn on Apache, check Web Sharing in
the Sharing panel of System Preferences.
To turn on PHP, uncomment a line in the file /etc/apache2/httpd.conf
Change:
#LoadModule php5_module libexec/apache2/libphp5.so
To:
LoadModule php5_module libexec/apache2/libphp5.so
For MySQL, install the package manager
Homebrew<http://mxcl.github.com/homebrew/>,
and then at the terminal type:
brew install mysql
It's that easy!
>
>On 4 Oct 2011, at 13:46, Davide Rambaldi wrote:
>
>> * free open source hub: github.com , there is also a GUI for OSX
>>(personally I prefer to use the Terminal: git is simple!)
>
>Github has a ton of mindshare - and its a good place to work against.
>However Mercurial has BitBucket - not as well known, but its a rough
>equivalent - https://bitbucket.org/ (also appears to be a little less
>locked to one VCS).
Interesting thing with Bitbucket is they just announced Git support as
well :)
Not a real announcement, so will appreciate if you refrain from linking to this, but requests for info about the future have been plenty, so I figured I should let you know that there will be a public alpha of Avian before christmas.
Hi, in Lion 10.7 seems there is no way to resize the preference panel, that is a problem for the Advanced --> Shell Variables TAB (I have a very long PATH)….
Best Regards
Davide
> Hi, in Lion 10.7 seems there is no way to resize the preference panel,
that is a problem for the Advanced --> Shell Variables TAB (I have a very
long PATH)?.
When I click on the path to edit the variable, I can scroll my cursor from
the beginning to the end. It isn't incredibly convenient being so small,
but you could probably do it with no problem. Alternatively, you could edit
the path somewhere else and paste it in there rather than mess with it
within the preferences dialog itself.
Brandon
On Wed, Sep 28, 2011 at 5:00 AM, <textmate-request(a)lists.macromates.com>wrote:
> 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/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. R bundle have a BUG? (Davide Rambaldi)
> 2. Re: R bundle have a BUG? (Hans-J?rg Bibiko)
> 3. Re: R bundle have a BUG? (Davide Rambaldi)
> 4. Re: R bundle have a BUG? (Hans-J?rg Bibiko)
> 5. Lion Preferences: no resize (Davide Rambaldi)
> 6. Re: Lion Preferences: no resize (Daniel Dettlaff)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 27 Sep 2011 17:06:49 +0200
> From: Davide Rambaldi <davide.rambaldi(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] R bundle have a BUG?
> Message-ID: <6C0E9953-03A6-44C4-9A0E-A3172DD05253(a)gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> Hi, first of all, congrats for your editor: is the best.
>
> Not sure where to post this problem (R devel, here, mailing list for the
> bundles?)
>
> Anyway: I am trying to use the R bundle (R statistical language).
>
> I have the following problem:
>
> - I have a script that generate a PDF multiline using plot?
>
> pdf(merge.fitting.file.path)
> print(plot(parent.fitting))
> print(plot(my.fit))
> dev.off()
>
> everything is working ok from R console or R CMD BATCH : I get back my
> multiline PDF
>
> When I run the scripts inside textMate (with cmd-R) only THE LAST PAGE of
> the pdf is recorder in the file!
>
> Can you please suggest me where to post this BUG?
>
> Thanks
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 27 Sep 2011 20:40:46 +0200
> From: Hans-J?rg Bibiko <bibiko(a)eva.mpg.de>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: R bundle have a BUG?
> Message-ID: <E2B5D226-64C4-4E60-BEA3-7DE4EBE571D6(a)eva.mpg.de>
> Content-Type: text/plain; charset=windows-1252
>
>
> On 27 Sep 2011, at 17:06, Davide Rambaldi wrote:
>
> > Not sure where to post this problem (R devel, here, mailing list for the
> bundles?)
> Here's the right place :)
>
> > I have the following problem:
> >
> > - I have a script that generate a PDF multiline using plot?
> >
> > pdf(merge.fitting.file.path)
> > print(plot(parent.fitting))
> > print(plot(my.fit))
> > dev.off()
>
>
> The easiest to check the default parameter settings for "pdf()" in a
> software environment execute:
>
> > args(pdf)
> function (file = "/tmp/TM_R/Rplot%03d.pdf", width = 8, height = 8,
> onefile = FALSE, family, title, fonts, version, paper, encoding,
> bg, fg, pointsize, pagecentre, colormodel, useDingbats, useKerning,
> fillOddEven, maxRasters)
>
>
> Here you see that the parameter "onefile" is set to FALSE which means that
> each plot will go in a separate pdf file.
>
> Please try:
>
> pdf(merge.fitting.file.path, onefile = TRUE)
>
> Kind regards,
> Hans
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 27 Sep 2011 21:41:06 +0200
> From: Davide Rambaldi <davide.rambaldi(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: R bundle have a BUG?
> Message-ID:
> <CAEn6bVKKTz=B-yuK2LAMA+9zvM20mwgJPn-GhHALVX6Qk7S=Hw(a)mail.gmail.com
> >
> Content-Type: text/plain; charset=windows-1252
>
> Ok it's working with onefile = TRUE (I look at my result trough a web
> page and I did not notice the split of pdf :-)
>
> many thanks
>
> Davide
>
> 2011/9/27 Hans-J?rg Bibiko <bibiko(a)eva.mpg.de>:
> >
> > On 27 Sep 2011, at 17:06, Davide Rambaldi wrote:
> >
> >> Not sure where to post this problem (R devel, here, mailing list for the
> bundles?)
> > Here's the right place :)
> >
> >> I have the following problem:
> >>
> >> - I have a script that generate a PDF multiline using plot?
> >>
> >> pdf(merge.fitting.file.path)
> >> print(plot(parent.fitting))
> >> print(plot(my.fit))
> >> dev.off()
> >
> >
> > The easiest to check the default parameter settings for "pdf()" in a
> software environment execute:
> >
> >> args(pdf)
> > function (file = "/tmp/TM_R/Rplot%03d.pdf", width = 8, height = 8,
> > ? ?onefile = FALSE, family, title, fonts, version, paper, encoding,
> > ? ?bg, fg, pointsize, pagecentre, colormodel, useDingbats, useKerning,
> > ? ?fillOddEven, maxRasters)
> >
> >
> > Here you see that the parameter "onefile" is set to FALSE which means
> that each plot will go in a separate pdf file.
> >
> > Please try:
> >
> > pdf(merge.fitting.file.path, onefile = TRUE)
> >
> > Kind regards,
> > Hans
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > textmate mailing list
> > textmate(a)lists.macromates.com
> > http://lists.macromates.com/listinfo/textmate
> >
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 27 Sep 2011 22:42:54 +0200
> From: Hans-J?rg Bibiko <bibiko(a)eva.mpg.de>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: R bundle have a BUG?
> Message-ID: <F1675BAF-B906-42AC-BC5F-D311979745D7(a)eva.mpg.de>
> Content-Type: text/plain; charset=us-ascii
>
>
> On 27 Sep 2011, at 21:41, Davide Rambaldi wrote:
>
> > Ok it's working with onefile = TRUE (I look at my result trough a web
> > page and I did not notice the split of pdf :-)
>
>
> ... and please note the following approach which is implemented in the R
> bundle:
>
> - each plot command will write its result into ONE pdf file (located in
> /tmp/TM_R/) automatically WITHOUT a preceding pdf() command; all generated
> pdf files (in /tmp/TM_R/) will be inserted as linked image in the HTML
> output window; that's why the parameter 'onefile' is set to FALSE as default
> - if you're using the command pdf() explicitly then the result will not be
> displayed in the HTML output window
>
> As an example one could write the following code to come up with resulting
> pdf in Preview:
>
> pdf(file='~/Desktop/x1.pdf', onefile=T)
> plot(10:1)
> plot(1:10)
> dev.off()
> system('open ~/Desktop/x1.pdf')
>
>
> or
>
>
> plot(1:3)
> plot(3:1)
> pdf(file='/tmp/TM_R/x1.pdf', onefile=T)
> plot(100:1)
> plot(1:100)
> dev.off()
>
>
>
> and click at third image to open it in Preview [third one due sorting
> Rplot00x.pdf, x1.pdf]
>
>
> Best,
> --Hans
>
> ------------------------------
>
> Message: 5
> Date: Wed, 28 Sep 2011 10:21:33 +0200
> From: Davide Rambaldi <davide.rambaldi(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Lion Preferences: no resize
> Message-ID: <A2CE293C-2442-4136-9686-6B9792803656(a)gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> Hi, in Lion 10.7 seems there is no way to resize the preference panel, that
> is a problem for the Advanced --> Shell Variables TAB (I have a very long
> PATH)?.
>
>
> Best Regards
>
> Davide
>
> ------------------------------
>
> Message: 6
> Date: Wed, 28 Sep 2011 12:23:40 +0200
> From: Daniel Dettlaff <dmilith(a)verknowsys.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Lion Preferences: no resize
> Message-ID: <1976920.346201317205421742.JavaMail.root@draCore>
> Content-Type: text/plain; charset="windows-1252"
>
>
> On Sep 28, 2011, at 10:21 , Davide Rambaldi wrote:
>
> > Hi, in Lion 10.7 seems there is no way to resize the preference panel,
> that is a problem for the Advanced --> Shell Variables TAB (I have a very
> long PATH)?.
>
>
> +1
>
Hi, first of all, congrats for your editor: is the best.
Not sure where to post this problem (R devel, here, mailing list for the bundles?)
Anyway: I am trying to use the R bundle (R statistical language).
I have the following problem:
- I have a script that generate a PDF multiline using plot…
pdf(merge.fitting.file.path)
print(plot(parent.fitting))
print(plot(my.fit))
dev.off()
everything is working ok from R console or R CMD BATCH : I get back my multiline PDF
When I run the scripts inside textMate (with cmd-R) only THE LAST PAGE of the pdf is recorder in the file!
Can you please suggest me where to post this BUG?
Thanks
Since I started using biblatex, hitting alt-esc to choose from a list of available citations in my .bib file stopped working. Is there a way to get this handy shortcut to work with biblatex?
- JW
>
> Hello,
>
> Thanks for all your help,
>
> I have installed xcode which installed g++ and now textmate works. I run
> into another problem which I have read somewhere though.
>
> Now if I have a program that requests user input with cin >> textmate after
> a Command-R does not ask for any input from the user...
>
> Any ideas on why that is and how to fix it?
>
> Thank you.
>
Like Thor said it was removed some time ago. Here is an article on how to
put it back, but I can only assume it's even less compatible with Lion. It
may be worth a shot though.
http://blog.macromates.com/2009/interactive-input/
Brandon
Tvist was something they removed because of incompatabilities with snow leopard.
Sent from Samsung tablet
John Relosa <john.relosa(a)yahoo.com> wrote:
Hello,
Thanks for all your help,
I have installed xcode which installed g++ and now textmate works. I run into another problem which I have read somewhere though.
Now if I have a program that requests user input with cin >> textmate after a Command-R does not ask for any input from the user...
Any ideas on why that is and how to fix it?
Thank you.
Best,
John
Hello,
Thanks for all your help,
I have installed xcode which installed g++ and now textmate works. I run into another problem which I have read somewhere though.
Now if I have a program that requests user input with cin >> textmate after a Command-R does not ask for any input from the user...
Any ideas on why that is and how to fix it?
Thank you.
Best,
John
>
> Just trying to manage expectations. Mostly my own, I suppose... I
> remember back in the day when it was announced that TM2 would require
> Leopard, and I hoped that my company would upgrade from Tiger in time
> for me to run it. I also note that your announcement yesterday
> specifically started with the words "Not a real announcement", so I hope
> I can be forgiven for being skeptical.
> Still, I love TM and I'm very eager to see TM2! It will be a very merry
> Christmas indeed if I can actually play with it by then!
>
Shhhh.....everyone just act naturally and stay calm, we don't want to spook
it. :)
(I get the feeling that that's a common sentiment judging by the somewhat
blithe responses)
Hi!
I've been playing with the blogging bundle earlier on, got it working
with Wordpress.
But the Wordpress installation lacked a Markdown plugin, so it wasn't
all that smooth.
Anyway, I'm currently working on a Joomla installation.
GetBundles didn't reveal anything, but Google showed traces of an
alpha version or something.
Anything usable out there now? Anything any of you guys use/recommend? :)
--
Phil :)
Hi!
I just wondered if it's possible to work in TextMate utilizing
Simplenote in a sensible way.
Notational Velocity/Nottingham is ok, but it would be nice to have
something more integrated into TextMate.
(I realize SimpleNote has a different aim than a powerful programmer's
editor, but having done weird stuff with good results in both Vim and
Emacs over the years, I thought I should ask if somebody used TextMate
in a sensible way with simplenote.)
I tried searching in GetBundles, but found nothing.
Again: Thanks for making this great editor and great bundles! :)
--
Phil
> TextMate commands are only guaranteed to work with 1.8.7 (or whatever ships
> with OS X).
> But commands use the ruby from your PATH where TM_RUBY is for user scripts,
> script validation and such.
> So it should be safe to set TM_RUBY to a different ruby.
> I don?t see any use of TM_RUBY in the GetBundles (which you mention had
> issues) found here:
> http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/ ? I
> believe an older version may have wrongly used TM_RUBY.
OK that makes sense.
For people referencing the archives: unchecking the TM_RUBY checkbox in the
TextMate env settings got it working.
Relaunching TextMate doesn?t change the command environment, so wouldn?t
> think so, but I don?t know what ?using RVM to switch Rubies? conveys.
Gotcha, good to know. AFAIK RVM just switches out some symlinks similar to
python_select & others, nothing that would mess with TM.
Thanks for all your help, Allan!
Is there any known way to force TM not to cache the CSS loaded into an HTML page when constructing the Web Preview? I find that unless I do something drastic, like rename the file entirely, changes don't update much or at all within a single editing session. Clicking the reload button does nothing. I just had it happen again, this time with a new page (referencing the same CSS as a previously-edited page) and none of the latter changes are showing up.
Thanks,
Walter
Now, on to the reason I’m here: is there any way I can get expandable
directory aliases in the project drawer? At the moment, when you
create an alias to a directory it just appears as a file in the
TextMate project drawer. The only useful thing you can do with it is
to right-click and view it in finder.
Also I can’t actually move directories into other directories in the
project drawer but that bug has been there for ages so I guess you all
already know about it.
Ollie
I just did a "git pull" and now it works with #relative#, too.
Your command is a lot faster than my AppleScript. I don't have mach experience with AppleScript and to make sure, that the file is opened, before I tell TextMate to Update it, I had to insert a 1 second-Delay each. So your fix made my hack obsolete.
Thank you!
Jan
>
> OK, I think I fixed that. Thanks for catching that; I forgot to test #relative#.
>
> https://github.com/bradchoate/html.tmbundle/commit/53490e60df073836b55407a9…
>
> So how does this compare to processing the tree of files with AppleScript? Gotta be a little faster, no?
>
> -Brad
>
>
> On Sep 19, 2011, at 1:53 AM, Jan L?bke wrote:
>
>> Hi Brad,
>>
>> I was too quick with my praise. Your script did not parse the #relative# argument correctly. If the file is in /subfolder/subsubfolder, the link to the main-page #relative#index.html should parse into ../../index.html but it turns into index.html
>>
>> Jan
>>
I'm having some issues with indentation. I'm trying to tweak the indentation for my code, but the rules I'm applying are having some odd effects.
If I manually type in the code, everything indents as expected. It works perfectly.
However, if I use the "Indent Selection" command (Opt+Cmd+[), it messes up all of the indentation. Looking through the indentation rules stack, I could not find a regex that might be causing it to behave like it is.
The indentation centers around some basic array syntax in PHP:
$bla = array(
array(
1 => 2,
array(
),
),
);
This is the output if I type in the code manually. However, if I auto-indent the code, it turns out like this:
$bla = array(
array(
1 => 2,
array(
),
),
);
Thanks for any help.
-Andrew
Hi all, I recently updated some Ruby settings on my computer which resulted
in TM_RUBY being set to my RVM version (1.9.2). Now in some bundles
(GetBundles most recently) I am getting console errors that cause the
commands to crash. Stuff like this:
/Users/bmf/Library/Application
Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:214:
syntax error, unexpected keyword_end, expecting $end
I fixed one or two commands by hand (I'm newish to ruby so not intimately
familiar with syntax differences between versions) but that is kind of a
PITA.
So, does TextMate require a specific Ruby version? When using RVM to switch
Rubies, does that require a TextMate relaunch? Trying to quickly fix this
stuff so I can get back to work, thanks for your help.
Brandon
Why isn’t there a forum for TextMate so I don’t have to be subscribed
to an entire mailing list just to talk about one thing?
Every time I want to ask something about TextMate I have to subscribe,
and then when I’m done, unsubscribe, and it’s a real pain in the ass.
Just filtering the email isn’t really an acceptable solution because I
prefer not to amass vast quantities of email I don’t care about. (I
backup my email among other things).
Sorry to be so moany but I find this really inconvenient. I guess
there must be a reason why you have it this way.
Ollie
Hi Brad,
thanks a lot! I just cloned your fork and it works as advertised.
Yes, it is very useful. I run a little website for our lions club (http://www.lions-werne.de/ - German-language only). Persistent includes help me keep the code manageable without using server side scripts like php or a complete CMS. I started the project with a windows-program called phase5.
Over the years, the site has grown to more than 100 html-files. With your update project-command, I can quickly propagate changes to the site-menu. I can imagine this is useful to other users, so the core bundle is the place to put it.
Jan
>
> Hi Jan,
>
> Hard to believe that I wrote that little bundle 5 years ago now. Glad to see some people still find it useful! I've committed a new "Update Project / Selected Files" command for it. It doesn't use AppleScript, so hopefully that will make it a little faster. And it only processes files that has the "tminclude" tag in them. Hopefully it will make it's way to the core TextMate bundle soonish. Until then, if you want to pull from my fork to try it out, you'll find it here:
>
> https://github.com/bradchoate/html.tmbundle
>
> -Brad
Hi,
I am new to Textmate. Great tool!
I love the persistent includes in the html-bundle. However I miss a method to update all files of a project at once. This topic was discussed earlier on this mailing list in 2007, but I could not find any follow up.
To work around this, I whipped up an apple script like this:
-- Update all persistent includes in Textmate
-- allow Apple Script to execute keystrokes
tell application "System Events" to set UI elements enabled to true
-- choose the textmate-project-file
set ProjectFile to (choose file with prompt "please choose Textmate-Project")
-- TODO: check, if a valid projectfile was chosen
tell application "TextMate" to open ProjectFile
tell application "TextMate" to activate
tell application "Finder" to set sourceFolder to folder of ProjectFile as alias
tell application "Finder" to set Subfolders to every folder of folder sourceFolder
-- TODO: iterate through root folder and sub-sub-folders
repeat with EachSubDir in Subfolders
tell application "Finder" to set filesList to (every file in EachSubDir whose name ends with ".html")
repeat with htmldatei in filesList
tell application "TextMate" to open htmldatei as text
-- Wait one second to make sure the file is loaded
delay 1
tell application "System Events" to keystroke "u" using {command down, control down}
-- Wait one second to make sure the update is finished
delay 1
end repeat
end repeat
-- End of Apple Script
When you run it, it prompts you for the tmproject-file and opens all html-Files in the subfolders.
Has anyone a less ugly solution or any suggestion?
Thanks
Jan
Every so often I'll be going about my business in TextMate when all of the sudden, TextMate decides to "donk" (the error sound effect) every single time a TextMate window loses focus. There seems to be no other ill effects to accompany the "donk" but it is rather annoying to listen to as I may lose focus, switching back forth between apps, several times in a matter of a minute.
The only thing that cures the "donk" issue is to restart TextMate.
Anyhow, here is the console output when the window gains focus while the "donking" is going on.
##################
9/16/11 1:11:59.819 PM TextMate: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
9/16/11 1:11:59.824 PM TextMate: (
0 CoreFoundation 0x91865e77 __raiseError + 231
1 libobjc.A.dylib 0x98447149 objc_exception_throw + 155
2 CoreFoundation 0x9176f7e6 -[__NSArrayM insertObject:atIndex:] + 150
3 CoreFoundation 0x9176f740 -[__NSArrayM addObject:] + 64
4 TextMate 0x0005c46e -[NSOutlineView(OakOutlineView) selectedItems] + 172
5 TextMate 0x000bdbb1 -[OakProjectController applicationDidBecomeActiveNotification:] + 223
6 Foundation 0x9084d51d __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 49
7 CoreFoundation 0x917a6843 ___CFXNotificationPost_block_invoke_1 + 275
8 CoreFoundation 0x91771658 _CFXNotificationPost + 2776
9 Foundation 0x9083870a -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
10 Foundation 0x9084d99e -[NSNotificationCenter postNotificationName:object:] + 55
11 AppKit 0x9713d41f -[NSApplication sendEvent:] + 3140
12 TextMate 0x000447ed -[OakApplication sendEvent:] + 159
13 AppKit 0x971d339d _NXFinishActivation + 211
14 AppKit 0x971dbfd5 _NXDoDeferredWindowOrdering + 187
15 AppKit 0x971a4cf4 -[NSWindow sendEvent:] + 4676
16 AppKit 0x9713db23 -[NSApplication sendEvent:] + 4936
17 TextMate 0x000447ed -[OakApplication sendEvent:] + 159
18 AppKit 0x970cf52b -[NSApplication run] + 1000
19 AppKit 0x97362b54 NSApplicationMain + 1054
20 TextMate 0x0012e4f2 main + 168
21 TextMate 0x0000610e _start + 216
22 TextMate 0x00006035 start + 41
)
##################
Adam Merrifield
seydoggy.com
820 Strasburg rd, Kitchener,
Ontario, N2E 2Y3, Canada
Office: 519-489-6033
Cell: 519-574-9788
I had to delete and re-post this because I wasn't subscribed to the list when
I originally posted this. Sorry for any confusion.
***
Hey, I'm new to textmate (neatbeans borked itself on me), and am hoping
someone can help me. I'm working on a very large codebase, but only a small
portion of it is relevant to my project. So I have opened the root folder of
the codebase, and then highlighted files I *don't* need and then used
right-click->"Remove Selected Files"->"Delete References". By doing this, I
can limit the list of files to only the ones relevant to me, making it a ton
easier to navigate from file to file.
The problem is, even if I use the File->"Save Project" command, this
filtering of files seems to be temporary. The next time I open that project,
all of the files I filtered out are visible again in the file-view. I have
the ProjectPlus plugin installed.
Is this expected behavior? Or is there a setting I'm missing or different
workflow I should follow in order to get textmate to remember what should be
visible in my project?
Thanks!
--
View this message in context: http://old.nabble.com/remembering-files-in-projects-tp32449259p32449259.html
Sent from the textmate users mailing list archive at Nabble.com.
This is a TextMate Bundle for viewing and editing LLVM (Low Level Virtual
Machine) assembly files (.ll). Pretty basic: language file and some
snippets.
https://github.com/hansstimer/llvm.tmbundle
>
> Even when I try to retrieve the PATH from Terminal, I still get this error.
> Has any one run into this kind of problem before??
Which error are you getting? Please post the output from these two
commands:
echo $PATH # Remember you need a $ to access shell variables
which g++
Your path should be separated by : (colons), not new lines. If you get a
valid answer to "which g++" add that to your path by appending a colon and
then that directory to the path. For example, my path (in TM) is
/Users/bmf/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
When I enter "which g++" into terminal I might get (for example)
/opt/extra/stuff/bin/g++
So my I would change my path in TM to
/Users/bmf/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/extra/stuff/bin
Note: my g++ is in /usr/bin. That is by default in the path. Rather than
muck with your PATH, I would go with Allan's advice and make sure you have
it installed correctly. If 'which' doesn't find it and you didn't purposely
install it into some weird place, it probably isn't installed.
Brandon
>
> Is this expected behavior? Or is there a setting I'm missing or different
> workflow I should follow in order to get textmate to remember what should
> be
> visible in my project?
Yes, this is expected behavior. It rescans the directories and adds files
whenever you open the project or command+tab back to TextMate*.
The way to change which files are discovered is to right click on the root
folder and choose "Show Information..." (or select the folder and hit
command+i). Where it says "Recursively Include Contents Matching..." you
can define "regular expressions" to include/exclude files and folders. I'm
not sure which syntax that box is using for the patterns but exclamation
point (!) acts as negation so you can easily exclude stuff from your
directories.
*You can use the plugin ReMate to disable this behavior if you don't want to
exclude the files but rescanning them is slow.
Hope that helps! Enjoy using TextMate! :)
Brandon
Hello everyone,
I first want to apologize to anyone who thought the subject said
"TextMate2." I promise I wasn't trying to deceive you. :-)
I'm not sure if this is the best place to post this, but I have created an
improved version of TabMate and wanted to share it with those of you who
have been frustrated by a lack of an update to such a useful plugin.
TabMate2 <https://bitbucket.org/tweekmonster/tabmate2/overview> brings
improvements that include refreshing windows with your modeline settings
when you:
- Switch between windows (not just tabbing in and out of TextMate)
- Switch between tabs
- Save your file (editing then saving the modeline will immediately
update your window settings)
- Reload Bundles
A bonus feature has also been added: You can also keep your modeline at the
bottom of your files!
TabMate2 also has a companion bundle that helps you create and manage a
modeline in your files. Install it and simply press ^M and a modeline will
be added to the top of your file. If you already have a modeline in your
file, the bundle will simply update the existing modeline with your selected
language and tab settings.
You can download the PlugIn (be sure to remove TabMate first) and Bundle
here: https://bitbucket.org/tweekmonster/tabmate2/downloads
I would also like to make this disclaimer: I'm new to Objective-C
programming. This was my first real-ish project involving Objective-C and I
welcome any comments or pointers about the code
itself<https://bitbucket.org/tweekmonster/tabmate2/src>.
I also was only able to test this plugin in Snow Leopard and Lion, but I
assume that building it with the 10.5 SDK would make it usable on Leopard,
right?
Please let me know what you think!
-Tommy
First off, I'm new at this Mac stuff. Got my first ever Mac yesterday, and
I've been trying to get it all to work.
I'm studying Software Engineering at University, and the current (first)
language we're working with will be C going to C++. I've installed xCode,
which I've got working, however I would like to use TextMate for the actual
writing as the snippets just makes it awesome.
I have a problem though, when I compile a simple code like this:
int main(void){ printf("Hello World\n"); return 0; }
it works fine, I get the compiled output from gcc (I believe it's GCC in
xCode), however if I run this:
int main(void){ int number; printf("Give number: "); scanf("%d", &number);
printf("Number provided was %d", number); }
What happens is I get the said console output window, however it does not
allow me to actually input stuff, it merely slaps 0 in the scanf.
I used 5 hours last night trying to get everything to work, and I may have
been searching on the wrong things, but I'm new at all this so please beare
with me, and if there's a specific answer somewhere (thread here,
stackoverflow etc) then a link would be awesome.
Hope someone can help me, as TextMate is just....awesome.
Best Regards
Dennis
--
View this message in context: http://old.nabble.com/compiling-code-but-not-inputs-tp32422353p32422353.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I have been trying to do C++ in textmate but I keep getting this error:
The current PATH is:
"/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/X11/bin
Please add the directory containing “g++” to PATH in TextMate's Shell Variables preferences.
Alternatively, the PATH can be retrieved from Terminal but this requires a relaunch: "
Even when I try to retrieve the PATH from Terminal, I still get this error. Has any one run into this kind of problem before?
I apologize if this has been covered before but i couldn't find any answers searching (none I could understand at least)
Thank you
John
richiesta di rimozione immediata dell'indirizzo info(a)scrivilo.it, inserimento in mailing list mai richiesto :-/
> 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/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. R Console (Rdaemon) bundle ? how to edit / prevent long
> function descriptions? (Martin Batholdy)
> 2. Re: R Console (Rdaemon) bundle ? how to edit / prevent long
> function descriptions? (Hans-J?rg Bibiko)
> 3. Re: R Console (Rdaemon) bundle ? how to edit / prevent long
> function descriptions? (Martin Batholdy)
> 4. C++ not compiling in text mate (John Relosa)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 8 Sep 2011 15:20:43 +0200
> From: Martin Batholdy <batholdy(a)googlemail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] R Console (Rdaemon) bundle ? how to edit / prevent
> long function descriptions?
> Message-ID: <82E1C12C-A88C-4786-BC4C-5842A8730A02(a)googlemail.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I am currently using the Rdaemon bundle to run R from inside a textMate document.
> It works great and I am really excited about having the power and flexibility of a text editor like textmate combined with the possibility to execute R-code within the text editor.
>
> However there is one minor issue, so I thought perhaps someone here found a solution for that.
>
>
> When you use Rdaemon and type a function you automatically get a small yellow overlay window that gives you some information about this function.
> That is a great feature.
>
> However this yellow overlay window for some reason gets huge if you want to set up for example a for-loop.
>
> If I type "for(" my whole screen is covered with a huge yellow overlay window showing a lot of html-code (I think it is the html-code of the corresponding help page).
> (same for starting an if-statement)
>
> Does someone know if it is possible to edit this help-text or disable it for some functions?
>
>
>
>
> thanks!
>
> ------------------------------
>
> Message: 2
> Date: Thu, 8 Sep 2011 16:26:49 +0200
> From: Hans-J?rg Bibiko <bibiko(a)eva.mpg.de>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: R Console (Rdaemon) bundle ? how to edit / prevent
> long function descriptions?
> Message-ID: <F8C9902C-C49C-4605-8CAF-E315570CC325(a)eva.mpg.de>
> Content-Type: text/plain; charset=us-ascii
>
>
> On 8 Sep 2011, at 15:20, Martin Batholdy wrote:
>
>> When you use Rdaemon and type a function you automatically get a small yellow overlay window that gives you some information about this function.
>> That is a great feature.
>>
>> However this yellow overlay window for some reason gets huge if you want to set up for example a for-loop.
>>
>> If I type "for(" my whole screen is covered with a huge yellow overlay window showing a lot of html-code (I think it is the html-code of the corresponding help page).
>> (same for starting an if-statement)
>
> Hi Martin,
>
> thanks to bringing me back to that issue ;) I've just uploaded a new version of the R bundle which now parses the function parameter hint correctly.
>
> Best,
> --Hans
>
> ------------------------------
>
> Message: 3
> Date: Thu, 8 Sep 2011 20:19:20 +0200
> From: Martin Batholdy <batholdy(a)googlemail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: R Console (Rdaemon) bundle ? how to edit / prevent
> long function descriptions?
> Message-ID: <B41B5F7B-FE57-478C-98C6-23D9CAABE921(a)googlemail.com>
> Content-Type: text/plain; charset=windows-1252
>
> Hi Hans,
>
>
>> I've just uploaded a new version of the R bundle which now parses the function parameter hint correctly.
>
>
> Great, thank you ? I just updated the package.
>
>
> And thank you so much for building and maintaining this textMate bundle!
> It makes working with R so much more fun on the mac ;).
>
>
> best,
> Martin
>
>
> On 08.09.2011, at 16:26, Hans-J?rg Bibiko wrote:
>
>>
>> On 8 Sep 2011, at 15:20, Martin Batholdy wrote:
>>
>>> When you use Rdaemon and type a function you automatically get a small yellow overlay window that gives you some information about this function.
>>> That is a great feature.
>>>
>>> However this yellow overlay window for some reason gets huge if you want to set up for example a for-loop.
>>>
>>> If I type "for(" my whole screen is covered with a huge yellow overlay window showing a lot of html-code (I think it is the html-code of the corresponding help page).
>>> (same for starting an if-statement)
>>
>> Hi Martin,
>>
>> thanks to bringing me back to that issue ;) I've just uploaded a new version of the R bundle which now parses the function parameter hint correctly.
>>
>> Best,
>> --Hans
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 8 Sep 2011 15:16:07 -0700 (PDT)
> From: John Relosa <john.relosa(a)yahoo.com>
> To: "textmate(a)lists.macromates.com" <textmate(a)lists.macromates.com>
> Subject: [TxMt] C++ not compiling in text mate
> Message-ID:
> <1315520167.99620.YahooMailNeo(a)web121916.mail.ne1.yahoo.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hello,
>
> I have been trying to do C++ in textmate but I keep getting this error:
>
> The current PATH is:
>
> "/usr/bin
> /bin
> /usr/sbin
> /sbin
> /usr/local/bin
> /usr/X11/bin
>
> Please add the directory containing ?g++? to PATH in TextMate's Shell Variables preferences.
>
> Alternatively, the PATH can be retrieved from Terminal but this requires a relaunch: "
>
> Even when I try to retrieve the PATH from Terminal, I still get this error. Has any one run into this kind of problem before??
>
> I apologize if this has been covered before but i couldn't find any answers searching (none I could understand at least)
>
> Thank you
>
>
> John
>
Hi,
I am currently using the Rdaemon bundle to run R from inside a textMate document.
It works great and I am really excited about having the power and flexibility of a text editor like textmate combined with the possibility to execute R-code within the text editor.
However there is one minor issue, so I thought perhaps someone here found a solution for that.
When you use Rdaemon and type a function you automatically get a small yellow overlay window that gives you some information about this function.
That is a great feature.
However this yellow overlay window for some reason gets huge if you want to set up for example a for-loop.
If I type "for(" my whole screen is covered with a huge yellow overlay window showing a lot of html-code (I think it is the html-code of the corresponding help page).
(same for starting an if-statement)
Does someone know if it is possible to edit this help-text or disable it for some functions?
thanks!
Hi, I am using Find / Replace to remove the word 'function' from comments in
some code I am working on (it causes the next word to appear as a function
in CodeBrowser when editing PHP code).
I am using this Regex:
/(?<=\*)([\w\s]*?) function/
I am attempting to match 'function' on any line after a * and the minimum
number of word & space characters. I added the / / to delimit the regex in
this email but am not using those characters in the TextMate dialog.
It seems to match correctly and highlights the characters I would expect,
but when I do Replace in Current Selection (shortcut or menu) nothing is
replaced. This is regardless of what I have the in replace field, whether
it is a capture reference ($1), any string of characters, or empty. My
hunch says it has something to do with the negative lookbehind but I don't
see any way in which I've used it incorrectly so I am stumped.
Anyone have any suggestions or is this a bug?
Thanks
Brandon
Hi,
Sorry if I'm asking a very stupid question, but I'm a bit stuck on this one. I've recently started to use TextMate for Python (was mainly using it for LaTeX), and I can't take full advantage of the documentation features of the python bundle.
- When selecting the Documentation for Current Word command (Cmd-H), I get a window showing an "Index of Modules". I can reach from there was I was looking for, but I would expect the command to bring directly there. Is this what it is supposed to do, or am I getting the intended behaviour? (Looking at the code, this looks to be a fallback case, so there should be something else happening.)
- When selecting the Documentation in Browser command (Cmd-Shift-H), I get the following error message:
Traceback (most recent call last):
File "/Users/xxxx/Library/Application Support/TextMate/Pristine Copy/Bundles/Python.tmbundle/Support/browse_pydocs.py", line 125, in
main()
File "/Users/xxxx/Library/Application Support/TextMate/Pristine Copy/Bundles/Python.tmbundle/Support/browse_pydocs.py", line 96, in main
wait_for_server(onserve)
File "/Users/xxxx/Library/Application Support/TextMate/Pristine Copy/Bundles/Python.tmbundle/Support/browse_pydocs.py", line 78, in wait_for_server
raise RuntimeError('timed out waiting for server!')
RuntimeError: timed out waiting for server!
Is there any setting I'm missing? From my experience with the LaTeX bundle, there were a few environment variables that had to be set in order to have everything working properly - would there be anything similar I should do here too? Is the bundle maintained at all and supposed to work with my setup (Snow Leopard, python 2.6.1)?
Thanks for your help, and again, apologies if this has been already covered or available on the web, I did my best before sending this.
--enas
>
> In a clean user account all these editors behave and none of the funny
> stuff happens.
> I have removed login items, preferences, my keybindings from my account to
> no avail.
>
> I have been advised by the reseller where I bought my Air to contact
> AppleCare to see if they can help.
> I'm still thinking about it.
Did you upgrade your user account from Snow Leopard? Even though Apple
allows you to upgrade the OS, it is never a good idea (in my experience). A
clean install with a new user account is always the way to go for maximum
stability. With a little shell scripting you can easily copy select .plists
and other config files from your old ~/Application Support/Library to the
new one and it makes migrating to the new account pretty painless.
Brandon
Dear all,
when using the inline dictionary function (ctrl-cmd-D) the corresponding window appears but does not disappear. When trying to close TM it crashes.
Can anyone replicate this? I'm on Lion 10.7.1 on TM 1631.
cheers,
Daniel
--
Daniel Stegmueller
1 New Road
Oxford OX1 1NF
United Kingdom
phone: +44 1865 278685
mobile: +44 7794 909349
Hey All,
I’m modifying someone else’s bundle:
https://github.com/desandro/CSS3.tmbundle
to extend it, with the intention of submitting changes to the original
author. I removed the original bundle from App
Support/TextMate/Bundles, checked it wasn’t in Pristine Bundles,
forked
https://github.com/oli/CSS3.tmbundle
and cloned into App Support/TextMate/Bundles, then I went about extending it.
However for snippets which share a tab trigger, instead of getting a
menu with options, I get the menu but with no text [screenshot
attached]. I’m also unable to use the snippet, even by typing “1” for
the first one etc. Other bundles work fine, and if I use unique
trigger names this bundle’s snippets work fine. I’ve attached the
bundle just in case.
Can anyone tell me what I’m doing wrong?
peace - oli studholme
PS is there a reference on bundles you could recommend? I found
http://wiki.macromates.com/Bundles/StyleGuide, but it didn’t mention
needing to have e.g. border after border-style to get the -style part
scoped properly, and I couldn’t find the validate_bundle.rb script it
mentioned…
I am running the following R code in TextMate
sessionInfo()
x <- 1:20
y <- 2*x+runif(length(x), min=-2, max=2)
mean(y)
plot(x,y)
on Mac OS X 10.6.8 with R2.13.1 in TextMate 1.5.10 (1631) and the R.tmbundle.
The plot is not being refreshed every time I run the file with Command R (leaving the html window open).
When I close the output html window before doing Command R the plot does refresh.
Ideas? Fixes?
Berend Hasselman
Hi there,
I would like to create a new file from template by command line call, e.g.
$ mate -w foobar.c
then a new C source file is created from my C template if there is no
such file exist in the current path.
Is there any suggestions? I appreciate any help.
Regards,
Hao
Hi, I am wondering what is the 'correct' way to update GetBundles itself?
It appears on my GetBundles menu, but it says it is installed through svn
and to update it manually. What is the preferred way to do that?
Also, why are there so many seemingly identical bundles on GetBundles? If
they have the same name and same date, or same name and same author with no
date, can I just assume they are the same bundle?
One more thing: with GetBundles, is the date scheme Year-Month-Day? Is to
throw off both Europeans and Americans? I kid...but I want to make sure I'm
installing the newest versions of the bundles so I'd like to make sure.
Thanks guys (and ladies?)
Brandon
Again I stumbled across something....
Apparently, when the path (folder oder filename) contains one of the "umlaute" (üÜ, öÖ or äÄ) watching the TeX-file fails.
Even though compiling using the usual + R works fine. Systemwide encoding is (supposed to be) UTF8.
Is that meant to be that way? - and - is there a simple way to fix or work around that? (Besides not using these letters in the path... ;)
thanx in advance and kind regards,
Patric
I got it sorted out a few days ago. I'm embarrassed to admit it, but it was an errant bit of code, which I finally weeded out. Thanks for the suggestion, though!
On Aug 31, 2011, at 6:00 AM, textmate-request(a)lists.macromates.com wrote:
> 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/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: Syntax highlighting problem with .rnw file (SWeave
> bundle) (Peter Cowan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 30 Aug 2011 09:39:38 -0700
> From: Peter Cowan <cowan.pd(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Syntax highlighting problem with .rnw file (SWeave
> bundle)
> Message-ID:
> <CAM4gt+5FOdZzG-Umm7ALd1xuOiFbYX_vAa8jL_UOhcRvSr8JYg(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Wed, Aug 24, 2011 at 7:23 AM, Gregory Penn <gregory.penn(a)gmail.com> wrote:
>> Thanks to Eric Cheng, I was able to update my SWeave bundle from github and it's commands seem to be working correctly. So on to the next problem . . .
>>
>> TextMate's syntax highlighting in foo.rnw isn't recognizing R code between the "<<>>=" and "@" tags that delimit it, instead it is treated as LaTeX code. This is a problem because R makes frequent use of the "$" symbol, which toggles math-mode in LaTeX. As a result, where I have an odd number of "$"s in a chunk of R code, any LaTeX following that R code will appear highlighted green, as though it were in math mode.
>>
>> I've read the documentation for scopes and languages, but didn't understand it well enough to figure out where this is going wrong and how to fix it.
>>
>
> I assume that you have the R bundle installed? Are you sure that the
> language is set to SWeave when you open .Rnw file? Have you tried
> putting empty lines before and after both "<<>>=" and "@" tags? I
> seem to remember a small issue with that in the SWeave bundle, if that
> is the issue I might have a fix I can dig out.
>
> HTH
>
> Peter
>
>> Thanks in advance,
>> Gregory Penn
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>>
>
>
> ------------------------------
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
> End of textmate Digest, Vol 39, Issue 25
> ****************************************
Thanks to Eric Cheng, I was able to update my SWeave bundle from github and it's commands seem to be working correctly. So on to the next problem . . .
TextMate's syntax highlighting in foo.rnw isn't recognizing R code between the "<<>>=" and "@" tags that delimit it, instead it is treated as LaTeX code. This is a problem because R makes frequent use of the "$" symbol, which toggles math-mode in LaTeX. As a result, where I have an odd number of "$"s in a chunk of R code, any LaTeX following that R code will appear highlighted green, as though it were in math mode.
I've read the documentation for scopes and languages, but didn't understand it well enough to figure out where this is going wrong and how to fix it.
Thanks in advance,
Gregory Penn
>
> ya, it doesn't work, tried =/
The assembly languages are all little used enough (I'm guessing) that there
aren't proper language grammars made yet. However they are really easy to
make, just take a look at one of them. Basically just assign variables,
functions, comments, etc to a scope (use the asm language grammars you have
as an example) then use the color options to change the colors. It is not
that hard, I made one for MIPS when I got frustrated with my MIPS project
for school. :)
Brandon
Hi there,
I'm kinda new to TextMate. I was just wondering, is there a way to get TextMate to start up in a certain syntax mode? I only really use the markdown and the C bundles so having it start up in one of those 2 would be perfect.
Thanks
Dan
Hi listers!
This is my first post here. And I'm so sorry to have a so dummy start
but...
I'd like to use TextMate to write Plain TeX (not LaTeX!) papers but I can't
figure out how to do it.
Anyone willing to help me?
Many thanks in advance.
--
ßlue
--
View this message in context: http://old.nabble.com/Plain-TeX-tp31076342p31076342.html
Sent from the textmate users mailing list archive at Nabble.com.
This is another post in what is becoming a series on the LaTeX, R, and SWeave packages. Some strange key-binding behavior has developed since I updated my SWeave bundle through git-hub. The command "SWeave, Typeset & View PDF" works as expected if selected from the bundle menu, which indicates that "command R" is the keybinding for that command. If I use the keybinding, the command does not work correctly, but behaves as it did before I updated the SWeave bundle. This suggests to me that I somehow have two versions of the bundle installed: the correct one is available through the bundle menu and the deprecated one is still controlling keybinding. Does anyone have a suggestion for how to fix this?
I'm encountering a problem with the use of the Command-Control-d shortcut in TextMate on Lion.
Computer: MacBook Air 11" 1.6Ghz Core i5.
OS: Mac OS X 10.7.1
TextMate: Version 1.5.10 (1631)
On starting up the Air for the first time I migrated everything from an external disk.
I have a personal DefaultKeyBinding.dict
When I use the Command-Control-d shortcut in an open file in TextMate on Lion the dictionary popover appears. When I press escape the popover does not disappear. The TextMate window does disappear but TextMate remains running. TextMate's cannot be displayed again by clicking on the Dock icon but can be made to reappear from the Window menu.
After bringing back the window the dictionary popover is still there and cannot be dismissed.
If you're lucky you can still save and quit. If unlucky TextMate quits unexpectedly.
In a clean guest account the shortcut and TextMate behave correctly with no issues whatsoever.
The non disappearing dictionary popover also occurs in TextWrangler and TeXShop 2.43.
All of this behaved correctly in Snow Leopard.
I have tried with clean preferences,with no login items and more. The behaviour persists.
Has anyone else encountered this problem?
Any suggestions?
best
Berend Hasselman
Hi all,
I'm a graduate student struggling up the learning curve with LaTeX and R, and I'm having trouble getting the Sweave bundle for TextMate to work correctly. Here's what happens with the various bundle commands:
If I choose Sweave, Typeset, & View, then foo.rnw file gets typeset and viewed as a pdf, but it doesn't display the R stuff correctly. No .tex file is created.
If I choose Sweave in R, then a .tex file is written if and only if one doesn't already exist. I can then compile the .tex file, which will display the R stuff correctly.
If I then want to edit the document, I have to delete the .tex file and repeat the above steps.
Can anyone suggest how to get Sweave, Typeset, & View to work correctly? Also, I understand that the Sweave bundle at Github is more up-to-date, but I can't figure out how to install it.
Thanks in advance,
Gregory
>
> I think I'm in that early stage where there are one or two key things I
> don't know. The alternative is that I'm hopeless. :)
Hehe in the early stages you probably won't even seeing the edges. :) I
recommend reading all the documentation about Projects, Snippets and
Language Grammars a few times, as well as installing the GetBundles bundle.
Also, press ctrl+opt+cmd+K to bring up a fat menu of keyboard shortcuts.
I'd also read the keyboard shortcut documentation because the shortcuts are
somewhat organized according to their functions (for example,
shift+ctrl+opt+<letter> type shortcuts are used to switch your current
language.
And of course feel free to ask the list, people here are more than happy to
answer.
Brandon
Hello Ron,
Le 22 août 11 à 22:13, RonJeffries a écrit :
> Hi Michèle, Thanks ...
>
> On Aug 22, 2011, at 3:31 PM, Michèle Garoche wrote:
>
>> I suggest you remove the texmate.pid file. It seems to me that it
>> is a sign of something gets wrong.
>> Next, use the second receipt on the page (the one with git clone).
>> You have to create the Bundles folder if it does not exist.
>>
>> Once it is created, just reload the bundles via Bundles menu,
>> Bundle editor, Reload Bundles.
>
>
> Ah. I was expecting to find many bundles already there. Creating and
> doing a suitable git seems to have installed the rspec bundle. Thanks.
No the bundles provided by Textmate about of the box are in /
Applications/Textmate/Contents/SharedSupport/Bundles. You may see them
by right clicking on Textmate in the Applications folder and choose
something like "Display package content" (roughly translated from
French).
The ones under ~/Library/Application Support/Texmate/Bundles are the
bundles that you install yourself, kind of extensions of the original
ones.
This is the same logic for a number of applications on Mac OS X.
>
> Now ... when I %R it, I am getting a message `require': no such file
> to load
> which I take to mean that under TextMate, it's not looking in the
> right place for the gem. It runs correctly under terminal, when I
> just do rspec first_spec.rb at the prompt.
>
> Yet TextMate is not finding rspec ... a pathing issue? Advise me
> please. Thanks,
Not sure.
First try this:
Open whichever file in your project. Select a folder which has tests
in it. Choose Bundles, Rspec, Run Examples in selected files/
directories.
If you want to run a single file, first change the type of the file in
the status bar at the bottom (just after Line:xx Column:yy) to Rspec,
then you can apply cmd-R.
The same applies for a single example, you have to ensure the type of
the file is Rspec before running the spec.
See in Bundle Rspec the various commands.
In case this does not work, you may have to declare the ruby path in
Textmate.
I've installed mine with rvm, so the ruby path is given to Textmate in
Textmate/Preferences/Advanced/Shell Variables like this:
TM_RUBY as variable /Users/whatever/.rvm/bin/rvm-auto-ruby
You have to adapt it to your local installation.
If you have not install ruby with rvm, you should probably (I'm not
sure here) initialize the ruby path in ~/.profile or equivalent. Sorry
I cannot remember how I did it long times ago before rvm appears.
Hope it helps.
>
> Ron Jeffries
> www.XProgramming.com
> I try to Zen through it and keep my voice very mellow and low.
> Inside I am screaming and have a machine gun.
> Yin and Yang I figure.
> -- Tom Jeffries
>
Cheers,
Michèle Garoche
Absolute noob here. New to Mac and to TextMate. Have and am reading the Prag TextMate book. Feel free to send me to a link or such.
I'm trying to run an rspec test under TextMate. I have the rspec gem installed and the test runs under Terminal. Does not run under TextMate, with the require failing. I assume I am missing some path setting or the like in TextMate but can't work out what it is.
I'm told there is an rspec bundle that should "solve" this. I tried what's on this page:
http://rspec.info/documentation/tools/extensions/editors/textmate.html to no avail.
I can't find the rspec bundle on RubyForge and when I try the second suggestion on that page, namely cd ~/Library/Application\ Support/TextMate/Bundles/, I find no Bundles folder under the TextMate folder, just a file, textmate.pid.
I think I'm in that early stage where there are one or two key things I don't know. The alternative is that I'm hopeless. :)
Suggestions welcome. Thanks!
Ron Jeffries
www.XProgramming.com
I try to Zen through it and keep my voice very mellow and low.
Inside I am screaming and have a machine gun.
Yin and Yang I figure.
-- Tom Jeffries
I cannot get TextMate to recognize my git installation
1) Git is installed in the /usr/local/git/bin/git directory
2) I've set up the Shell Variable of TM_GIT to "/usr/local/git/bin/git"
3) I've turned off the PATH variable, as well
But when I try to install a bundle with GetBundles through GitHub, I still
receive the same error. Here's an example:
8/21/2011 18:34:40 TextMate[GetBundles]
Could not install “PHP Drupal” by using
“https://github.com/psynaptic/php-drupal.tmbundle/tarball/master”
sh: git: command not found
Any assistance is appreciated
--
View this message in context: http://old.nabble.com/TextMate-cannot-find-use-git-tp32307720p32307720.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
Is there a way to refresh an open file in case the file was changed outside of TextMate?
I use the R Console Bundle and there I have the option to execute R-code and the output is written into another file.
Now I have to reopen this particular file in order to see the changes.
(so I have my script-file open, execute some commands and the output is written to another file (r_res) – but I don't see the newly generated output If this file is already opened– I have to close and reopen r_res to see the newest output generated)
It would be really nice if I could tell TextMate to 'refresh' that file because I know that something was changed in the meantime.
I hope someone understands my problem ;),
Hi all,
I have written a bundle (a macro actually) that edits a file by
finding/replacing characters. However I want to add the functionality for it
to also delete the last character of each line of the document. I tried
using the command moveToEndOfParagraph and DeleteBackward, but it only
deletes the last character of the last line of the document. What command(s)
would I use for the macro to delete the last character of every line? The
number of lines in the document will vary, so I cannot put a hard line count
into the macro.
Thank you for your help.
Keith
--
View this message in context: http://old.nabble.com/Need-help-editing-a-bundle-tp32266863p32266863.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi, I'm a fairly new user to TextMate and love it, in particular the TODO
Bundle, but.
Is there any way to make it recognize TODO's across entire projects (tmproj
etc.)?
I often note them down but as often I forget where I put them.
Thanks :)
Best regards / Med vennlig hilsen
Thor Erik Lie
<http://thorerik.net>
Hi everyone,
I use textmate latex bundle with PDFView to write my documents.
Everything went fine before yesterday ....
I got my registration number and registered my copy of textmate (1.5.10,
1631). Then when I type 'cmd-R' and click the button 'View in PDFView',
things happened, the error massage is:
=====
check_open: Application appears not to understand request
tell application "PDFView" display tex line 5 of file "duvrr_Abeta.pdf"
end tell
Found 0 errors, and 0 warnings in 0 runs
=====
and PDFView also prompts an error with a new window:
=====
The document couldn't be loaded
The document file://localhost/xxx.pdf couldn't be loaded
=====
but it does opens the desired pdf file
I also changed to 'view in TextMate' or 'view in Preview', they are all
right. Only PDFView is in trouble ...
Could you please tell me how to fix it?
Regards,
Hao
I'm using the TODO bundle. It will find all TODO tags in the current file, but will not report all tags in the .tmproj project. The project is simply files in a single directory.
Any help is appreciated.
Thanks.
> When I have a number of files open in tabs - the draw/file-tree can be in any state (folder closed etc). So it's sometimes hard, or just time consuming to locate the current selected tab's file in the tree.
>
> Is there a shortcut does: "show be this file in the draw"
>
> I've had this in other editors - but can't seem to find it in the Menus. Alternatively, is there perhaps a more "Text-matey" way of doing this?
>
> Thanks for the advice.
>
> --
> Phil Cockfield
I recently noticed that the letter template in the Latex bundle stopped
working (TextMate hangs for a second and then does nothing, not even a
console message). I started fiddling with the ruby script that produces the
template document and it appears that the line
me_entry = OSX::ABAddressBook.sharedAddressBook.me
does not work. Commenting out that block and the code that depends on it
makes the template work again. I know so little about ruby it is
embarrassing and consequently have little knowledge on how to fix this. Did
apple change the address book API to Ruby? Perhaps another special case is
need now.
Kyle
Hi all,
I'm editing a man page markup file with a ".1" extension, and I wanted
to get some syntax highlighting, so I installed the official "Man
pages" bundle with GetBundles and set the language to "Man". However,
this produces a hang, and I have to force quit TextMate. (I'm seeing
this on two computers, one running Lion and one Snow Leopard.) If I
restart TextMate and select the same file, the hang recurs.
Is this a bug; or if not, does anyone have any pointers on what I can
do to avoid it?
Thanks,
Jon
I am trying to hunt down a bug somewhere and the was hoping that validate syntax would help me but it is broken on Mac OS X Lion for some reason with a message about:
https://skitch.com/mhenrixon/fpska/textmate
What do I have to do to make it work?
Mikael Henriksson
T: +46 (0) 730 393 200
E: mikael(a)zoolutions.se
W: http://flavors.me/mhenrixon
If I write a long enough single paragraph (or a line) which includes enough
nordic characters (particularly "a" and "o" with umlauts: "ä" and "ö"), the
typing speed while in that paragraph gets very slow. When I switch to a new
line, the typing speed gets back to normal. If I switch back to the
umlaut-paragraph, the typing speed is still very slow.
This problem makes it very hard for me to write text files in Finnish.
Thanks,
Juha
--
View this message in context: http://old.nabble.com/Slow-typing-with-nordic-characters-tp32201911p3220191…
Sent from the textmate users mailing list archive at Nabble.com.
My TextMate now quits immediately on startup. The menu icon bounces once and
then it's gone. It won't show any window. If it matters at all, I have Lion
installed, though TextMate did work on it until yesterday.
I don't see any reports on /Users/[home]/Library/Logs/CrashReporter.
The problem is with only my primary account, if I log on with a guest
account, it works.
--
View this message in context: http://old.nabble.com/TextMate-quits-on-startup-%28Lion%29-tp32200728p32200…
Sent from the textmate users mailing list archive at Nabble.com.
I have noticed that block folding behaves differently in 10.7 when using HTML bundle in PHP environment.
The code below behaves in 10.6.8 as it should, folding properly, but in 10.7 it has somehow begun to take notice of the "array(" and starting to mess up the rest of the folding.
<?php
class dummy {
private $var = array(
"key" => "value"
);
function function1() {
}
function function2() {
}
}
?>
> In my opinion, the full screen of the app pages is well implemented. It is
> almost like write room. Is it possible to have a similar implementation of
> the Lion full screen in Textmate?
It's possible to hack full-screen functionality into 1.5:
in Terminal type:
plutil -convert xml1
/Applications/Textmate.app/Contents/Resources/English.lproj/Document.nib
mate /Applications/Textmate.app/Contents/Resources/English.lproj/Document.nib
Search for 'NSWindowBacking' key/value pair and after these entries,
insert the following:
<key>NSWindowCollectionBehavior</key>
<integer>128</integer>
Quit TextMate, and in terminal type:
plutil -convert binary1
/Applications/Textmate.app/Contents/Resources/English.lproj/Document.nib
I'm still working out if this is a good idea or not.
Andy.
Hello,
Thanks for the replay. I figured it out. By using this:
{name = 'variable.ksp';
match = '(\$)[a-z_]\w*';
},
{name = 'entity.ksp';
match = '(\%)[a-zA-Z_]\w*';
it works well but is there a way that I could have the $ and % a different color? Currently when I change the color in the theme for the variable and entity it changes the color of the whole word including the variable and array symbols ($ and %). It would be nice if I could have different colors for those as signifiers of what they are in the code.
Is there a way to do that? How can I change the scope for only the symbols($ or %) and not the words after?
Thanks for your time and answer.
Best,
John
This will get you started...
http://manual.macromates.com/en/scope_selectors
Adam Merrifield
seydoggy.com
820 Strasburg rd, Kitchener,
Ontario, N2E 2Y3, Canada
Email: info(a)seydoggy.com
Office: 519-489-6033
Cell: 519-574-9788
On 2011-08-01, at 20:57, Walter Lee Davis <waltd(a)wdstudio.com> wrote:
> The PHP bundle does the first of these, you might want to look at that for insight. Im not sure how you would do the second one, but you may spot a different construct in there that would help you figure this out.
>
> Walter
>
> On Aug 1, 2011, at 4:59 PM, John Relosa wrote:
>
>> Hello,
>> I post this question a while back but had no answer... Is it one of those RTFM question or did it slip through the cracks? Can someone point me to the right direction if so on how to accomplish such t a thing??
>> Thank you in
>> advance.
>>
>> Best
>> John
>> ----------------------------------------------------
>> I've seen some bundles do that but I can't figure out the way to accomplish this.
>>
>> In the language that I am working on I have variables and arrays etc...
>> Is there a way that I can have a variable declared with a $ symbol and then have it custom colored every time any word has the $symbol in front?
>>
>> Something like
>>
>> declare $variable
>> declare %array[]
>>
>> so every time these variables appear in the script they would be a certain(assignable) color and a different color for the %array?.
>>
>> Thank you.
>>
>> Best,
>> John
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
------------------------------
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com
http://lists.macromates.com/listinfo/textmate
End of textmate Digest, Vol 39, Issue 2
***************************************
Hello,
I've seen some bundles do that but I can't figure out the way to accomplish this.
In the language that I am working on I have variables and arrays etc...
Is there a way that I can have a variable declared with a $ symbol and then have it custom colored every time any word has the $symbol in front?
Something like
declare $variable
declare %array[]
so every time these variables appear in the script they would be a certain(assignable) color and a different color for the %array?.
Thank you.
Best,
John
I did a fresh install of Lion on my Mac. As a result, I had to reinstall
TxMate (1.5.10 (1631)) as well.
First, the irritating bug regarding keyboard input from a Ruby program is
still not fixed in TxMate Version 1.5.10 (1631). I know there's a
workaround, and I'm using it. But still, this thing has been irritating for
over a year and a half, is there anyway to roll that workaround into the
next version of TxMate?
Second, the shortcut (Ctrl - Cd - N) to start a new project doesn't seem to
work, is this a known problem?
Is there a keyboard shortcut to switch the 'Select Bundle Item' window
(control+command+t) from 'Item title' to 'Key equivalent' and back? This is
usually accomplished by using the mouse to click the magnifying glass.
However I'd prefer to not use the mouse if I can help it.
Anyone?
Thanks
Brandon
I looked into Doodim, it doesn't support even Snow Leopard from what I
remember, and they said they lost the source code. Oopsie. If you get it
working, please let us know.
Brandon
Hello,
I post this question a while back but had no answer... Is it one of those RTFM question or did it slip through the cracks? Can someone point me to the right direction if so on how to accomplishsuch t a thing??
Thank you in advance.
Best
John
----------------------------------------------------
I've seen some bundles do that but I can't figure out the way to accomplish this. In the language that I am working on I have variables and arrays etc...
Is there a way that I can have a variable declared with a $ symbol and then have it custom colored every time any word has the $symbol in front? Something like declare $variable
declare %array[] so every time these variables appear in the script they would be a certain(assignable) color and a different color for the %array?. Thank you. Best,
John
Hi,
... I'm new to the list, so please forgive me if this is a big "yes-we-all-know-that-already".
I have replaced my old machine with a new big iMac and upgraded to Lion. Now I have the console log filled all over the place with tons of messages like this one:
28.07.2011 6:18:29.046 PM TextMate NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'.
I checked the file /Applications/TextMate.app/Contents/Resources/Info.plist:
$ pwd
/Applications/TextMate.app
$ find . -type f -exec grep -il cfbundletyperole {} \;
./Contents/Resources/Info.plist
$ cd Contents/Resources/
$ pwd
/Applications/TextMate.app/Contents/Resources
$ grep -i cfbundletyperole *
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
Info.plist: CFBundleTypeRole = Editor;
My installed TextMate is version 1.5.10 (1631).
So, all is "Editor" as the NSDocumentController requested. What's wrong here? Does anybody have an idea? What can I do?
Thanks very much in advance.
--
cul8er
Paul
paul.foerster(a)gmx.net
Hey everyone. Apologies if this has been covered to death, but I use
TextMate to do PHP development, and I'm frustrated by the autoindentation: I
use spaces instead of tabs and the autoindent will put N number of spaces
for the empty line rather than just a new line.
Is there either an addition to the PHP bundle or a standalone bundle itself
that can clean this up for me?
--
Wells Oliver
wellsoliver(a)gmail.com
In my opinion, the full screen of the app pages is well implemented. It is
almost like write room. Is it possible to have a similar implementation of
the Lion full screen in Textmate?
--
View this message in context: http://old.nabble.com/Lion-Full-Screen-tp32153117p32153117.html
Sent from the textmate users mailing list archive at Nabble.com.
I'm not sure which command you are originally referring to, but this is
pretty easy to just whip up in the bundle editor (thank you, TextMate!).
Create a new snippet. You can name the snippet whatever, and assign it to
whatever keyboard shortcut. Just make sure to put 'text.html' in the 'Scope
Selector' field. This will make sure the keyboard shortcut only activates
when you are in an HTML document*.
So, here is the snippet:
<a href="$1">$TM_SELECTED_TEXT</a>
Just paste that into the bundle editor window (get rid of any extra
whitespace), close the bundle editor, and baby you got a stew goin'!
Highlight some text and press your keyboard shortcut to make a new anchor.
The caret will be in the quotes where the $1 is.
* More correctly, it will be active when the caret is in a scope of
text.html. You can check the scope at any time by using a keyboard
shortcut, but I think it's disabled by default. To enable it, click the
'Filter List...' button near the bottom of the bundle editor, and click the
checkbox by the bundle titled 'Bundle Development'. Once that is enabled,
press control+shift+p to see a tooltip with the scope hierarchy in it.
There's documentation about this stuff on the TextMate site if you are
interested in learning more.
@Gerd: Dear God, thank you. I have been keeping an eye out for the
'standard' location of PlistBuddy for a while now, since it seems to pop up
in the most random spots. Such a fantastically useful tool that I could
never find when I needed it.
@Allan: Thanks for just mentioning TextMate 2. :) It gives us all a sigh
of relief to know it's still out there. I'm sure I'm not the only one who
feels this way: TextMate opened my eyes. The elegance, the simplicity, the
flexibility, the power. I just fell in love. So when our exuberance gets
bothersome, just smile a little. We are just in love with your creation,
and love makes anyone a little crazy and goofy.
For some reason, this HTML snippet/shortcut does not work for me:
Wrap Selection as Link (⌃⇧L) — this turns the selection into link text for
an anchor where you can then fill in the URL.
Is it still available? Have I screwed up my config and lost it?! Or has it
been deprecated?
At the least, I'd like an easy way to create anchors in TM. Is there one
I'm missing? I looked in the Bundle Editor.
Thanks!
-- Owen
I've just installed OS X Lion and having
a problem with the LaTeX preview.
I have the latest TM and latest LaTeX from MacPorts.
When I choose to compile a document (cmd+R),
everything works fine and my favorite Skim opens
the compiled pdf. But this is slow and jumps
to the beginning of the page all the time.
So I used the watch document feature (ctrl+cmd+W).
But now in Lion it fails to open Skim, and
despite that in the LaTeX bundle preferences
I set up to use Skim, TM always opens TexShop pdf preview.
Any suggestions how to tell TM to use Skim in Lion?
I do not know why i sometimes get this error. It seems to happen if I
am running inside a shell in screen. It has happened other times as
well when I'm not in a screen shell.
Hi All,
With Alex Ross' kind permission I created a clone on github and modified it:
git://github.com/gknops/scratch.tmbundle.git
The changes make it work much better with my workflow (YMMV):
- Shortcut changed to easier to use Shift-Cmd-C
- Instead of the temporary buffer document it now shows the scratch manager
- The file names in the scratch manager are clickable and bring you to where the scratch came from
I kept the original UUIDs (as they were in the svn review repo), not sure if that is a good or bad thing. Someone enlighten me please.
Gerd
Is there an URL/RSS feed which will always show the latest version?
Due to my limited Internet access (long story), I have a shell script
which runs on a remote server every night and tells me if I need to
update any of my apps.
Most of the time this is pretty easy, but TextMate doesn't seem to use
Sparkle for updates, so I can't figure out what URL to check. There
has to be one since the app supports built-in version checking.
Any help appreciated :-)
TjL
Hi, recently i install couple of bundles, all of them is visible in bundle
editor, but working just a few, that was already .tmbundle filename
extension (like minimal design tools), but some not, (like jquery bundle)
which was originaly folders, instruction says just to rename them, so I did
so and they instaled but won't working.
What i did wrong?
Thanks.
--
View this message in context: http://old.nabble.com/Some-bundles-won%27t-work-tp32040706p32040706.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am using mate on an italian keyboard.
While the menu tell me that I can do shift left wiht command + [ when I try nothing happens.
I have to do alt + command + [ to get a shift left but this last keymap is supposed to do code formatting.
Thanks
Andrea Campolonghi
acampolonghi(a)gmail.com
I for one refuse to update to Lion until Textmate adds a leather toolbar and a linen background, and I also want to see torn paper edges and maybe coffee stains. Or better yet, since the trend is to make things look like their physical counterparts, can you make TextMate an attractive brunette, because that's what my editor looks like IRL (she's my wife). Enough of this list chatter on purpose and features - what's important is some consistency in the UX.
Just thought some levity would help.
I just have to say you guys are brave, installing Lion into your workflow
all willynilly like that. Especially when the support for 'Now Leopard
Compatible' TextMate is basically just some dudes chilling on a mailing
list.
Brandon
Hello,
My name is Grace Lee and I am an undergraduate studying Computer Science at
UC Berkeley. I use textmate everyday for programming but recently I wiped
out my operating system to fix a disk fragmentation issue and lost the
license for textmate. I called Apple to request a license and they told me
to contact you guys directly. They also told me that you guys are very nice
and will likely grant me another license.
Could you please send me a textmate license? The macbook I purchased
(Leopard OSX) came with Textmate and I'm very fond of your software to the
point I cannot code without it.
Thanks,
Grace Lee
Is it just me or is rvm no longer controlling the version of ruby that
textmate uses after upgrading to lion?
My TM_RUBY shell variable is set to
/Users/Tim/.rvm/bin/textmate_ruby
which was previously working...
Anyone have any ideas how to fix it, or is it just my setup having a
problem.
Thanks,
Tim
I recommend using GetBundles to update your PHP bundle as well. The default
PHP bundle is great IMO. Command+F1 (tooltip function doc) and Command+Esc
(completion popup) are very useful when you need to peek at the prototype
and exact spelling of built in functions.
Brandon
> Which bundles should I use for a nice environment for website
> development (HTML, CSS and probably some PHP).
>
@Phil
Sorry Phil, it is called 'PySmell' not PyRopes.
Here is the url: http://code.google.com/p/pysmell/
Once you get it working it works very well from what I remember.
Brandon
There's a lot of bundles out there and from my previous experience
with setting up a Python environment, it's quite a few config options
and both complementing and different bundles out there.
So this time around I'd just like to ask:
Which bundles should I use for a nice environment for website
development (HTML, CSS and probably some PHP).
Is the basic CSS and HTML bundles just fine, or should I check out some others?
How about rendering/previewing changes? Like in python and ruby
development, I can run the program in a TM window, but with HTML it
seems I have to load/refresh the page in an external browser. Or does
TM provide a html renderer inline in it's own window?
--
Phil :)
I have a folding problem in a perl document. A string contains the
begin comment marker from C "/*" ... what I actually have is:
push @files, glob "$curr_dir/*";
This causes a fold marker to appear and screws up all the folding
following it because there is no closing comment. To get round it, on
the following line I've used a perl comment and in that comment I've
included */.... so:
# */
This does the trick but I do have a fold where one is not needed, and
it looks bad.
It seems that the perl syntax within TM has inherited some C. I know
perl is made with C and that there are similarities, but this seems a
step to far!
I've found the folding markers in the language definition, and /* and
*/ are defined there, any perl experts out there able to confirm these
aren't valid? I don't want to break anything here by removing them
either.
--
Justin Catterall www.masonsmusic.co.uk
Director T: +44 (0)1424 427562
Masons Music Ltd F: +44 (0)1424 434362
For full company details see our web site
1. Re: Fwd: High CPU Usage in snow leopard (Brandon M Fryslie)
I had exactly the same problem. And finally I've found a workaround.
In my case, I also use sshfs, and I've been looking at the unix "top" application to see which process was eating my computer, until I realised that the problem was caused in the combination of sshfs mounted filesystem and textmate (most times, meanwhile I was looking for something in a big project with textmate).
The process that was eating all cpu was mdworker / mds (spotlight daemon)
So I tried to disable spotlight completely and the problem didnt happen again. When I turned on spotlight... I was able to work for a whlie... and then the beachball appeared again, so what I've done is to add the folder where I mount the sshfs filesystem to Privacy Tab, to prevent Spotlight from indexing the content of the sshfs mounted filesystem.
And no more issues. In my case I'm using virtualbox with a headless ubuntu server 8.04
Hope this helps
Miquel
On 15/07/2011, at 14:00, textmate-request(a)lists.macromates.com wrote:
>
> 1. Re: Fwd: High CPU Usage in snow leopard (Brandon M Fryslie)
There is a plugin called ReMate which should fix the problem. If you are
editing files over a network share, this is bad news with TextMate and will
probably eventually crash and lose your work. Be careful.
http://ciaranwal.sh/remate/
> When i open a folder on textmate, in this case, kohana stack. I open e
> file writing some code. Then save it, goto chromium to check. Now when
> return to textmate, textmate freezes and takes 100% CPU, after some
> time, 5 to 20second, everything comes to normal. This happenes every
> time textmate lost focus then got focus again.
> step to reproduce,
> 1. Open textmate and open a file.
> 2. Goto another app while keeping textmate open, In a word,make
> textmate lose focus.
> 3. Return to textmate, In a word, make textmate got focus.
> => Cpu usage goto 100% and textmate hangs.
> I'm suspecting that when getting focus, textmate scans the files for
> changes outside textmate, is that it ? if so, is there any workaround
> ?
>
> Any way around this?
Thanks
Make sure your macro is 'move backward one word' (option+arrow) and not
'move to beginning of line' (command+arrow). If the macro looks fine, there
might be some sort of interaction between the snippet tab stops and the
macro system but unfortunately I have only played around with making my own
macros and rarely use them for actual work.
Protip: the macro is stored in a plist file somewhere, and you can edit it
by hand to make it do exactly what you want.
Brandon
>
> I think Brandon is being a little melodramatic with with 'probably
> eventually crash?'.
It's only melodramatic until it happens and you DO lose some work. It has
happened to me. However, I was using MacFusion which mounts the network
share like a local FS, causing TextMate to crash pretty much right
away...Now I use ForkLift which is the most fantastically awesome remote
file management tool I've ever had the pleasure of using. Not only do I
recommend using it, I recommend *paying* for it. Yep, that good. :)
Brandon
Hmmm,
That does not seem to work. Do I create a preference file in my custom bundle
because that did't work. I found the preference file that you mentioned in
various bundles, in Source and added the ( '<', '>' ) but again it doesn't
autocomplete
What am I missing?
Thanks
--------------
Sure. In the bundle editor, look for a Preference, probably called "Smart
Typing Pairs" or something similar. It might look like this: {
smartTypingPairs = ( ( '"', '"' ), ( '(', ')' ), ( '{', '}' ), ( '[', ']' ), (
'“', '”' ), ( "'", "'" ), ); } Basically, it's just a series of pairs. You can
add ( "<", ">"), to the list and that should do it. On Jul 13, 2011, at 10:19
AM, John Relosa wrote: That works great thanks! Is there a way to
autocomplete the < symbol? I can do it with the { so when I press "{" TM
autocompletes it with the end } so it automatically becomes {}. How can I add
that functionality to the "<" symbol so it automatically becomes <>. Thank you.
___________________________________________
Hi,
When i open a folder on textmate, in this case, kohana stack. I open e
file writing some code. Then save it, goto chromium to check. Now when
return to textmate, textmate freezes and takes 100% CPU, after some
time, 5 to 20second, everything comes to normal. This happenes every
time textmate lost focus then got focus again.
step to reproduce,
1. Open textmate and open a file.
2. Goto another app while keeping textmate open, In a word,make
textmate lose focus.
3. Return to textmate, In a word, make textmate got focus.
=> Cpu usage goto 100% and textmate hangs.
I'm suspecting that when getting focus, textmate scans the files for
changes outside textmate, is that it ? if so, is there any workaround
?
Sarim Khan
Hello,
Thanks for your reply. This works for stand alone typed variables but on
snippets where I have let's say a "while loop" with
a certain condition as a place holder:
while (condition) ... end while
after I type my shortcut and press the tab, the snippet completes and takes the
caret into the (condition) variable where If I type the name that I want and
press my shortcut for the macro to add the "$" symbol then TM adds it infront of
"while" so
it becomes:
$while (condition) ... end while
instead of:
while ($condition) ... end while
Any way around this?
Thanks
You can do this by recording a macro. Type a word, then under Bundles on the
toolbar, go to Macros and click Start Recording. Press the key combination for
'move to beginning of word' (which is option+left arrow for me), and then press
'$'. Then click 'Stop Recording'. With any luck you should have a macro that
does 'move to beginning of word' and then 'insert $'. You can do that for all
the characters you need, and obviously much more complicated scenarios. Brandon
> Hello, > I was wondering if that is possible. The symbol for variable in the >
language I > am working on is the "$" sign. > Would it be possible to add this
after the word has been typed and have it > added > in the beginning of the
word? The same would go for the array symbol %, > strings array "!" etc.. > So I
would type "counter" and then decide if I want this to be a variable > or an >
array so depending if I type $ or % after that word it would end up being >
$counter or %counter > Thanks in advance for any input. > Best, > John
That works great thanks!
Is there a way to autocomplete the < symbol? I can do it with the { so when I
press "{" TM autocompletes it with the end } so it automatically becomes {}. How
can I add that functionality to the "<" symbol so it automatically becomes <>.
Thank you.
___________________________________________
You could easily customize the folding patterns. It would be up to you to
decide what your convention would be; just add those angle brackets in to the
pattern and you should be on your way.
You can also easily add more folding patterns. If I'm understanding your
request right, you could simply match on "function" and "end function", etc, you
just need to map them all out. So, combined, something like this:
foldingStartMarker = '\{<[^\/]+>\}|^(loop|function|if|on init)';
foldingStopMarker = '\{<\/.+>\}|^(end (loop|function|if|on))'; If you want to
add more folding matches following the "X/end X" pattern, just add a pipe and
the "X" to the parts in both expressions that look like this:
(loop|function|if|on init) Hope that helps, +dru On Jul 13, 2011, at 8:23 AM,
John Relosa wrote: Hello, thanks, this works ok but now every time I have any
{comment}, TM shows a down fold arrow only (since there is no {/comment}
obviously. Is there a way to have the {block}...code...{/block} folding system
differentiate from regular {comments} It could be something like: {<block>}
{comment on code} code {comment on loop} {<loop>} loop code end {</loop} more
code {</block>} Only the {<...>} ...... {</...>} would have folding markers and
not the regular {comment}. Secondly regarding the language, there is no
standard folding set but it would be nice to set up keywords that would start
and end folds in user defined paired words like function.... end function,
if...end if, on init...end on, etc... Is that possible? Thanks in advance.
You can do this by recording a macro. Type a word, then under Bundles on
the toolbar, go to Macros and click Start Recording. Press the key
combination for 'move to beginning of word' (which is option+left arrow for
me), and then press '$'. Then click 'Stop Recording'. With any luck you
should have a macro that does 'move to beginning of word' and then 'insert
$'. You can do that for all the characters you need, and obviously much
more complicated scenarios.
Brandon
> Hello,
> I was wondering if that is possible. The symbol for variable in the
> language I
> am working on is the "$" sign.
> Would it be possible to add this after the word has been typed and have it
> added
> in the beginning of the word? The same would go for the array symbol %,
> strings array "!" etc..
> So I would type "counter" and then decide if I want this to be a variable
> or an
> array so depending if I type $ or % after that word it would end up being
> $counter or %counter
> Thanks in advance for any input.
> Best,
> John
Hello,
I was wondering if that is possible. The symbol for variable in the language I
am working on is the "$" sign.
Would it be possible to add this after the word has been typed and have it added
in the beginning of the word? The same would go for the array symbol %,
strings array "!" etc..
So I would type "counter" and then decide if I want this to be a variable or an
array so depending if I type $ or % after that word it would end up being
$counter or %counter
Thanks in advance for any input.
Best,
John
Hello,
thanks, this works ok but now every time I have any {comment}, TM shows a down
fold arrow only (since there is no {/comment} obviously.
Is there a way to have the {block}...code...{/block} folding system
differentiate from regular {comments}
It could be something like:
{<block>}
{comment on code}
code
{comment on loop}
{<loop>}
loop
code
end
{</loop}
more code
{</block>}
Only the {<...>} ...... {</...>} would have folding markers and not the regular
{comment}.
Secondly regarding the language, there is no standard folding set but it would
be nice to set up keywords that would start and end folds in user defined paired
words like
function.... end function, if...end if, on init...end on, etc... Is that
possible?
Thanks in advance.
------------------------------
Message: 4
Date: Tue, 12 Jul 2011 13:01:25 -0700
From: Dru Kepple <dru(a)summitprojects.com>
To: TextMate users <textmate(a)lists.macromates.com>
Subject: [TxMt] Re: Custom Folding
Message-ID: <882B4362-5E89-413C-AA0A-BA1FD64670DB(a)summitprojects.com>
Content-Type: text/plain; charset="us-ascii"
A basic folding pattern could be set up like this:
foldingStartMarker = '\{([^\/]+)\}';
foldingStopMarker = '\{\/.+\}';
This won't be smart enough to match the text in between the curly braces, but as
long as you use the slash to mark an end comment, it should be pretty workable.
TextMate will handle nesting as you'd probably expect it to, so this:
{block}
code
{loop}
loop
code
end
{/loop}
more code
{/block}
Should fold as you'd want it to.
Do you have standard folding set up for the language? I don't know what
language you're using, but folding is usually set up for things like functions
and loops, so that's helpful, too. But I mention it because if you have to add
the above markers into an existing language grammar that already has markers set
up, you'll need to do them like this:
foldingStartMarker = 'otherMarker|\{([^\/]+)\}';
Note the vertical pipe in between the new addition and the existing marker;
that's the regex "or".
Also, worth noting that TextMate only matches folds if the start and stop
markers are at the same indent level, not merely if the marker is matched. You
might get some interesting folding results with the additions combined with
goofy indentation.
+dru
On Jul 12, 2011, at 11:12 AM, John Relosa wrote:
Hello,
Excuse my newbie question but I am trying to do custom folding in the language
that I am working on and can't figure out how.
Comments in this language start and end with { comment..... } Anything else is
compilable.
Is there a way to specify something like
{Start of code block}
code
.
.
.
.
{/End of code block}
Thanks
John
_______________________________________________
textmate mailing list
textmate(a)lists.macromates.com<mailto:textmate@lists.macromates.com>
http://lists.macromates.com/listinfo/textmate
-
I'm using TM mostly to edit web sites so lots of html files. Prior to TM I used XCode3's Organizer which I liked a lot but is no longer available in XCode 4. So I've switched to TM lately.
I keep finding garbage at the end of my files.
Stuff like
</script>
</body>
</html>
t('Got back auth_token: ' + json.auth_token); });
})
</script>
</body>
</html>
but TM doesn't show the stuff beyond the first </html> tag. Basically, it seems TM doesn't shrink file sizes correctly when writing them. Closing the file and re-opening it will reveal the mess at the end (as does my web browser :-( ) but I'm getting bitten by this bug a LOT. I'm using version Version 1.5.10 (1631) on Snow Leopard 10.6.8 (although it has been around for a few different versions of SL). No extra bundles or plugins beyond the standard install.
I'm kind of amazed that this kind of bug is hanging around in such a mature product. I can't be the first guy to find this?
-Todd Blanchard
Hello,
Excuse my newbie question but I am trying to do custom folding in the language
that I am working on and can't figure out how.
Comments in this language start and end with { comment..... } Anything else is
compilable.
Is there a way to specify something like
{Start of code block}
code
.
.
.
.
{/End of code block}
Thanks
John
Has anyone seen/made a command that would gather all open windows into a new project? This would be valuable for me, but can’t see the hooks so to do.
cheers,
tim
Hi,
I just noticed that when trying to insert a citation in latex via ALT+ESC in the latex bundle, this warning occurs.
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:177: warning: Insecure world writable dir /usr/local in PATH, mode 040777
What does this mean? Certainly I didn't set any permissions manually. I'm a little confused, the Finder says /usr/bin is 755.
Thanks for your help!
Hi all,
I'm trying to figure out the magic behind $ (the dollar sign) in LaTeX mode,
with no luck.
In LaTeX mode when, say, 2+2=4 is highlighted and the $ is pressed, $2+2=4$
is what you get.
Who (what command or code) does this task?
In general: How to discover the command performed by a shortcut? Is there a
way?
Many thanks in advance.
--
ßlue
--
View this message in context: http://old.nabble.com/How-to-discover-the-command-performed-by-a-shortcut--…
Sent from the textmate users mailing list archive at Nabble.com.
>
> Where may I post a bug or ask for support? I have an issue with keymap
> that I cannot solve but I hostly cannot find a way to get vendor support.
You've come to the right place.
I'm running a Ruby script from TextMate and within that script call a Perl script (gpsPhoto.pl) and would like to capture the error messages and act on them. The messages show up in the TM Running window.
An example of an error that appears in the TM Running window:
Use of uninitialized value $text in pattern match (m//) at /someFolderOnMyMac/gpsPhoto.pl line 3120.
Thanks for any ideas.
Greg
Has anyone worked out any solutions within textmate for remote pair programing? Gnu screen and vim/emacs is ok for me but the guy I'm soon to develop with would be lost in those ide's.
Adam Merrifield
seydoggy.com
820 Strasburg rd, Kitchener,
Ontario, N2E 2Y3, Canada
Email: info(a)seydoggy.com
Office: 519-489-6033
Cell: 519-574-9788
>
> Of course you can make TM scope aware and such, but AFAIK the completion
> mechanism can't be modified. Your bundle can be very refined but you will
> always have to use ESC and press again and again until you find the option
> you need...
The built in completion (ESC by default) might not be able to be modified
(it actually can a little), but almost every language has one or several
completion commands in the bundle. Check out PyRopes, and also the PHP
bundle has a couple different great completion commands.
A question about support.
Where may I post a bug or ask for support?
I have an issue with keymap that I cannot solve but I hostly cannot find a way to get vendor support.
Any suggestion?
Thanks
Andrea Campolonghi
acampolonghi(a)gmail.com
@Gerd
Programmable event driven actions & context menu plugins are actually two of
the most useful realistic suggestions I have heard for TM2. Has anyone
played with SIMBL / APE? What are the chances of us hooking something like
this in ourselves? Are there already Cocoa events that we could hook on to
for that stuff, or does the entire event framework need to be put in?
I've only written a few Cocoa programs so I'm not an expert on that stuff,
but I've been wanting to play around with SIMBL so this may give me the
opportunity. I'm thinking that the context menu thing should definitely be
doable to some extent.
Brandon
On Fri, Jul 1, 2011 at 11:54 AM, <textmate-request(a)lists.macromates.com>wrote:
> 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/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. keymaps (Andrea Campolonghi)
> 2. Re: Capturing error messages (Greg)
> 3. Re: Any news on Textmate 2? (Brandon M Fryslie)
> 4. Re: Any news on Textmate 2? (pier25)
> 5. Remote pair programming (Adam Merrifield)
> 6. Re: Any news on Textmate 2? (Gerd Knops)
> 7. Re: Remote pair programming (Mario "Kuroir" Ricalde)
> 8. Re: Remote pair programming (Gerd Knops)
> 9. Re: Remote pair programming (Mario "Kuroir" Ricalde)
> 10. Re: Any news on Textmate 2? (Will)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 1 Jul 2011 15:38:45 +0200
> From: Andrea Campolonghi <acampolonghi(a)gmail.com>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] keymaps
> Message-ID: <58A56F19-F6B7-4D28-A51C-4B5C79094E47(a)gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I am using mate on an italian keyboard.
> While the menu tell me that I can do shift left wiht command + [ when I try
> nothing happens.
> I have to do alt + command + [ to get a shift left but this last keymap is
> supposed to do code formatting.
>
> Thanks
>
> Andrea Campolonghi
> acampolonghi(a)gmail.com
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 1 Jul 2011 10:17:34 -0700
> From: Greg <web(a)web.knobby.ws>
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Capturing error messages
> Message-ID: <430DB169-BEFC-450C-94C2-6FE9296693B0(a)web.knobby.ws>
> Content-Type: text/plain; charset=iso-8859-1
>
> On Jun 30, 2011, at 10:42 PM, Martin K?hl wrote:
>
> > On Thu, Jun 30, 2011 at 21:58, Greg <web(a)web.knobby.ws> wrote:
> >> I'm running a Ruby script from TextMate and within that script call a
> >> Perl script (gpsPhoto.pl) and would like to capture the error messages
> >> and act on them. The messages show up in the TM Running window.
> >
> > There's nothing TextMate-specific about this, you can capture those
> > messages any way you would otherwise in Ruby. Which way that is depends
> > on how you call the other command, e.g. with backticks you would append
> > `2>&1` to the command line.
> >
> > If you're unsure, [1] has a survey of ways to run subprocesses in Ruby.
> >
> > HTH,
> > Martin
> >
> > [1] http://tech.natemurray.com/2007/03/ruby-shell-commands.html
>
> Thank you. I think this will point me in the right direction.
> Greg
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 1 Jul 2011 10:44:32 -0700
> From: Brandon M Fryslie <bmf(a)email.arizona.edu>
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: Any news on Textmate 2?
> Message-ID: <BANLkTin_9p6eeornUXPq8_m_5dXXc5gcjg(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> >
> > Of course you can make TM scope aware and such, but AFAIK the completion
> > mechanism can't be modified. Your bundle can be very refined but you will
> > always have to use ESC and press again and again until you find the
> option
> > you need...
>
>
> The built in completion (ESC by default) might not be able to be modified
> (it actually can a little), but almost every language has one or several
> completion commands in the bundle. Check out PyRopes, and also the PHP
> bundle has a couple different great completion commands.
>
I'm really excited about it.
The features I'd love to see:
- auto text completion (like in xcode or dreamweaver)
- auto complete based on the project and not only in the file
--
View this message in context: http://old.nabble.com/Any-news-on-textmate-2--tp31959429p31959429.html
Sent from the textmate users mailing list archive at Nabble.com.
Hello,
I wonder if anyone has tested TM with Lion (prerelease).
What are the versions of Ruby and Python with Lion ?
Actually is it possible to work with LaTeX, TM, Python 3 and Ruby > 1.9 ?
Alain
What about using "find in project" ?
shift + cmd + F
or
edit>find>find in project
moom wrote:
>
> Hello.
> How can I find and replace multiple lines of code in the project.
>
> Like this:
>
> <ul>
> <li></li>
> <li></li>
> <li></li>
> <li></li>
> <li></li>
> </ul>
>
>
> TextMate supports searching multiple lines of code in the project?
> Normal searching can do it, but finding that in the project can not.
>
> Do You have any advice please?
>
--
View this message in context: http://old.nabble.com/How-can-I-Find---Replace-multiple-lines-of-code-in-th…
Sent from the textmate users mailing list archive at Nabble.com.
Without opening the whole TextMate 2 can of worms again, I was curious how Lion's App Sandbox would effect TextMate and the whole plugin/bundle atmosphere we all currently enjoy. Would our current MO preclude future versions of TextMate from ever being sandboxed and therefor ever being on the MAS?
Adam Merrifield
I have two snippets in differente bundles (CSS and AS3) with the same tab
trigger.
Why is the AS3 snippet showing up in the CSS bundle? I mean when I press tab
a list appears with both snippets.
Is there a way to avoid this apart from using different tab triggers?
--
View this message in context: http://old.nabble.com/snippets-with-same-tab-trigger-on-different-bundles-t…
Sent from the textmate users mailing list archive at Nabble.com.
I'm trying to create a new file template, and it's not working for
some reason. I can run the script in a regular shell and it works
perfectly, but not within TM.
The script is:
if [[ ! -f "$TM_NEW_FILE" ]]; then
TM_YEAR=`date +%Y` \
TM_DATE=`date +%Y-%m-%d` \
TM_CLASS_NAME=`echo "$TM_NEW_FILE_BASENAME" | perl -pe 'm/
^(unitTest|test)/ && s/(unitTest|test)([[:alnum:]_]*)/$2/'` \
perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' \
< template_in.txt > "$TM_NEW_FILE"
fi
with extension set to "php"
The tempate_in.txt file is:
<?php
/**
* ${TM_NEW_FILE_BASENAME}
* simpletest unit test template: http://www.simpletest.org/
*
* Created by ${TM_FULLNAME} on ${TM_DATE}.
* Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights
reserved.
*
* @author ${TM_FULLNAME}
* @version ${TM_DATE}
* @package undefined
*/
require_once('simpletest/autorun.php');
include '../class.${TM_CLASS_NAME}.php';
class Test${TM_CLASS_NAME} extends UnitTestCase
{
private static $testlog = 'testlog.log';
function setUp()
{
error_log(PHP_EOL.'==================
%<=========================='.'Test${TM_CLASS_NAME} start '.date("Y/m/
d.H:i:s").PHP_EOL,3,self::$testlog);
}
function test1()
{
}
}
?>
When I run it in a normal shell with the command:
rm unitTestDebug.php ; TM_NEW_FILE=$PWD/unitTestDebug.php
TM_NEW_FILE_BASENAME=unitTestDebug TM_ORGANIZATION_NAME='Miishka'
TM_FULLNAME='Tamara Temple' sh -vx new.sh
I get a file in the current directory as unitTestDebug.php containing:
<?php
/**
* unitTestDebug
* simpletest unit test template: http://www.simpletest.org/
*
* Created by Tamara Temple on 2011-06-23.
* Copyright (c) 2011 Miishka. All rights reserved.
*
* @author Tamara Temple
* @version 2011-06-23
* @package undefined
*/
require_once('simpletest/autorun.php');
include '../class.Debug.php';
class TestDebug extends UnitTestCase
{
private static $testlog = 'testlog.log';
function setUp()
{
error_log(PHP_EOL.'==================
%<=========================='.'TestDebug start '.date("Y/m/
d.H:i:s").PHP_EOL,3,self::$testlog);
}
function test1()
{
}
}
?>
which is exactly what I would expect. If I call up the template in TM
drawer's new file creation dialog, I get nothing.
so I'm stumped.
Any help?
Hello,
When I use the categories menu item:
Bundles->Blogging->headers->Category
i get an error message.
Fetching of the blog posts is working!
I get the exception as listed below: (Hope this works on the list?)
Kind regards
Dick Barends
(Mac OS 10.6.7 ; TextMate by macromates.com)
I’ve installed Fletcher Penney’s Markdown/MultiMarkdown bundle in ~/
Library/Application Support/MultiMarkdown. But when I try the Preview
command in TextMate, I get the error
/bin/bash: line 11: multimarkdown: command not found
The multimarkdown command is installed in /usr/local/bin which
TextMate has in its PATH variable. The command line also knows
multimarkdown is there.
What am I missing?
--
View this message in context: http://old.nabble.com/Multimarkdown-command-not-found-by-TM-Preview-tp31907…
Sent from the textmate users mailing list archive at Nabble.com.
Good morning,
I'm using TextMate with and Mac OSX Snow Leopard.
In the Ruby Bundle, ^B Left one character works just fine...
However, ^F Right one character doesn't...rather than moving right one character the following message is displayed: "NOTE: Gems latest_load_path is depreciated...".
I checked 'Select Bundle Item' list but could not find ^F entry...
I'd appreciate help.
Thank you
I am something of a newbie to Textmate. When I try to compile with the Latex
Bundle, I get the following message:
---------------------------------------------------------------------------------------------------------------------------------------------------
The current PATH is:
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/X11/bin
Please add the directory containing “kpsewhich” to PATH in TextMate's Shell
Variables preferences.
Alternatively, the PATH can be retrieved from Terminal but this requires a
relaunch: Set PATH and Relaunch.
---------------------------------------------------------------------------------------------------------------------------------------------------
I saw that there were users on this list who had encountered similar
difficulties, but I tried some of the suggested solutions, and they didn't
seem to work.
When I launch the alternative path, it creates a new path which is exactly
the same as the previous path. I would be grateful for any help with this. I
can't seem to figure out how to get this to work, despite numerous attempts.
Thanks in advance for considering helping me out with this.
Best,
Miguel
Dear Sirs,
Amy update on the below request.
Regards,
Janardhan Shivarudrappa
_____
From: Bits Software [mailto:sales@bitsonline.co.in]
Sent: Wednesday, June 15, 2011 12:13 AM
To: 'textmate(a)lists.macromates.com.'
Subject: License clarification
Dear Sirs,
I had purchased the Textmate product to on my client behalf Sourcebits
Technologies P Ltd. I wanted the license to be registered in my client name
itself.
But when I purchase the software the mail was saying that the owner is
sales(a)bitsonline.co.in. could you guy help me out on registering the license
name in my client's name.
I have purchased 6 Lic of Textmate which was purchased yesterday.
Please help us out on this.
Regards,
Janardhan Shivarudrappa
Bits Software Online
Ph 9632227977
Dear Sirs,
I had purchased the Textmate product to on my client behalf Sourcebits
Technologies P Ltd. I wanted the license to be registered in my client name
itself.
But when I purchase the software the mail was saying that the owner is
sales(a)bitsonline.co.in. could you guy help me out on registering the license
name in my client's name.
I have purchased 6 Lic of Textmate which was purchased yesterday.
Please help us out on this.
Regards,
Janardhan Shivarudrappa
Bits Software Online
Ph 9632227977
>
> (1) Add a feature that gives the option to redirect Bundle error messages
> to
> either a tooltip, or a new document .
> (2) Add a feature that allows you to click on a Bundle error message, and
> see it automatically jump to the offending line in the original document.
> (i.e. error message at line 700). This could be done by providing an error
> parser regex (perhaps bundle specific), so if the error regex matches, it
> grabs the line number from the error output, and jumps to that specific
> line
> number in the original document, making it easier to edit the document!
These features are already in TextMate. You can edit the bundle to redirect
error messages to a file (if it is a shell command use 2</dev/null, etc).
Unfortunately it isn't as easy as it could be to redirect stderr to a
different place than stdout (like the output dropdown in the bundle editor)
so this may not be feasible for you.
For number 2, the PHP bundle does it when you press validate and it detects
an error. You can take a look at that bundle to see how they do it. The
command is Validate (ctrl+shift+v) and it goes to the first line with an
error.
Brandon
Hello!
Sometimes, some bundles that I run, generate a lot of error messages (i.e.
repetitive error messages about a bad CSS format that I'd like to ignore
temporarily for now). The tooltip is bigger than the screen.
I'd like to edit the Bundle for "Html Tidy" to redirect all error messages
into a separate document, instead of a tooltip. How do I edit it? I'm not
familiar enough with Ruby to make that 1-line edit necessary (I think one of
you Ruby pro's can spend 30 seconds teaching a Ruby newbie like me! I
appreciate it.)
Thanks!
Mark Rejhon
--
View this message in context: http://old.nabble.com/Bundles-%28i.e.-HTML-tidy%29%3A-Redirecting-error-mes…
Sent from the textmate users mailing list archive at Nabble.com.
Hi Folks,
I found some free time today and couldn't think of anything better to do[1]
than trying to extend the life support of Edit in TextMate.
* The result is available on GitHub[2].
* The bundle uses SIMBL[3], so install that first.
* Install to `$HOME/Library/Application Support/SIMBL/Plugins/`.
* If you installed the old input manager, remove it.
It has seen an /incredible/ lack of testing, but I used it a handful of times
and it didn't set my computer on fire.
So far I've seen work with TextMate, TextEdit and Xcode, and /not/ work with
Safari.
Feedback, bug reports and patches welcome, and apologies in advance if I don't
get around to responding quickly at the moment.
Cheers,
Martin
[1] Well apart from a bath actually, but after that.
[2] https://github.com/mkhl/edit-in-textmate/
[3] http://culater.net/software/SIMBL/SIMBL.php