I was also having this issue and found the solution in a single character in
php.ini: be sure that the variables_order setting begins with "E" (mine was
missing):
variables_order = "EGPCS"
It looks like the issue was due to PHP's $ENV global being left empty due to
this setting. I'm guessing this is because of the default "production"
php.ini that ships with the PHP distributed with MacPorts.
I've posted a few additional links and error output on our development blog:
http://echodittolabs.org/blog/2010/03/fixing-textmates-php-commands-macport…
--
Ethan Winn
ethan(a)echoditto.com
I'm almost done with the smart autocompletion bundle for PHP. However I'm wondering trying to figure out if I should include autocompletion for variables that are not defined during the class declaration; but that are defined within a method.
For example:
class MyExample extends Example
{
public $indexed_variable;
public function myTestMethod()
{
$this->indexed_variable_2 = 'Should this be indexed for the Autocompletion?';
$this->index{autocompletion}
}
}
Should $this->index... autocompletion show, the $indexed_variable_2? or only the one defined during the class declaration (not within methods).
Any comments will be appreciated.
- Mario "Kuroir" Ricalde
Hi,
I've installed the latest version of TextMate on Mac OS 10.5. Then I
updated all my bundles with:
cd /Library/Application\ Support/TextMate
svn co http://svn.textmate.org/trunk ./
>From time to time I stay up-to-date with:
cd /Library/Application\ Support/TextMate
export LC_CTYPE=en_US.UTF-8
sudo svn update
Now I'm running Snow Leopard (I upgraded the existing OS) and I
encounter a lot of errors. However I don't know if it worked on
Leopard...
For instance if I use "Reformat Selection" from the Javascript bundle,
the file content is replaced with:
PHP Deprecated: Comments starting with '#' are deprecated in
/private/etc/php.ini on line 1060 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in
/private/etc/php.ini on line 1214 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in
/private/etc/php.ini on line 1274 in Unknown on line 0
PHP Notice: Undefined index: TM_BUNDLE_SUPPORT in
/private/tmp/temp_textmate.8LRFl1 on line 19
PHP Warning: require(/lib/beautify.php): failed to open stream: No
such file or directory in /private/tmp/temp_textmate.8LRFl1 on line 19
PHP Fatal error: require(): Failed opening required
'/lib/beautify.php' (include_path='.:/usr/lib/php') in
/private/tmp/temp_textmate.8LRFl1 on line 19
I have another problem with the ack bundle:
http://github.com/protocool/ack-tmbundle When I launch the command I
get "ruby: no such file to load -- cgi (LoadError)" but since it's not
an official bundle I suppose that I should ask on their mailing-list
:)
Thanks,
Thomas
Hello,
Currently, apple-left takes me to the end of the line. I'd like to change it
so apple-comma takes me there. That way I don't have to search for the arrow
keys. How can I find where this is defined? Generally, when I want to change
a key command, how can I track it down without searching manually through
every bundle?
thanks,
-Morgan
Hello all,
I've prepared some updates to the PHP bundle to bring it up to date with PHP
5.3. This includes language grammar support for namespaces, closures,
Nowdoc syntax, and a few other changes/updates. I also updated all of the
functions.txt and functions.plist completions to PHP 5.3.1. I made some
small changes to the generate.rb script and added a simple PHP script to
populate the functions.plist file, so re-generating these should be a bit
easier in the future. I forked the bundle on Github and pushed my changes
there.
http://github.com/voxwerk/php.tmbundl<http://github.com/voxwerk/php.tmbundle/commits/master>
e
I'm not really sure what to do next as far as getting feedback or who to
send any patches to, so I figured firing off an email to the mailing list
would be a good start.
Thanks everyone for doing such an awesome job on all of the bundles!
-Josh
> Gaby Vanhegan:
>
>> I've been working on a PHP Smart Autocompletion / Intellisense for Textmate and I though I would ask a couple of questions to any PHP Developer interested on the idea:
>>
>> 1. Would you like smart code completion to work only on the included files or in the current project?
>
> Whole project. FlashDevelop have got this kind of thing right, if you could use that as a model then you'd have an amazing plugin.
>
>> 2. What Frameworks for PHP do you use with textmate?
>
> If you can get point 1 right then this doesn't matter.
>
>> 3. Do you mind if the bundle creates an extra hidden folder to cache the parsed code?
>
> For me, no. Provided there was an option to clear that cache somehow.
>
>> When I say Smart Autocompletion, I mean it'll know your classes inheritance, how you call them, the scope, etc.
>
> FlashDevelop goes even further with this, parsing JavaDoc style comments and using them as tooltips in the autocomplete. Very handy.
Gaby, I already got it right. Parsing all the competent files on the project and parsing them accordingly; good to know I'm on the good path.
It's good to know what Frameworks you work on, yes it does matter. Mostly because most of them use different naming conventions adding prefixes to the "real classes" and removing them from the loading process. ( for example, new MyClass will load MyFrameWork_MyClass ).
The PHP Smart Autocompletion is prepared to work with the tooltips with documentation; however, the Textmate provided DIALOG is not good enough to handle this kind of stuff; I'll be adding it later when Joachim finishes his mod.
> On Mon, Mar 1, 2010 at 2:33 PM, Gaby Vanhegan wrote:
>
> I totally agree with Gaby. The same thing is with Flash Builder.
> If you could get this kind of behavior it would be my YES for still working
> TextMate - I'm currently checking other editors for code completion.
>
> Btw. how advanced the progress is? :) When can we expect some preview? :) Or
> you gonna make it TM2 like - just rumors :)
> Still TM is my favorite editor and I don't want to switch to other ... :)
As I already stated, the behavior can be achieved; it's just a matter of time before Joachim updates his mod for dialog. Also, it's good to know that this bundle will actually make some PHP Developers use TextMate more :)
About how advanced the bundlee is:
I already had a pre-beta, which was a complete mess and was my first try. Doing it wrong with Regular Expressions. It worked, but not with as smart as I wanted it to be. About the current version, here's what I have and what I need to do:
PHP Parser, 90% done.
It's almost perfect, I just need to make a little tweaking. For instance, I'm thinking about storing definition of class-level variables within a class method. Even if they were not defined during the definition of the class via "public/private/protected/static $var".
Project Files, 100% done.
Caching Process, 95% done.
Need some tweaking on this. Will leave it for the after-release.
Current Scope Identification 10%
I need to work more on this, because of the way TextMate handles "words", $this->sad are 3 words, which means I'll need to parse the current line for autocompletion, resolve the variables and scope and then perform the project parsing.
Building of the AutoCompletion 80%
After resolving the relationship, scope, visibility, etc. The building will come in. I already have this done because of the pre-beta.
About the release date; I'm not sure. I'm working on it on my free time and today is my birthday; so I won't have a lot of time for me to work with it today. I'll try to keep you posted. If you can please give me any ideas to add it would be great, because this is the best stage for doing that.
Hello,
Has anyone else noticed a change in Textmate's behavior wherein the file
dialog defaults to the root of the local volume, as opposed to the most
recently used directory?
AFAIK, Textmate did not behave like this in the past. I am using build
1589. I notice that this behavior is only on my Snow Leopard (10.6) and
not another Mac running 10.5. Any ideas out there?
Cheers,
AZ
I've been working on a PHP Smart Autocompletion / Intellisense for Textmate and I though I would ask a couple of questions to any PHP Developer interested on the idea:
1. Would you like smart code completion to work only on the included files or in the current project?
2. What Frameworks for PHP do you use with textmate?
3. Do you mind if the bundle creates an extra hidden folder to cache the parsed code?
4. How frequently do you use Namespaces? ( PHP 5.3 )
When I say Smart Autocompletion, I mean it'll know your classes inheritance, how you call them, the scope, etc.
I've been using TextMate for a couple of years now for HTML, CSS and especially Actionscript 3 development.
Yesterday I decided to install the Flash Builder4 plugin for Eclipse trial and it totally messed up my TextMate system. I can no longer
compile AS3. I've uninstalled Flash Builder 4 and it still doesn't compile. TextMate won't even load the flex-config.xml file.
I noticed that when I tried to compile in TextMate after installing FB4 it would load the flex-config.xml from the newly installed
FB4 instead of my original location.
Does anyone have an up-to-date comprehensive setup for using the Flex SDK with TextMate? Everything I found on the web
via searches are two to three years old. I believe that I have everything in order but still can't compile.
Thanks,
-Gerry
On 26.02.2010, at 13:00, 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: Help setting up run. (Alex Ross)
> 2. Re: Cocoa development with Textmate no Xcode (Kevin LaCoste)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 25 Feb 2010 19:42:46 -0800
> From: Alex Ross <z-textmate(a)lasersox.net>
> Subject: [TxMt] Re: Help setting up run.
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <BB46E466-9115-4645-8DB0-033C0AC1AA76(a)lasersox.net>
> Content-Type: text/plain; charset=utf-8
>
> Hey Ted,
>
> There is a Make bundle distributed with TextMate. I think this is
> the ideal way to run a makefile. The ?Build? command is bound on ?
> B. You can build a specific target with ??B.
>
> ?Alex
>
> On Feb 24, 2010, at 9:22 AM, Eduardo Gutarra wrote:
>
>> Hi everyone,
>>
>> I want to set a command to run a makefile to build
>> a CUDA, and run it from the Debug/ folder. However
>> I hate hardcoding the name of the executable, is it possible
>> to use a variable that depends on the file I'm standing on
>> or the name of the director from which make is being executed
>>
>> Also, I would like to make an alternate command with which I
>> can tell make what target to execute.
>>
>> . "$TM_SUPPORT_PATH/lib/webpreview.sh"
>> html_header "Running make"
>>
>> make ${TM_MAKE_FLAGS} 2>&1|"${TM_RUBY:-ruby}" -rtm_parser -
>> eTextMate.parse_errors
>>
>> Debug/Sum 2>&1|"${TM_RUBY:-ruby}" -rtm_parser -eTextMate.parse_errors
>>
>> echo "Done."
>> html_footer
>>
>> Any help appreciated,
>> Ted
>>
>>
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate(a)lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 26 Feb 2010 13:49:38 +0900
> From: Kevin LaCoste <kevin.lacoste(a)gmail.com>
> Subject: [TxMt] Re: Cocoa development with Textmate no Xcode
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID:
> <de8bb3e71002252049n29dba47bxa2f812594049970a(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thu, Feb 25, 2010 at 2:58 AM, Gerd Knops <gerti-
> textmate(a)bitart.com>wrote:
>
> My absolute favorite feature is that all my log output shows up in
>> Textmate's build panel with a clickable link, leading me directly
>> to that
>> place in code. All you need to do is make sure log output has a
>> certain
>> prefix (eg you need a custom NSLog replacement).
>>
>
> That sounds like an interesting tip for a blog post (hint, nudge,
> wink)!
>
> I would second the opinion that it's probably smarter to keep Xcode
> for your
> project management tasks while you are learning. If you're working
> through
> tutorials or a book things will be much easier to follow along with,
> not to
> mention all of Apple's sample code.
>
> I'm sure my setup is pretty simple but it basically amounts to me
> dropping
> the project folder on TextMate and using it for all
> editing/searching/navigating then switching to Xcode for build/run/
> debug
> type stuff. Getting familiar with the triggers for Cocoa and the
> general
> navigation aids is probably the most important thing to do. Command-
> T and
> command-shift-T are huge.
>
> I too would be very interested to hear how others are using TextMate
> to
> eliminate trips to Xcode though.
>
> Kevin LaCoste
>
Hi everyone,
I want to set a command to run a makefile to build
a CUDA, and run it from the Debug/ folder. However
I hate hardcoding the name of the executable, is it possible
to use a variable that depends on the file I'm standing on
or the name of the director from which make is being executed
Also, I would like to make an alternate command with which I
can tell make what target to execute.
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "Running make"
make ${TM_MAKE_FLAGS} 2>&1|"${TM_RUBY:-ruby}" -rtm_parser -
eTextMate.parse_errors
Debug/Sum 2>&1|"${TM_RUBY:-ruby}" -rtm_parser -eTextMate.parse_errors
echo "Done."
html_footer
Any help appreciated,
Ted
Hi,
TextMate always opens / reactivates the last file and in 80% of the cases that is pretty annoying for me.
How can configure Textmate so that just a blank new untitled document is shown on every startup of TextMate?
The options in the preferences don't have this effect ...
thanks for any help!
Is there a hidden feature or bundle I can use to draw a horizontal guide
line at an arbitrary column, say, 80 to meet the PEP8 standard?
Thanks.
--
Wells Oliver
wells(a)submute.net
Hello
I used to have a textmate command that was running a zend studio binairies
in command line to check php syntax ; it was a lot better than the simple
php syntax check bundled with the php Bundle, as it told me when a var was
not declared, and asked for coding standard respect.
I can't find it anywhere, if someone could help me....
thanks a lot
have a nice day
--
View this message in context: http://old.nabble.com/php-syntax-check-tp27639670p27639670.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi, I used macports to install ruby 1.9 (because my rubygems fell off the
map when I installed fxruby >.<)
$which ruby1.9
/opt/local/bin/ruby1.9
$which gem1.9
/opt/local/bin/gem1.9
But I'm pretty sure my Ruby bundle is still using 1.8, Is there a relatively
pain-free way to switch it over?
Hello,
I'm trying to use the sql.bundle with TextMate 1.5.9 (1510) and Postgres
8.4.2 (kyngchaos binary).
After the configuration when I click on excecute line as query, I see this
error message:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/keychain.b
undle:
dlopen(/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/key
chain.bundle, 9): no suitable image found. Did find: (LoadError)
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/keychain.b
undle: no matching architecture in universal wrapper -
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/keychain.b
undle from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Suppo
rt/bin/db_browser_lib.rb:5 from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Suppo
rt/bin/db_browser.rb:8:in `require' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/SQL.tmbundle/Suppo
rt/bin/db_browser.rb:8
I've already tried to set up TM_PSQL shell variable, but that did not help.
Thanks for your help.
Peter
On Feb 9, 2010, at 7:43 PM, Boysenberry Payne wrote:
>> Was wondering if there was an easy way to get () and [] to indent the same way {} happen in my perl documents?
On Friday, February 12, 2010, at 04:35AM, "Boysenberry Payne" <boysie(a)boysenberrys.com> wrote:
> Does anyone know where I'd even need to look to try and get the right kind of indentations set up for my perl scripts?
One idea would be to create a command bound to Return that tests for the brackets you want, then reindents accordingly. No idea if that's the best way or even a good way, but it's something to try.
Off the top of my head, there could be a Preferences item that might affect what characters trigger the indendation, or something along those lines anyway. Anyone with more experience developing bundles care to weigh in?
--
Adam Sharp
The following two valid PHP snippets trip up the PHP grammar in TextMate.
Mostly because of unusually nested quotes and braces:
Snippet #1:
<?php
$str = array("Foo", "Bar");
echo "Name: {$str[($str[1]) ? 1 : 0]}"; // Should echo "Name: Bar"
?>
The text "($str[1" appears highlighted as a syntax error
Snippet #2
<?php
$insert = mysql_query("INSERT INTO `catalogue` SET
`model`='{$_POST["page_row{$count}_model"]}',
`type`='{$_POST["page_row{$count}_type"]}',
`updated`=UNIX_TIMESTAMP()
;");
?>
Everything in the document after this snippet is treated as a string.
Hopefully these are simple grammar file fixes :)
Cheers,
Brian
--
View this message in context: http://old.nabble.com/PHP-Grammar---Syntax-Highlight-Bug-tp27280995p2728099…
Sent from the textmate users mailing list archive at Nabble.com.
Alex, Tony,
thanks for all the efforts you guys put into this.
These two solutions solved my issues as well.
Thank you!
Claus
On 2010-02-11, at 1:00 PM, textmate-request(a)lists.macromates.com wrote:
>> This is the same trace I get with the dylib *enabled*, which leads me to believe that you've still got a dylib somewhere. You can make sure it's disabled by setting the variable TM_INTERACTIVE_INPUT_DISABLED=true in TextMate's shell variables preference pane.
>>
>> TextMate will always use the dylib at $TM_SUPPORT_PATH/lib/tm_interactive_input.dylib. You can find $TM_SUPPORT_PATH by entering ?echo $TM_SUPPORT_PATH? in a TextMate document and press CTRL+R to run that line with bash.
>
> Alex,
>
> Thanks for all your suggestions. Both of these suggestions worked for me. Setting the environment variable seems to be the easiest solution. Also, your second suggestion allowed me to find a third (and final?) copy of the dylib in:
>
> ~/Library/Application Support/TextMate/Pristine Copy/Support/lib/
>
> Thank you for your help and your patience.
> -Tony
> Allan Odgaard wrote:
>
> On 10 Jan 2010, at 14:04, Claus wrote:
>> I removed the tm_interactive_input.dylib, however TM (python bundle
>> -- run script) is still keeps running for a long time until I "stop
>> task", no error message.
>>
>> Does anybody have other ideas?
>
>
> Run ps/pstree to see if Python is running.
>
> Use ‘sample «pid»’ to sample the python process, that might give an
> idea of why it is stalling.
>
> Try minimize your script to the smallest possible that can reproduce
> the problem.
I'm having the same problem as Claus; removing tm_interactive_input.dylib did not help on my system either.
This problem can be reproduced with the following 2 lines:
import matplotlib.pyplot as plt
plt.plot([0,1])
Unfortunately, the script doesn't appear in the list of processes displayed by "ps", but it shows up as a Python process that's "not responding" in the Quit Applications menu (Command-Option-Escape) and Activity Monitor.
Claus; to answer your earlier question (off list): I'm relatively certain this issue is not related to your particular install of matplotlib. I've tried older revisions of Matplotlib (where previously, I did not observe this issue) and they now exhibit this issue.
I noticed this issue shortly after updating to TextMate r1589 (automatic "cutting-edge" update) and OS X 10.6.2 (minor version update): both around the same time. Is there a way to revert to an older revision of TextMate to see if this issue was caused by something in the update?
Also of note: A friend of mine has the same issue, but, only on his machine running 10.6---another machine runs 10.5 and does not have this issue.
-Tony
I'm running Snow Leopard (10.6.2) currently and I'm having a problem where my
cursor changes to the arrow pointer while in a TextMate document. The only
plugin I'm using is ProjectPlus, and the problem happens even with that
plugin disabled. Ideally, the cursor would always be the vertical
text-selection pointer (not sure what you would actually call that).
Obviously this is more of an annoyance than anything, but being the OCD guy
that I am, it's driving me nuts. Nobody else seems to be having this
problme :(
Any help would be appreciated.
Thanks!
Ben
--
View this message in context: http://old.nabble.com/Cursor-problem-tp27505419p27505419.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi all-
I just installed subtleGradient's Javascript Tools bundle and tried
the "Validate with Google Closure Compiler" and got this:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
[snip]
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
I'm not hugely Java-literate, but I surmise, using Leopard 10.5.8
here, that GCC wants Java version 6 here, and my Java preferences are
set to 32-bit Java 5, and then 64-bit Java 6.
So can I run this with the Java 6 installed in Leopard? And can I
alter subtleGradient's "lint-gcc.rb" to run Java 6 rather than setting
my global preferences? How?
Many thanks in advance!
Charles
On the command line, 'which git' returns '/usr/local/git/bin/git'
So I put that in the TM_GIT Shell Variables list. But now when I try to use the bundle it keeps giving me this error:
sh: line 3: /usr/local/git/bin/git : No such file or directory
Do you have PATH set in TextMate preferences? That could throw it off the scent.
Best wishes
----
David F. Snyder,
Department of Mathematics
Texas State University
601 University Drive
San Marcos, TX 78666
"It will be well for us not to assume an attitude of condescension
towards the crowd. Because in the matter of looking without seeing we
are all about equal. We all go to and fro in a state of the observing
faculties which somewhat resembles coma. We are all content to look and
not see." -- Arnold Bennett in "The Author's Craft" (1914)
dsnyder(a)txstate.edu
On the command line, 'which git' returns '/usr/local/git/bin/git'
So I put that in the TM_GIT Shell Variables list. But now when I try to use the bundle it keeps giving me this error:
sh: line 3: /usr/local/git/bin/git : No such file or directory
What could I be doing wrong?
Thanks!
Guessing I'm the 32342 person to ask this but google wouldn't help me out.
Any of you clever people out there know a way to define a file on a per
project basis to augment the autocomplete for the current scope and doc?
Main use cases for me are pointing to a library file to autocomplete method
names and pointing to a CSS file to be able to autocomplete ID and class
names.
Thanks for any help.
Will
I'm aware of some of the limitations (no shell + file management), but since the iPad allows for more `traditional' application, it's also a thing Apple could be forced to add features developers and customers want (see, for instance, a real dev kit for the iPhone).
In case of LaTeX, you'd also need some form of `multitasking:' after you finish editing, you compile the file and then you open it in a pdf reader.
However, without a clear sign of demand, nothing is going to change ;-)
Max
Dear all,
I've followed, from a far point of view, the migration of some bundles (in particular the Make bundle) from the old Subversion repository to the new GitHub repository. But I never took the time to go and fetch any bundle from what seems to be the future repository "of choice." Until... Makefile bundle disappeared after an SVN update on the root of my bundle directory.
I tried to use the GetBundle bundle to get the Makefile bundle, from the GitHub repository, but the command "Install Bundles" asks me to wait and finishes without other notice. I was about to try to get it using the command line Git tool, but as nothing in the TM manual tells about it, I don't like the idea. Plus, I cannot find a way to have a list of all the TM bundles from GitHub. And the archives of this list haven't helped me.
So here is my question: what is the "official" way to get bundles from GitHub?
Thanks in advance.
Best regards,
Mathieu
___________________________________________
Mathieu Godart
ASIC Integration Manager
Coolsand Technologies
___________________________________________
I'm not quite sure if this is a bug per-se, but I ran into a problem
attempting to create C & CPP template files, related to how the existing
Objective-C template shell works (and interacting with it):
When you create a new file from template using File->New From Template->foo
the environment variables for $TM_NEW_FILE and $TM_NEW_FILE_DIRECTORY seem
to get interpreted such that they wind up pointing at a directory under that
user's /tmp. The problem is that if any template shell script has already
created an "untitled<n>.h" file there, that file causes the new template
shell script's "exist" test to fail, and you wind up loading the (colliding)
file generated by the prior template shell script. When dealing with three
different template types (C, C++, and Objective-C) all who expect to also
generate a .h file, the chance of such a collision becomes very high.
I looked at possibly using a timestamp to try and differentiate, but that
causes a problem if the user actually triggers the template shell script
from the Project window. In that case, the script receives
properly-populated $TM_NEW_FILE and $TM_NEW_FILE_DIRECTORY variables, and
thus you don't have the same problem of trying to avoid "tmp" naming
collisions.
It seems like there are a couple of obvious solutions:
1. TextMate could populate a variable to indicate whether the template is
being run from the Project window (in which case $TM_NEW_FILE and kin are
properly populated, and should be unique), or from the "File->New From
Template" menu item (in which case they are not, and you need to avoid
collisions because all template scripts are dumping in the same tmp
directory, using "untitled"-based names).
2. Alternately, in the "File->New From Template" case, TextMate itself
could initially provide a _unique_ $TM_NEW_FILE_BASENAME and friends
(perhaps append a `date "+%y%m%d%H%M%S"` to the basename?). That would
prevent collisions in the tmp directory even when multiple templates
provided files with overlapping file extensions.
There also appears to be an issue over time of these left-over template
shell script file "breadcrumbs" created when "untitled<n>.foo" files are
initially created, but the user presumably saves the file with a real name
afterwards. There really doesn't appear to be any way for template scripts
to clean up the tmp dir after themselves. Not a big deal if the filename
collision problem gets solved, but eventually they'll start to create a fair
amount of "Spotlight clutter", etc. which can become an issue.
Love the program, and am quite impressed by how much is already possible
with V1's facilities. That said, I'm really looking forward to V2 and the
more powerful snippets/templates/etc. I've been rather spoiled by Slickedit
on PC, and keep hoping TextMate will offer similar abilities (I refuse to
use that X-Window abortion Slickedit calls a "Mac version").
Thanks!
-John W.
--
View this message in context: http://old.nabble.com/%22File-%3ENew-From-Template%22-shell-script-%22issue…
Sent from the textmate users mailing list archive at Nabble.com.
I doubt this can be done with the current version of TextMate but I want to
put it out there and see what people suggest.
When working on git repositories, I find myself jumping from branch to
branch often. We use branches heavily in my company for everything from
little on-demand bug fixes to entirely new features. Most times switching
branches means closing all tabs and opening tabs relevant to the selected
branch. It also often involves expanding a number of folders in the drawer
but this happens less often as I am a keyboard freak and rarely use the
drawer.
It would be awesome if switching branches could trigger TM to close the
current tabs and open the ones being worked on the last time this branch was
selected. Even better if cursors were moved to the right positions too.
Now, I realize this is too specific for TM to have natively but it would be
nice nonetheless. I wonder if a plugin could do this? Maybe by using git
branch identifiers as keys to layout specifications that can be saved
elsewhere as plugin data.
Does this sound doable? Can anyone point me in the right direction to
documentation that I can use to maybe give this a shot? I'm happy to work on
a plugin if people are interested in something like this.
Cheers.
Luis
Hi all,
Is there any way to change the highlight color of the text you are
searching for? I know that there is a Selection color option in the
Preferences, but I would rather leave that at the standard pale blue
(in the Mac Classic) for normal selection highlighting. I would like
to have the found text show with a background color of red, or some
shade of red. I find it difficult sometimes to scan a lot of real
estate in the edit window trying to find the text that was found. A
more dominant color would fit the bill here nicely.
Thanks,
Barry
Hi
I would like to make a command or a macro
to preview a file latex2e.html. This the LaTeX2e reference manual
http://www.tex.ac.uk/tex-archive/info/latex2e-help-texinfo/
1 ) I don't know how to make this
I try to convert latex2e.html to latex2e.markdown
with textmate and I try a command like
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "LaTeX2e Help" "LaTeX"
"$TM_SUPPORT_PATH/lib/markdown_to_help.rb" "/Users/ego/Library/latex2e.markdown"
html_footer
but there is a problem. Some links don't work
and sometimes I need to stop the task (wheel :) )
I try with latex2e.html it's better but I get
some similar problem.
2 ) If I open latex2e.html and I use show web preview then
it's fine but I don't know how to get this with a command
3 ) is it possible to record a macro for something like that ?
4) I can make something like that
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
html_header "$title" "Latex2e Reference manual"
open -a safari /Users/ego/Library/latex2e.html
html_footer
But I would like to make this with web_preview and perhaps without
a simple css.
Thanks Best regards
Alain Matthes
Hi
I've been digging in the sequence of calling that makes ^H to fail in C++ (TM 1.5.9 1589). It seems that
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/html_man.sh
looks for
RMAN_1='/Library/Application Support/Apple/Developer Tools/Plug-ins/DocViewerPlugIn.xcplugin/Contents/Resources/rman'
RMAN_2='/Developer/Library/Xcode/Plug-ins/DocViewerPlugIn.xcplugin/Contents/Resources/rman'
and vuala! the second one does not exists and the first one returns nothing looking for simple words like "printf"…
I am not aware of previous threads related with this one, but I don't doubt at all that there must be many.
Is there any workaround, update, or change I should do to have help working?
- juan falgueras
>
> Date: Tue, 12 Jan 2010 09:05:55 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: LaTeX bundle; reference/citation completion bug +
> suggested fix
>
> On 11 Jan 2010, at 09:55, Andrew Hill wrote:
> > it seems to be the character %0A
>
> 0x0A is not shown as a diamond with show invisibles.
>
> Try instead to select the diamond in TextMate and press ??X to
> convert it to hexadecimal.
>
>
Right you are!
My apologies and thanks for teaching me a new trick. I also just discovered
if I open up the "Edit -> Special Characters..." menu item, I can drag and
drop the character into the window there to see what it is.
Anyway, it's the 0x0D character (carriage return) — I suspect my browser or
the clip-board decided to clean up the line endings of the copied/pasted
text by converting CR to LF before...
So it's picking up the CR char because my .tex file has CRLF line endings,
and I guess the ruby script is finding ends of lines by LF character only.
To test this, I converted the document to LF line endings and the original
ruby script worked fine (as did the one with the .strip addition).
With the CRLF line endings, the .strip (or better yet a removal of just
trailing CR) is required. Alternatively, can ruby deal with CRLF line
endings on its own?
For completeness I tried saving my document with CR line endings, and the
error message was basically a re-paste of my entire document as the filename
(i.e. Ruby is not parsing the CR chars as line endings, only LFs). Though I
doubt anyone really uses CR line endings...
Andrew
Hello Hans,
thanks for the hints, but I believe you misunderstood me. I don't want to change syntax highlighting within the editor, but the colors in the output, which are now blue on blue. I have found out that there's a stylesheet for that somewhere on my system but I can't seem to find it. At least, it is not included in the bundle itself.
Regards,
Paul
Hello.
I completely switched from the R Console to R.tmbundle in TextMate and am until now very satisfied with my decision. Nevertheless, I'd like to change the colors in the runtime from all the blues to something more subtle. Is thery any way to do this with environment variables? I didn't find anything in the documentation.
Regards,
Paul
> Bundles → Bundle Editor → Show Bundle Editor… → Filter button
>
> You always want the TextMate, Text and Source bundles to be enabled.
Worked like a charm, thank you....
Boysenberry Payne
Habitat LIfe, Inc.
http://www.habitatlife.com/
> From: Michael Sheets <mummer(a)whitefalls.org>
> Date: January 23, 2010 3:10:53 AM MST
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: [TxMt] Re: Messed up my perl bundle
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> On Jan 23, 2010, at 3:32 AM, Boysenberry Payne wrote:
>
>> I messed up my perl bundle, i.e. it no longer indents after brackets opening brackets, etc.
>
> Bundles → Bundle Editor → Show Bundle Editor… → Filter button
>
> You always want the TextMate, Text and Source bundles to be enabled.
>> From: Boysenberry Payne <boysie(a)boysenberrys.com>
>> Date: January 23, 2010 2:32:44 AM MST
>> To: textmate(a)lists.macromates.com
>> Subject: [TxMt] Messed up my perl bundle
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>
>> Hello,
>>
>> I messed up my perl bundle, i.e. it no longer indents after brackets opening brackets, etc.
>>
>> I did several things like install new Bundles, plugins etc. today and didn't check it until after doing it all, so I'm not really sure what broke it.
>> Anyway, I was hoping there was a way I could restore the perl bundle. I've already deleted both the ~/Library and /Library versions as well as deleted it in TM and restored it via the instructions online.
>> Nothing has fixed the issue. TO tell you the truth I'm not sure the bundle is even broken per se, just that it no longer indents after { etc...
>>
>> Anyway I can fix this?
>>
>> Thanks,
>> Boysenberry Payne
Hello,
I messed up my perl bundle, i.e. it no longer indents after brackets opening brackets, etc.
I did several things like install new Bundles, plugins etc. today and didn't check it until after doing it all, so I'm not really sure what broke it.
Anyway, I was hoping there was a way I could restore the perl bundle. I've already deleted both the ~/Library and /Library versions as well as deleted it in TM and restored it via the instructions online.
Nothing has fixed the issue. TO tell you the truth I'm not sure the bundle is even broken per se, just that it no longer indents after { etc...
Anyway I can fix this?
Thanks,
Boysenberry Payne
Hi. I did notice this before, but it is still there :/
Find dialog. RegExp, a text selected, Option-Find [Sigma] (to count only in the selection) => gives you wrongly the whole matched count, not the count inside the selection.
Thanks
(This message was already forwarded to bibiko(a)eva.mpg.de)
Hello -
I recently upgraded my OS and started having strange problems with the R
bundle. Multiple helper daemons would be spawned every time I typed in a
function name!
The problem code is patched below. I use MacPorts' "R", which does not match
the "/Lib.*" regexp. Instead, it should match "/opt/local/lib/R/bin/exec/R".
Any other patch should work as well.
Without the patch, every time there is an error with the "help" function, a
new "R" is spawned; (see the attached as an example). I had over 20
processes running at once, and was wondering why my fans were on and my
system was slow... :-)
Thanks!
-Andrew.
--
Andrew D. Fernandes, Ph.D. (andrew(a)fernandes.org)
Departments of Biochemistry and Applied Mathematics
The University of Western Ontario, Canada
Mobile Telephone +1 519 614 8106
Index: Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh
===================================================================
--- Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh (revision 11908)
+++ Bundles/R.tmbundle/Support/bin/startRhelperDaemon.sh (working copy)
@@ -1,4 +1,4 @@
-RPID=$(ps aw | grep '[0-9] /Lib.*TMRHelperDaemon' | awk '{print $1}' )
+RPID=$(ps aw | egrep '[0-9]
(/Lib.*TMRHelperDaemon)|(/opt/.*TMRHelperDaemon)' | awk '{print $1}' )
#check whether Helper daemon runs if not start it
if [ -z "$RPID" ]; then
WDIR="$TM_BUNDLE_SUPPORT"/bin
Hi
What is the best way to build this engine from TexShop
#!/bin/tcsh
set path= ($path /usr/texbin /usr/local/bin)
set filename = "$1"
set asyname = "${filename:r}.asy"
pdflatex -synctex=1 "$filename"
asy -v "$asyname"
pdflatex -synctex=1 "$filename"
Best regards
Alain Matthes
Hi,
I have this little problem, when I want to compile
with xelatex and with the xdv2pdf driver, I need to
go in the prefs of the LaTeX Bundle.
Remark : xdv2pdf is a good driver with the mac and
dvipdfmx _default driver_ has a problem with transparency)
I need to use xelatex engine with
option : -output-driver="xdv2pdf" -synctex=1
But I work normally with pdflatex and I need
to change all these prefs after each compile
with xelatex
With TexShop, I use
%!TEX TS-program = xelatex-xdv2pdf
How to get this with TM
Thanks
Best Regards
Alain Matthes
Forgive me if this has been beat to death on this list, but is there any
suitable way to develop in python using TextMate? The code collapsing
doesn't work, and the included python bundle does something I consider,
well, wrong by indenting blank lines to maintain the indentation level. This
isn't really a great thing to do.
Any tips?
--
Wells Oliver
wells(a)submute.net
The simplest "program" is two lines long -- the problems are related to matplotlib only:
import matplotlib.pyplot as plt
plt.figure()
I set the environment variable TM_PYTHON to /sw/bin/python
In Terminal, "which ipython" returns /sw/bin/ipython
If I execute both lines in ipython, the matplotlib window pops up, as expected.
While my two-line script is running in TextMate,
ps -Am
returns two (why two?) python processes:
1835 ?? 0:00.83 /sw/bin/python -u /Users/claushaslauer/Desktop/present work/test/mtplTest.py
1812 ?? 0:00.89 /sw/bin/python -u /Users/claushaslauer/Desktop/present work/test/mtplTest.py
sampling those two processes results in essentially identical files, only difference is the number in front of each line. I attached both files, because I can't interpret them.
For matplotlib:
In [3]: matplotlib.__version__
Out[3]: '1.0.svn'
installed via
http://macinscience.org/?page_id=6
Does this point to any issue?
Thanks,
Claus
On 2010-01-10, at 4:35 PM, textmate-request(a)lists.macromates.com wrote:
> Message: 6
> Date: Sun, 10 Jan 2010 15:59:02 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: still problems with matplotlib
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <4DF5B26D-1A4B-4F45-89E7-94A5C7DF9A17(a)textmate.org>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
> delsp=yes
>
> On 10 Jan 2010, at 14:04, Claus wrote:
>
>> I removed the tm_interactive_input.dylib, however TM (python bundle
>> -- run script) is still keeps running for a long time until I "stop
>> task", no error message.
>>
>> Does anybody have other ideas?
>
> Run ps/pstree to see if Python is running.
>
> Use ?sample ?pid?? to sample the python process, that might give an
> idea of why it is stalling.
>
> Try minimize your script to the smallest possible that can reproduce
> the problem.
>
> ------------------------------
Hi there,
There seems to be a bug in the LaTeX bundle's reference/citation
auto-complete for my specific set-up.
I'm fairly sure I've fixed it (though its possible this is not the best /
most generic method) so I'll try to describe my problem / situation:
In my project I have a master .tex document, and several other .tex files
(each with something like the following line as their first line):
%!TEX root = ../thesis.tex
When I attempted to auto-complete references/citations I'd get this error
(output directly in my file at the cursor, not as a pop-up or tooltip):
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in
`initialize': No such file or directory -
/Users/andrew/Documents/Uni/Papers/Writing/Thesis/thesis.tex
(Errno::ENOENT)
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in
`open'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:19:in
`options'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:45:in
`master'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb:56:in
`get_labels'
from /tmp/temp_textmate.oacqrp:8
File:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb
The file that it claims does not exist definitely exists, but in the error
message that was output in my document, there was a diamond character
immediately after "thesis.tex", visible because i have the "Show Invisibles"
TextMate setting enabled.
I copied the text including the diamond character and pasted it into a
web-based ascii-to-hex converter (http://centricle.com/tools/ascii-hex/) and
it seems to be the character %0A, i.e. the Line Feed or new line character
(\n), suggesting the script is erroneously including the \n as part of the
TEX root filename property.
- I've checked the document in TextMate with Show Invisibles on and cannot
see any extra characters
- I've also tried deleting the line and typing it out again
- I've tried using absolute and relative paths for the root document
property
None of these solved the problem (and none had any detrimental effect after
I'd fixed it as described below).
I've fixed the problem by editing the script:
/Applications/TextMate.app/Contents/SharedSupport/Bundles/LaTeX.tmbundle/Support/lib/LaTeXUtils.rb
and changing line 42 from:
new_master = (master.parent + Pathname.new(opts['root'])).cleanpath
to:
new_master = (master.parent + Pathname.new(opts['root']*.strip*)).cleanpath
This fix would probably break the functionality of the root file if the full
specified path is required to start or end with a space (e.g. the root file
is called "master.tex "). I don't think quotation marks are allowed here to
account for this somewhat unlikely scenario, but it may well break the
script for someone. Perhaps a slightly better fix would be to remove a
single trailing \n character if it is present (however this is beyond my
Ruby scripting abilities).
Anyway, hope this is of some help and some kind of fix can be put into the
official bundle
cheers,
Andrew
Hello all.
I¹ve looked through the archives and didn¹t see anything resembling this
problem so I¹m sorry if it has already been addressed elsewhere.
When using the autocomplete feature (option-escape) or other certain
snippets in Textmate via either Ruby or Ruby on Rails, I receive the
following error:
/usr/local/lib/ruby/1.9.1/pathname.rb:270: warning: `*' interpreted as
argument prefix
/tmp/temp_textmate.0sHwXc:38:in `<main>': undefined method `to_a' for
"":String (NoMethodError)
What I¹ve tried so far:
1. Reinstalled Textmate
2. Reinstalled both Ruby and Ruby on Rails bundles. I tried the bundles from
both the SVN and the github sources.
3. Set the TM_RUBY variable to point to my system installed 1.8.7 folder
It¹s worth noting that snippets and autocomplete fails in other languages as
well PHP comes to mind. I¹m new to using Textmate fulltime for development
so this error is beyond confusing for me. This did not start happening until
after I updated ruby from 1.8.7 to 1.9.1.
Thanks in advance for any help you can offer.
Hi all,
I just discovered zen-coding (http://code.google.com/p/zen-coding/), which I find quite impressive. You can view a screencast for a quick overview of it's capabilites on Vimeo: http://vimeo.com/7405114.
Full TextMate support has been added recently (you'll have to install Zen.Coding.tmbundle, Zen.CSS.tmbundle and Zen.HTML.tmbundle).
Sorry for the noise if you already have been aware of this, but IMHO this is just too good to miss it…
Cheers,
Andreas
I have an issue where a 3rd party Textmate bundle is hiding a standard
bundle. Next, I have tried
changing the uuid of root .plist as well as the Syntaxes .plist of the 3rd
party bundle without any
success. Thus, the standard tmbundle isn't displayed within the Bundle
Editor or the Textmate ->
Bundles. If anyone has any ideas, please let me know.
Thanks in advance,
-Conrad
> Message: 3
> Date: Sat, 9 Jan 2010 17:20:24 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: textmate and matplotlib
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <D146CDDD-8300-445F-B433-2B198156A990(a)textmate.org>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
> delsp=yes
> On 8 Jan 2010, at 14:44, Claus wrote:
>
>> I can execute scripts that contain matplotlib code perfectly well
>> from the command line (this one http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_example…
>> for example), but when I run them from within TextMate, python
>> keeps running endlessly, no error.
>
> This could be caused by the interactive input library we inject into
> Python (or the enabling of a flat namespace for the linker, whcih a
> Python library has previously been incompatible with).
>
> The easy fix is to:
>
> rm /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
> tm_interactive_input.dylib
>
> There is also an environment variable you can set, but I can?t find it
> ATM (away from my regular machine), I?ll have the troubleshooting
> pages updated with this info.
I removed the tm_interactive_input.dylib, however TM (python bundle -- run script) is still keeps running for a long time until I "stop task", no error message.
Does anybody have other ideas?
Thank you,
Claus
Is it possible to select text from the current position, forward a number of
lines, or to (or even between) a specific line number(s)? Also, is there any
means of selecting text from the current cursor position up until a search
term is found? (ex, I'm on line 30, I search for 'foo', which happens to
occur next on line 57, so lines 30-57 (or at least line 30 through 'foo' on
line 57) are selected.
Appreciate any assistance that can be provided!
--
View this message in context: http://old.nabble.com/select-text-to-line-number%2C-number-of-lines-or-sear…
Sent from the textmate users mailing list archive at Nabble.com.
I find "Shift Left" and "Intent Line" in "Text" menu, but I don't know
the difference of the behaviors. Can anybody explain them to me?
I'm using "Shift Left" all the time, and I sometimes get forced to move
to the next line after running the command.
Wil
I am used to write scientific papers and books with LaTeX since many years,
but I was working with a PC and not a Mac until recently. Hence, my
knowledge on textmate is rather small, and there is a problem which I cannot
fix without some friends outside in the universe. I will describe my problem
step by step:
(1) My mainfile contains
\usepackage{index}
\newindex{default}{idx}{ind}{
Sachverzeichnis}
\newindex{name}{adx}{and}{Namensverzeichnis}
what means that there will be two indices in the book, a regular one
(default) and a name index.
(2) In order to generate the ind- and and-files respectively I used to run
makeindex -o mytex.ind mytex.idx
makeindex -o mytex.and mytex.adx
from the terminal. That will be working as well with my Mac, but it is not
really comfortable.
(3) textmate offers a simple button to produce the ind-file. And now there
is my problem. I would like to know how to create a textmate-command that
produced the needed and-file.
Thanks for help or any advice in advance.
I'm getting a TextMate hang and a beachball whenever I right-click on a
TextMate document, but only in my local profile (i.e. a newly created
account works fine). Have tried deleting prefs and removing all custom
bundles, but no joy.
This is accompanied by a single word message from TextMate in the
console log "INJECT_ENTRY".
Can anyone offer any suggestions as to how I might resolve this?
Thanks in advance,
Chris
Hi,
is anybody here using TextMate with matplotlib/python?
I can execute scripts that contain matplotlib code perfectly well from the command line (this one http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_example… for example), but when I run them from within TextMate, python keeps running endlessly, no error.
Any thoughts why this might be?
Thanks,
Claus
Hi,
Another rookie rails question --
with some of the commands in the bundle, I am getting the innfamous "stack
level too deep"
I have removed builder.rb in both /Library/... and ~/Library/... but no
luck.
How can I determine which builder.php its choking on?
thanks,
--
dc
David Clark
16 Harcourt St #2I
Boston, MA 02116
617/859-3069
Hi,
on my system are two different version of python installed:
- the default of OS 10.6 in /usr/bin/python
- the fink version in /sw/bin/python2.6
How can I tell TextMate which one to use?
Thanks,
Claus
I forked Jacob Rus's Tabular bundle and added a new language, PSV, for
pipe-separated values. It's not much—basically just a rewrite of the
TSV language with the pipe character (|) substituted for the tab—but I
thought it might be useful as a sublanguage for MultiMarkdown, which
uses pipes as field separators in tables.
My fork is at
http://github.com/drdrang/tabular.tmbundle
I don't have enough experience with git to know the right way to
submit it for inclusion in the official bundle, so I decided to
mention it here.
--
Dr. Drang
I'm having trouble with the LaTeX bundle. In the preferences, I select pdflatex, but when I command-R, it appears to be using latex and produces errors. In the "Typeset & View" window, the button always says "Re-Run latex," never "Re-Run pdflatex" as it used to.
I'm using TM Version 1.5.9 (1589).
Any ideas?
Jim
I have been using (and loving) textmate for years - mostly for html, php,
and some text manipulation.
I have all kinds of bundles installed, and think I understand the issue
of scope... maybe.. Like, when i'm editing a php file, I still have the
scope set to html so that I still have all my commands, be it from zenhtml,
mhtml, php, etc or the ones I cant live with out - shift-ctrrl-w (wrap
selection in tag).
i'm now starting to work in ruby and rails - and I have 2 questions:
1. are the ruby and ruby on rails bundles redundant or should I have both?
2. The bigger question - when editing ruby files it does not appear that I
have access to the commands i'm familiar with (see above)
thanks for any and all pointers
--
dc
David Clark
16 Harcourt St #2I
Boston, MA 02116
617/859-3069
How do I get the "Documentation for current word" to work.
Currently I get the following error:
Traceback (most recent call last): File "", line 8, in File "/Library/Application Support/TextMate/Support/lib/dialog.py", line 12, in dialog = os.environ["DIALOG"] File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/UserDict.py", line 22, in __getitem__ raise KeyError(key) KeyError: 'DIALOG'
UserDict.py does exist.
Thanks,
Christopher
With the latex bundle, I can put a %!TEX root = directive in each file, or esle use TM_LATEX_MASTER so whichever file I am editing, I can still compile the whole document.
How do I do this in other contexts, e.g. with a python project?
(I have tried search engines but could not come up with the right query to find the answer).
Thanks,
Christopher
Help needed. Since a couple days, all my ruby
macros calling TextMate::UI.menu( )
produce the following error:
sh: : command not found
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:182:in
`load': Cannot parse a NULL or zero-length data (OSX::PropertyListError)
from /Applications/TextMate.app/Contents/SharedSupport
/Support/lib/ui.rb:182:in `menu'
from /Applications/TextMate.app/Contents/SharedSupport
/Support/lib/ui.rb:177:in `popen'
from /Applications/TextMate.app/Contents/SharedSupport
/Support/lib/ui.rb:177:in `menu'
from /tmp/temp_textmate.wMVbb2:17
I am not able to read inside Support/lib/osx/plist.bundle
since this is a binary file. Can't remember any big changes
in my setup (I moved to Snow Lep a few weeks ago, but
I seem to recall menus worked fine before Xmas).
Any idea or pointers? is Xmas to blame?
Thank you (and best wishes to everyone)
Piero
Is there a command to validate Ruby and Removing trailing whitespace?
I want to improve Command-S for Ruby development. I want to do
both of the commands at the same time.
Wil
Dear TextMate users,
I work with textmate 1.5.8 (1505) and Skim 1.3.3 (51) under Mac OS X 10.6.2 to typeset latex documents. I would like to use pdfsync for jumping "back and forth". I use \usepackage{pdfsync} in the preamble, set Skim to sync with textmate via Skim Preferences => Sync => PDF-TeX Sync support (preset: TextMate; Command: mate; Arguments: -I %line "%file"), and---of course---Skim is chosen as pdfviewer in TextMate. Now I should have shift-command-click for jumping from pdf to the code, and control-option-command-o for the other direction.
I use a main document main.tex which contains some latex code, as well as other chapters included with \input{chapter01}, \input{chapter02} etc.
I can easily go from the pdf file to the code, no matter where I am in the pdf. However, going from the code to the pdf does only work within the main document, not from one of the chapters. Although the pdf file is already open, it does not jump anywhere. Is this a known issue?
I also tried to check the "check for file changes" box in Skim, and used \include commands instead of \input to include the chapters---just played around, but it doesn't help.
Cheers,
marius
Dear TextMate users,
I would like to customize the way in which "Typeset & View (PDF)" works. Under Bundles => Bundle Editor => Edit Commands, I added the line "rm -rf *.toc" to the "Typeset & View (PDF)"-code. However, this did not work. I realized that this is a ruby script (although I have never worked with ruby) and changed my code to "puts `rm -rf *.toc`". Now the .tex document is compiled, but the command does not seem to be executed. How can I add unix shell commands to "Typeset & View (PDF)" to be executed on command+R?
Many thanks,
Marius
Here is the content of "Typeset & View (PDF)":
#!/usr/bin/env ruby
# coding: utf-8
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/process"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/htmloutput"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/save_current_document"
require ENV["TM_SUPPORT_PATH"] + "/lib/tm/require_cmd"
# To enable the typesetting of unsaved documents, you must change the “Save” setting of
# this command to “Current File” and add the variable TM_LATEX_AUTOSAVE to TextMate's
# Shell Variables preferences. Be warned that your document must be encoded as UTF-8 if
# you excercise this option — becauseTextMate.save_current_document cannot know the file
# encoding you prefer.
TextMate.save_current_document unless ENV["TM_LATEX_AUTOSAVE"].nil?
TextMate.require_cmd("kpsewhich")
texMate = ENV["TM_BUNDLE_SUPPORT"] + "/bin/texMate.py"
engine_version = TextMate::Process.run(texMate, "version")
TextMate::HTMLOutput.show(:title => "Typesetting “#{ENV["TM_DISPLAYNAME"] || File.basename(ENV["TM_FILEPATH"])}”…", :sub_title => engine_version) do |io|
TextMate::Process.run(texMate, 'latex', '1', :interactive_input => false) do |line|
io << line
end
end
::Process.exit($?.exitstatus)
Dear TextMate Users,
I think I found a bug in LaTeX syntax highlight
Consider, for example:
\[
\begin{array}{l}
\;\{
\end{array}
\]
Lorem ...
In the above snippet of text the text after the math environment (i.e., \]) is in a math scope. The problem seems to be that the first line after \begin{array} starts with a tex command (i.e., \) and it contains a \{
(easy solution: remember to indent the first line of an array environment; I haven't had time to look at the latex grammar).
All the best
Guido
--
Guido Governatori
http://www.governatori.net/Textmate
in other words automate the process of automatically starting a new line after 80 characters.
I am sure there must be a setting somewhere .....
Thanks,
Christopher
I'm fairly new to mailing lists and was wondering what the standard is
for forming replies. I generally try to follow the reply direction that
the current thread is following but was wondering if there was a standard.
Do I form a reply at the bottom or the top?
also.
Do I include the immediate parent thing I'm replying to or the whole
history?
I knew this once, but can't find it now and it's driving me nuts. When I create a new bundle item it goes into "Steve King's Bundle" by default. I want to change which is the default bundle. What's the magic?
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com
I am running Textmate on Snow Leopard. I've got the Ruby on Rails bundle in
my ~/Library/Application Support/Textmate/Bundles directory. However,
Textmate does not seem to see it? Any ideas...thanks in advance
--
View this message in context: http://old.nabble.com/Problem-installing-Ruby-on-Rails-bundle-tp26780280p26…
Sent from the textmate users mailing list archive at Nabble.com.
I fired up Firefox (the command-line version, so I could specify -jssh and use watir) and found
the following complaint.
firefox-bin[1614:903] Can't open input server /Users/bryanloc/Library/InputManagers/Edit in TextMate
Looking in my console log, I find scads of messages to this effect.
Can anyone tell me how to fix this problem?
Thanks.
Bryan
In my project sometimes i get some emty lines with tabs or tabs, spaces after text
For example:
> for ($i=0; $i < ; $i++)
> {
>
> // ↑line with tab(s)
> //this is a line with space at the end
> }
So i made the regexp: (^[\t| ]+[\n]|[\t| ]+$)
Strange result is that it works when ⌘-f
But when pressing ⌘⇧-f it doesn't search (or won't find anything)
Am i doing something wrong?
Regards Jasper
Alex Ross, thanks for all the hard work you've put into the latex2 bundle.
I have a request that maybe you can help with. There is a command in the latex bundle 'toggle starred' which adds or removes a star from sectioning commands:
/section{}
/section*{}
This works, but when executed it unfolds all of my folded blocks, and leaves the screen such a state that I completely lose where I was. Is this something that can be fixed?
Thanks.
>Is there a bundle for Google's programming language "Go" ? I only found one
>online http://gitorious.org/go-tmbundle , and it was an empty repo.
I put this one together. Let me know what you think....
Carl Forde
However beautiful the strategy, you should occasionally look at the results.
-- Winston Churchill
> Message: 7
> Date: Sun, 13 Dec 2009 18:30:08 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: Unwanted newline php
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <30CEA0C1-8185-4A7B-843F-CE02B65D4FA9(a)textmate.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> On 11 Dec 2009, at 8:41, Ryan Fitzer wrote:
>
>> $fstat = fstat(STDIN);
>> $stdin = fread(STDIN, $fstat['size']);
>
> I am surprised this works. STDIN is a pipe and can?t be stat?ed for
> file size.
>
> I would suggest instead using file_get_contents("php://stdin").
One of the reasons decided to use the fstat method as it was the only
documentation I could find on the STDIN subject that I could make
sense of (new to this). This post was my source.:
http://muffinresearch.co.uk/archives/2007/03/19/using-php-cli-for-textmate-….
Also, php.net's explanation offered the following, further making up my mind:
"php://stdin, php://stdout and php://stderr allow direct access to the
corresponding input or output stream of the PHP process. The stream
references a duplicate file descriptor, so if you open php://stdin and
later close it, you close only your copy of the descriptor--the actual
stream referenced by STDIN is unaffected. Note that PHP exhibited
buggy behavior in this regard until PHP 5.2.1. It is recommended that
you simply use the constants STDIN, STDOUT and STDERR instead of
manually opening streams using these wrappers."
source: http://php.net/manual/en/wrappers.php.php
I just plugged your recommendation in and it works fine. Thanks for the tip.
Ryan
--
Ryan Fitzer
Los Angeles, CA
http://www.ryanfitzer.comhttp://www.ryanpatrickfitzer.comhttp://www.portfoliorodeo.com
Normally on textmate I write something like this:
if($data)
{
if($var == 'two')
{
echo 'hello';
}
// I hit enter here
//Goes here...
// insted of here
}
The issue is that normally when I hit enter it would stay flush on the next
line where it would normally go. I noticed that after I installed Snow
Leopard I run into an issue where it no longer stays flushed, instead it
goes to the very beginning, and i have to hit "tab" in order to return to
the original location i wanted.
I have Snow Leopard at home and at work, same programs. This just happened
after I reformatted my comp at work, and it's a new install of Snow Leopard,
with new install of PHP I haven't added any bundles, etc...
Anyone have any ideas what might be the issue?
I'm writing a command using php that reorders a css property list by
string length. The problem I'm having is that a newline character is
being added at the beginning of the result for some reason (using
Replace selected text). I've consulted this thread
http://lists.macromates.com/textmate/2007-April/019068.html but I've
found no way of echoing a string without the newline being added. Here
is the command:
#!/usr/bin/php
<?php
$fstat = fstat(STDIN);
$stdin = fread(STDIN, $fstat['size']);
//print_r($stdin);
$pattern = '/\{(.*)\}/Us';
preg_match($pattern, $stdin, $matches);
$output = trim($matches[1], "\n");
$output = preg_split('/\n/', $output);
function sort_strlength($val_1, $val_2) {
// initialize the return value to zero
$retVal = 0;
// compare lengths
$firstVal = strlen($val_1);
$secondVal = strlen($val_2);
if($firstVal > $secondVal) {
$retVal = 1;
} else if($firstVal < $secondVal) {
$retVal = -1;
}
return $retVal;
}
uasort($output, "sort_strlength");
$out = '{' . "\n";
foreach($output as $line) {
$out .= $line . "\n";
}
$out .= '}';
print(trim($out));
?>
Any help would be appreciated.
Ryan
--
Ryan Fitzer
Los Angeles, CA
http://www.ryanfitzer.comhttp://www.portfoliorodeo.com
Hi,
what do I have to do if I want to convert from
array.each { |e| puts e }
to
array.each do |e|
puts e
end
I found the command toggle 'do ... end' / '{ ... }' but I don't know
exactly how to use it. Where has the cursor to be positioned? Do I have
to select any text?
The shortcut ^{ won't work because I have a German keyboard. But even if
I choose the command from the menue nothing happens.
thanks,
Martin
After some time I tried again to blog from textmate on wordpress.
One question, I get all the '"' translated to " also if I'm in
[source] code block.
That is a problem because in the wordpress page those areas don't get
interpreted, and if I change them they will go back to " next time
I post it.
Any solution for this problem?
Hi,
just encountered a tiny inconsistency in:
"$DIALOG" menu --items '({title = foo;}, {separator = 1;}, {header=1; title = bar;}, {title = baz;})'
It shows instead the keyboard shortcuts 1 and 2 the "old" keyboard shortcuts ⌘1 and ⌘2.
This should be fixable easily by:
in Commands/menu.mm ⇢ uncomment line 69.
Cheers,
--Hans
Ever since upgrading to snow leopard scrolling via page up/down is broken. The current line does not move in sync with the viewable area. It jumps down what appears to be a random amount and sometimes even jumps back up when pushing page down.
Am I the only one experiencing this? I can produce a screen cast if necessary to demonstrate the behavior.
Thanks,
Rick
Hi,
I've discovered a little bug where new class creation from ³New From
Template² doesn¹t work if any of the path in the file system leading down to
your project directory contains a space.
So the path to my project is /Users/sam/Documents/Current Work/ProjectName/
Current Work in the path is apparently not escaped properly, as the ³New
>From Template² does work in ~. I looked at template_machine.rb, but I don¹t
know ruby so I¹m struggling to find the right bit/command to use to escape.
Thanks
--
Sam Thorne
UI Design Group
Sony Design Centre Europe
The Heights, Brooklands,
Weybridge, Surrey
KT13 0XW
Tel: +44 (0)1932 816263
************************************************************************
The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only.
This email and any response may be monitored by Sony to be in compliance with Sony's global policies and standards
When I use the TODO bundle I want it to scan the entire project, but it defaults to scanning the file selected in the. project drawer.
That leads to this annoying workflow:
- Call up TODO list
- Scratch head why it's empty
- Remember
- Curse
- Finde selected file in project drawer and deselect
- Call up TODO list
How can I get the TODO bundle to always scan the entire project?
Thanks
Gerd
Hi,
The ActionScript bundle provides a nice theme.
The ActionScript 3 bundle [1] has the autocomplete I want, but no color
syntax.
How can I tell the AS3 bundle to use the color syntax that the AS bundle
provides?
[1] http://svn.textmate.org/trunk/Review/Bundles/ActionScript%203.tmbundle
Any hints or tips is highly appreciated! :)
--
Martin Stabenfeldt
On 08/12/2009, at 11:00 PM, Rick DeNatale wrote:
> Well, I got WriteRoom for free in the last MacHeist bundle. So unless
> someone is paying you to use Ommwriter. <G>
Did you actually have a look at the Ommwriter website? http://www.ommwriter.com/. It's in beta, and free.
On 7 Dec 2009, at 15:08, Rick DeNatale wrote:
> This reminds me of WriteRoom
> http://www.hogbaysoftware.com/products/writeroom
>
> Only with more toys to distract you.
I was sceptical too, but I downloaded the app to give it a go. Sure it seems to be full of "toys", but IMHO the stroke of genius is in the ambient background music. Once I got started with an Ommwriter session I was engrossed within 5 minutes, no distractions. The music combined with the serene background image really does help you focus (and I mean really---try me).
Adam Sharp
Hi,
how could I do this?
Would like to:
unsubscribe: maillists(a)gmx.de
subscribe: trinix+maillist(a)gmail.com
Not working: http://macromates.com/community
Best
--
Christian
-Bill Gates is a very rich man today ... and do you want to know why? The answer is one word: versions.-
Dave Barry
I'm seeing the following in my system console messages when I bring up TextMate:
08.12.09 17:04:23 TextMate[1390] Can't open input server /Users/bryanloc/Library/InputManagers/Edit in TextMate
However, I see the complaint occurring in other programs, like this:
08.12.09 16:57:48 UnmountAssistantAgent[1357] Can't open input server /Users/bryanloc/Library/InputManagers/Edit in TextMate
Can anyone tell me exactly what this means and how I can fix it?
Thanks in advance,
Bryan
I'm working on a command to reflow perl/shell style # comments and running into a problem with scopes.
When I do a 'select scope' with the mouse on a comment, it correctly selects the surrounding lines beginning with #. However, if I set up a simple 'cat' command (seen here: http://grab.by/WGt) with the input set to "Selected Text or Scope" and the output set to tooltip, the tooltip is displaying the entire contents of the file (seen here: http://grab.by/WHB)
I'm running Version 1.5.8 (1509) on 10.6.2. What am I missing? Thanks!
Matt
Hi
I'm not an expert with Ruby so I need to know if the next command is safe
I want to select a "number" and to get $\numprint{number}$ if number is not empty
and number is not inside a math environment
or
\numprint{number} if number is inside a math environment.
then
if number is empty, I want to get \numprint{...} or $\numprint{...}$
I made this and I would like to know if this code is correct
#!/usr/bin/ruby
# Created by Alain Matthes on 2009-11-15 (www.altermundus.com).
require ENV["TM_SUPPORT_PATH"] + "/lib/exit_codes.rb"
if ENV['TM_SELECTED_TEXT'].nil?
input = ENV['']
else
input = ENV['TM_SELECTED_TEXT']
end
if ENV['TM_SCOPE'].match(/math.((.*)|(la))tex/)
$math_del = ""
else
$math_del = "\\$"
end
TextMate.exit_insert_snippet("#{$math_del}\\numprint{#{input}$0}#{$math_del}")
Is it possible to use a shortcut to go out of the first environment {...} and then to go out
of the math environment because the caret is inside {number} ?
Best regards
Alain Matthes
I'm editing R code (under the "R" bundle), and having a number of
issues where I keep getting the dreaded spinning beach ball, and have
to wait a number of seconds before I can keep working. Notably,
whenever I typing in command and then enter the first '(' there is a
significant lag before I get the help pop-up. This is rather
annoying, as typing in simple statements takes a long time.
I had suspected this was a 2.9 versus 2.10 help system issue, so I
upgraded to R 2.10.0 and still had the issue. I also deleted all
traces of 2.9.2 and earlier from my machine, and I still have the
issue.
I'm running MacOSX 10.5.8. Perhaps I am seeing an issue for something
different between 10.5 and 10.6, but I am unable to upgrade to 10.6
for the time being.
I don't know if this is related, but when I start the Rdaemon, I also
see an error:
--
/Users/albert/Library/Application
Support/Rdaemon/daemon/startScript.sh: line 173:
regular
( -
regular
( + 2: syntax error in expression (error token is "( -
regular
( + 2")
>
--
-albert
Hi I'm Dave Miers and primarily use Textmate as an html editor. So I really haven't delved into the depths of what textmate is capable of. I'm still dependent on aids such as are found in the bundles etc.
I note as of the last update the drag snippets for flash and quicktime in the html bundles no longer works correctly. Now I'm not sure when this broke exactly, I just noticed it. version 1.5.9 (1589) I've repeated the problem on 2 systems one being PPC running 10.5.8 and on intel running 10.6.2
Here's an example of flash insert:
/tmp/temp_textmate.194vJJ:75:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 1: syntax error: unexpected end of file>>' for nil:NilClass (NoMethodError)
from /tmp/temp_textmate.194vJJ:61:in /bin/bash: -c: line 0: unexpected EOF while looking for matching `''
/bin/bash: -c: line 2: syntax error: unexpected end of filenew'
from /tmp/temp_textmate.194vJJ:99
and quicktime:
2009-12-02 09:47:40.425 osascript[1505:903] Error loading /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found. Did find:
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture in universal wrapper
osascript: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable handlers.
134:135: syntax error: Expected “,” but found number. (-2741)
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="Movie Recording.mov">
<param name="controller" value="true">
<param name="autoplay" value="true">
<embed src="Movie Recording.mov"
controller="true" autoplay="true"
scale="tofit" cache="true"
pluginspage="http://www.apple.com/quicktime/download/"
>
</object>
I'm totally lost on this any help?
TIA
Dave
The reason I went back to a mac yet again was to get textMate. There is a
version for PC out there if you do a search for PC Version of textMate that
seems to support all the bundles.
Is there a way to get the ``Watch Document'' option to be master-file
aware? It seems to me that watching the master file doesn't work,
because it only re-compiles when the master changes, and watching the
included files doesn't work because it's not a whole latex file---I
get the error
Error: No \begin{document} found
I couldn't find the command \begin{document} in your file.
Help is much appreciated, as always.
Evan
--------------------------------------------------
Prediction is difficult, especially the future.
Niels Bohr
Javikel wrote:
> I want to buy TextMate but I want to obtain a new release, because I don't
> want to pay now for the 1.5.9 version and in 2 months pay again for an
> update.
Worry not:
http://wiki.macromates.com/FAQ/TextMate2
Cheers,
Paul
Currently the TODO Bundle is giving me this message.
I've searched the list and tried solutions given on page:
http://manual.macromates.com/en/bundles#support_folder.html
but got stuck at par. 5.7.4
In Terminal:
echo "$TM_SUPPORT_PATH"
Doesn't give any result at all. Can anyone explain what I've done wrong?
Thanks,
Gert
Ruby: 1.8.7.
Textmate: 1.5.9 (1589)
OS X: 10.6.2
Hi,
I've set TextMate to automatically save files on losing focus. At the moment, I find myself editing files on an external device which I have to mount/unmount frequently to test changes. When the project is open and the device is unmounted, TextMate produces a warning beep when it loses focus to remind me that files could not be saved. However, when I close the project, TextMate will continue to beep every time I switch to another app. The only remedy to this annoying behaviour is to restart TextMate, which is of course a pain in the neck.
Is there some hidden setting so I can turn the warning off?
Jonas
I’ve added my LDIF bundle to GitHub.
http://github.com/skurfer/LDIF.tmbundle
Can someone with access remove it from the Review directory in the official SVN repo so it doesn’t show up twice in GetBundles?
(I don’t see it yet, but I’m assuming it’ll show in GetBundles eventually just based on its name. Is that right?)
Also (mostly for Allan), any chance we can add an LDIF icon and Info.plist entry for .ldif files?
Thanks.
--
Rob McBroom
<http://www.skurfer.com/>
Suddenly my diffs from the subversion bundle are failing with the error message:
exec of ‘fmdiff’ failed: No such file or directorysvn: ‘fmdiff’ returned 255
I checked my path and everything seems fine, and in fact the command line has no trouble finding it.
Any ideas?
For now I am working around it by putting the full path in the TM_SVN_DIFF_CMD variable (/usr/local/bin/fmdiff)
Thanks
Simon Olsberg
Been fiddling back and forth for a while. Does the blogging bundle actually work to set/send tags for wordpress blogs? Or do you just need to do that via the admin interface or a wordpress plugin?
- Open a new document
- Paste this:
((72 / 2.54) * 2.54)
- Run the "Evaluate Line" command from the Math bundle.
- Wonder where the result came from:
((72 / 2.54) * 2.54) = 71.99999999999999999999
Really.
--
Ale Muñoz
http://sofanaranja.comhttp://bomberstudios.com
>> Try typing that into an empty TextMate document and then hitting Ctrl-R. Should give you the output you're after.
>>
>> Adam Sharp
>>
>> _______________________________________________
Gert van Oss wrote:
> I merely use TextMate for LateX so no clue what to do with the info I receive as result?
>
> echo "$TM_SUPPORT_PATH"
> /Applications/TextMate.app/Contents/SharedSupport/Support
>From some cursory reading online it sounds as if an upgrade of TextMate may have caused your issue, due to clashes with outdated versions of bundles and/or the Support folder.
http://lists.macromates.com/textmate/2007-July/020815.html
Your TM_SUPPORT_PATH variable just indicates that you're using the version of the Support folder that came with your TextMate package. Maybe trying this fix could solve your issue, to ensure you're using the default bundles supplied with TextMate (and there aren't any clashes):
http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles
It's linked to in the email above.
Hope that helps!
Adam
Am I missing something or is there now a way to keep the Web Preview
window permanently open for the last viewed HTML file?
This would be a massive help :)
Could it be achieved via a plugin?
Cheers,
James
-------------------------------------
### Feature Requests
1. Have the *web* *preview* always shown, if it has been opened. It should
then display whatever is in the selected tab, if the file meets some
"*web* *preview*able" criteria. If the current tab is showing an html file,
or a php file, or a .asp file, change the *web* *preview* to it, otherwise,
leave it displaying the last file that did match.
This will enable a lot of very useful editing, like changing the CSS
and having the *preview* update automagically, as outlined next.
> In Terminal:
>
> echo "$TM_SUPPORT_PATH"
There's your issue, that shouldn't be done in Terminal.
> Doesn't give any result at all. Can anyone explain what I've done wrong?
Try typing that into an empty TextMate document and then hitting Ctrl-R. Should give you the output you're after.
Adam Sharp
I'm editing R code, and having a number of issues where I keep getting
the dreaded spinning beach ball, and have to wait a number of seconds
before I can keep working. Notably, whenever I typing in command and
then enter the first '(' there is a significant lag before I get the
help pop-up. This is rather annoying, as typing in simple statements
takes a long time.
I had suspected this was a 2.9 versus 2.10 help system issue, so I
upgraded to R 2.10.0 and still had the issue. I also deleted all
traces of 2.9.2 and earlier from my machine, and I still have the
issue.
I don't know if this is related, but when I start the Rdaemon, i see an error:
--
/Library/Application Support/TextMate/Bundles/R Console
(Rdaemon).tmbundle/Support/bin/execute.sh: line 141:
regular
( -
regular
( + 2: syntax error in expression (error token is "( -
regular
( + 2")
tail: /Users/albert/Library/Application Support/Rdaemon/r_out: invalid
number of bytes
--
-albert
The bug seems to only effect Snow Leopard installations that use
Bazaar and ProjectPlus within TextMate. It does not seem to be a
Textmate problem.
In Snow Leopard switching off the Bazaar support in the preferences ->
Project+ fixes the problem. (This tab is there only if ProjectPlus is
installed).
With Bazaar support off Textmate will work properly. This is the case
even if you have upgraded to the latest Bazaar for Snow Leopard.
John
Hi,
in the 1589 release notes, I found the entry
[FIXED] Out-of-bounds array access when running mate in a non-GUI
context (sudo/ssh) on Snow Leopard — ticket B334CC8C.
which made me curious: Can I run TextMate in a non-GUI context? Have you
found a good way™ of making mate in an ssh session work better? Or what
does this refer to?
I did check http://ticket.macromates.com/show?ticket_id=B334CC8C, but
failed to see any sudo/ssh connection in there. I did find ticket
38874736, which is marked as a duplicate of that geck, however.
Christopher
Hi all,
I've a tiny question. Who is using R versions BEFORE R 2.10 ?
Since R 2.10 has changed some essential stuff it's really a stony way to support both R approaches.
Please let it me know privately.
Many thanks in advance!
Best,
--Hans
On 25/11/2009, at 8:32 AM, textmate-request(a)lists.macromates.com wrote:
> Date: Tue, 24 Nov 2009 17:43:28 +0100
> From: Allan Odgaard <mailinglist(a)textmate.org>
> Subject: [TxMt] Re: OakDocumentDisableFSMetaData in build 1589
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <D7B1C72F-713E-4B09-BFEE-B3A6B939EC88(a)textmate.org>
>
> On 24 Nov 2009, at 17:17, King, Steven wrote:
>
>> [...]
>> If I wanted to disable metadata on this drive would I specify the
>> device (/dev/disk3), mount point (/Volumes/THUMB), file system type
>> (msdos), or something else? Can you provide an example, please?
>
> File system, so that would be:
>
> defaults write com.macromates.textmate OakDocumentDisableFSMetaData
> '( msdos )'
>
> The value is an array in old-style plist format, so for multiple file
> system use: '( msdos, afps, nfs )'.
Anyone know what the filesystem would be for sshfs? The reason I ask is
that MacFUSE is used, and I suspect that might confuse things.
Cheers,
Will :-}
Just downloaded build 1589 and found this in the release notes:
[CHANGED] OakDocumentDisableFSMetaData can now be an array of file systems for which the use of extended attributes should be disabled.
That sounds extremely useful, but I'm not quite sure what the syntax should be. Take my thumb drive, for instance:
/dev/disk3 on /Volumes/THUMB (msdos, local, nodev, nosuid, noowners)
If I wanted to disable metadata on this drive would I specify the device (/dev/disk3), mount point (/Volumes/THUMB), file system type (msdos), or something else? Can you provide an example, please?
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com<http://www.arbornetworks.com/>
Hi
Allan wrote about autocomplete and F5 :
"You can use 'escape' to auto-complete. Although it's not exactly the same as the systems function (the system brings up a menu, TextMate just inserts the first match and lets you cycle between matches with [shift] escape)."
1) Almost every text box you use is a Cocoa text box ( Safari web form boxes, the documents in Pages or TextEdit, the email composer in Mail, etc...) and F5 is used to autocomplete words ( there is a bug with french dictionnary because if you complete Étu you lose the accent and you get Etude )
The text boxes in Textmate are not Cocoa however, why F5 and not F6 or another key in the Text Bundle?
F5 is used by Apple’s Cocoa text system so perhaps it's preferable to respect the Apple guide.
I now I can change the shortcuts or modify / create keybindings.dict but ...
How many shortcuts of the Apple’s Cocoa text system are modified by TextMate?
2) I suppose there is a technical problem to implement the F5 functionality but F5 is very interesting with TextEdit or Page because the completion with the dictionnary is fine and the language is auto detected, ⎋ and ⌥ ⎋ are fine ( ⌥ ⎋ has always a bug with LaTeX ) but is it possible in TextMate to implement the F5 functionality?
Best Regards
Alain Matthes
Hi,
I am trying to create a foldingStopMarker for Python language as '^\s*##' but it
seems to be triggered only when I don't have any space before ##. This seems to
be the problem with any stop marker beginning with whitespace. Is there a way
around?
TM 1589.
Thanks!
Abhi
Hello All:
I noticed when scrolling left to right on pages that the line numbers and gutters also goes away with it. Is there a add on or something to make it stay no matter where I am in the code horizontally?
Thanks for any help or advice on this,
Paul Squillace
Webmaster
Kardwell International, Inc.
http://www.kardwell.com
phone: 631.298.0005
fax: 631.298.1518
Playing Cards, Casino & Gaming Supplies, and Bar & Nightclub Supplies Since 1976
As described on stackoverflow ([1]) I hit a difference in behaviour, from the point of view of the program invoking "mate -w", when TextMate is quit using Cmd-W versus Cmd-Q.
This may be a Snow Leopard oddity, but does anyone here know what might cause the caller to continue after Cmd-W but not after Cmd-Q?
Thanks,
Glyn
PS. Please feel free to answer here or on stackoverflow for added kudos.
[1] http://stackoverflow.com/questions/1755069/git-commit-a-on-mac-hangs-when-t…
Hi,
I just upgraded to Snow Leopard and TM 1.5.9.
Formerly you could scroll page by page up and down in the document by pressing:
ALT + UP / DOWN
If you want to jump to top / end of document you used CMD + UP / DOWN
Now its the same for both combination, even with the ALT combination I jump to top and end.
is it Snow Leopard or the version 1.5.9 of Textmate that brings that behaviour?
How can I easily change it back to "normal"?
thnx in advance!
Dennis
ps. thanks to the community to bring background transparency to TM as a general feature! I was astonished and exited to see that today!
Hi All,
I am somewhat confused about what the best practices are to use and develop bundles theses days.
What I used to do was to have a checkout of the subversion directory in "/Library/Application Support/TextMate". That allowed me to easily apply fixes and commit them. And when I wanted to use a bundle from "Review" I just created a symlink of that bundle to "~/Library/Application Support/TextMate/Bundles".
Now we have some bundles left in subversion, many bundles migrated to github. We got Allan's "bl" tool (not sure what to do with "Managed", I made "Pristine Copy" a symlink to it), and we got Hans' "GetBundles" which seems rather nice too.
I guess gone are the days where a single "svn update" would get you the latest of all bundles.
What do you use and how?
I am also not sure how to develop/change bundles that are hosted on github. My current approach is:
- Delete the bundle from "Pristine Copy" (if it is there)
- Create a fork on github (or if it is a new bundle create a new repository)
- Clone that fork to "Pristine Copy"
- Make changes, push and send a "pull request" to the owner of the original bundle.
What are the recommended/best working workflows?
Thanks
Gerd
This talk about using github and GetBundles and what-not got me curious: GetBundles often shows multiple bundles with the same name. Often these are in different repositories (Official, Review, or Github) but sometimes there are dups within one repository. As of right now there are two AppleScript bundles on Github, the only visible difference being the date and author's name. Is there any way, currently or planned, to sort this out? Okay, I assume the bundles in Review are undergoing, well, review and may or may not be ready for use. But when there are dups in Official and Github, is there any way to tell which is preferred?
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com
Hi,
After the last update of Snow Leopard 10.6.2, Edit in TextMate seems to be broken!
I try QuickCursor but it' frustrating (simple copy paste with Mail)
Best regards
Alain Matthes
Hi!
Since the R team has modified the help system in R. 2.10, the help
feature of R.tmbundle is broken.
Has anyone come up with a quick workaround for it ??
Best,
Daniel
Hi, I've put together the beginnings of a Go language bundle. I'd appreciate
any feedback....
Carl Forde
However beautiful the strategy, you should occasionally look at the results.
-- Winston Churchill
Hello everybody,
Textmate help states:
"9.4 Project Dependent Variables
Sometimes it is useful to have a command customized differently
depending on the project. For this reason, it is possible to set
variables for individual projects.
The way to do this is currently a little secret but if you deselect
everything in the project drawer, then click the info (circled I)
button, a panel will appear where you can set variables.
These variables are saved in the project file (*.tmproj) and will
exist only for snippets and (shell) commands executed in the context
of that project."
The problem I have since upgrading to Snow Leopard and Textmate build
1509 is that I am suddenly unable to deselect everything in the
project drawer. At least one file will remain selected and Get Info
and the info button will only show me the info about that file. Is
anyone having the same problem? Alternatively, is there any other way
to set a latex master file project wide rather than doing it for each
file individually?
Thanks,
JJ
Hello everybody
I am new to this list, hope I am posting on the right one.
After installing the Project+ plugin I was expecting to see the fancy
icons showing the svn status of files and folders but they just don't
show up even though the preferences are set correctly.
Running TM 1.5.9 on Snow Leopard (10.6.1)
Any idea?
Cheers
When doing Ctrl-Shift-V to use PyChecker/Pyflakes/Pylint, I get a Python
error.
Reason:
my_revision = __version__.split()[1]
>
on Line 346 assumes the __version__ from Line 26 can be split into at least
2 parts. However, Line 26 reads:
__version__ = "$Revision$"
>
When it should read:
__version__ = "$Revision 11734 $" # Not sure what Revision actually refers
> to, Textmate or script version
I am using the latest available TextMate (r1505), with Python 2.6.2 on
10.5.8. However, this Command is most likely broken in every version of
TextMate released since the error was first introduced, since it is a basic
Python error. The feature was at least working in June 2008 according to
this blog about it:
http://arthurkoziel.com/2008/06/28/pyflakes-installation-and-textmate-integ…
Though I must say... What's the use of the revision, exactly?? It seems
that it has only served to break the script and not much else. :)
I've gotten by for now by editing the Python bundle.
Thanks.
setting the textmate-variable does not fix the issue for me!
i also tried to set the variable to /opt/local/bin/ruby
which is what i get from
$ which ruby
i installed ruby using macports removing all preinstalled (buggy) apple ruby
stuff.
Hi,
For a couple years now I've used my own bundle for the statistical
package Stata. Several people have asked me for a copy, and I've
shared it with them via email. However, I've now reached the point
where I'd like to move beyond this, both so that people can obtain it
without having to go through me, and so that others can make
contributions to it.
With that in mind, I was wondering what the policy is WRT commit
access for the bundles repository. If someone knows the answer or can
point me toward the information (I looked on the web site but couldn't
find it), I'd appreciate it.
Thanks,
-- Phil
I seem to somehow lost my commit privileges to the subversion
repository, or did that all move to git? I lost track.
Anyway I have a number of patches for the Xcode bundle:
• "Build With Xcode" window title can now be customized via
TM_XCODE_WTITLE
• "BUILD LEGACY TARGET" are now hidden by default
• Xcode 3.2 produces large amounts of nt very informative lines
containing "{standard input}", these are now ignored
• Generate correct paths for subprojects
• expand "$HOME" in the product_path
Could someone apply them please?
Thanks
Gerd
On 17/11/2009, at 11:00 PM:
> Re: dyld: Symbol not found: _rb_intern2?TM blogging bundle
> error
>
>> [?]
>> I have reverted the contents of /usr/local to a backed up copy, and
>> now I'm running the default SL ruby 1.8.7. Unfortunately I still get
>> the same issue.
>
> It would appear that you didn?t fully revert what you did.
You're right, I don't think I did. Unfortunately I think I stuffed a
few things
up, and so this gave me an excuse to do what I've been meaning to do
for a little while, and reinstall SL (maybe not the best way to fix
the issue,
but hey it worked).
> There are problems with a custom built ruby on Snow Leopard?.
>
> Did you delete /usr/bin/ruby? And if so, is the thing you restored
> from backup the version from Snow Leopard, or just your own build of
> 1.8.7?
>
> If you did delete the system ruby, are you aware that there is also /
> System/Library/Frameworks/Ruby.framework?
From what I could tell I was using the binary of ruby that you mention:
I didn't delete /usr/bin/ruby, but it was symlinked to the one in
Ruby.framework.
In fact that was never changed, my custom build of ruby was using
/usr/local/bin/ruby. I'll have to make sure in the future my custom
builds
are isolated so that I can easily revert if issues arise.
Hi,
Some questions :
1) How to compile with --shell-escape and lATEX 2?
2) in the script, I don't understand ~ /.*-preamble.tex/
here :
if File.exists?(pdf) and not ENV["TM_FILEPATH"] =~ /.*-preamble.tex/
thanks and best regards
Alain Matthes
Hi all,
First of all, loving TextMate it's great.
Running Mac OS X 10.6.2 Snow Leopard.
I'm getting this error when I use the Fetch Blogs command from the blogging bundle:
dyld: lazy symbol binding failed: Symbol not found: _rb_intern2
Referenced from: /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle
Expected in: flat namespace
dyld: Symbol not found: _rb_intern2
Referenced from: /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/plist.bundle
Expected in: flat namespace
I recently upgraded my default SL ruby installation to v1.9.1, following the instructions at http://hivelogic.com/u/692. I could previously use the blogging bundle, and I think this may have been what caused the problem.
I have reverted the contents of /usr/local to a backed up copy, and now I'm running the default SL ruby 1.8.7. Unfortunately I still get the same issue.
Hope you can help.
Adam Sharp
Email: adsharp(a)me.com
Web: www.adam-sharp.net
Hi
I can't seem to get Select Enclosing Brackets shortcut to work anymore.
Works fine when I select it from the Edit menu.
I thought it could be a bundle conflict, but I've turned off most
bundles to try to hunt it down and still no luck.
Hoping for some advice on resolving this.
Thanks
m.
I noticed that some bundles are removed from the TextMate svn repo.
Is there any thing we have to do or keep in mind?
Is there a way to get all the bundles just like I've been doing with
the current svn?
Maybe Allan is blogging on this any time soon? I can't find any
official word on that.
- Wil
Hello,
is there a way that textmate can detect the used language (german or
english). Normally I write in german and now when I type english
everything is underlined. With a right click tm tries to correct in to
a german word.
Thanks in advance
--
Christian
-Because I'm the CEO, and I think it can be done.-
Steve Jobs, 2005
Hi,
while writing the GoToLastEdit plug-in I thought about to have a Xcode
template which set up a general TextMate plug-in.
Attached is such a template.
To install it simply download it, decompress it, and copy it e.g. into:
/Developer/Library/Xcode/Project Templates/Application Plug-in
Then launch Xcode, choose "New Project" > Category "Application Plug-
in", and enter an unique and adequate name.
You can then simply build it and restart TextMate. Hopefully you will
find a new menu item "ExamplePluginMenuItem" in TM's Window submenu.
If you invoke it, the plugin will reload all bundles, add a bookmark
to line 1, and show an alert with some information.
The template creates a basic skeletal structure based of the chosen
project name with a NIB containing the menu item definition. In
addition you will find in the header file a number of TextMate methods
which could be useful as dummy declarations to avoid compiler
warnings. After the build process the plug-in will be copied into ~/
Library/Application Support/TextMate/PlugIns.
Please note that this template will only work with TextMate 1.x, and
it's set up as 32bit universal against SDK 10.5.
I tested it on some Macs, but only for 10.6. In other words feedback
in welcome as usual :)
If it turns out that this template is useful and works I'll upload it to
http://email.eva.mpg.de/~bibiko/downloads/textmate
If someone has further ideas how to enhance the template I'd be
appreciated to get any suggestions.
Hopefully have fun.
Best,
--Hans
Hi,
I just discovered an issue when trying to compile documents with TeXlive 2009 on a Mac with latexmk.pl enabled in the bundle preferences. Although a document had several errors, like undefined commands, the compile window didn't display them and pretended that it could compile the file normally.
The reason seems to be that, with the new TeXlive version, the different outputstreams of pdflatex (and xetex) are not correctly identified any more. After some debuggung, the following helped:
In latex.tmbundle/Support/bin/texparser.py, line 226 needs to be changed to:
(re.compile('This is (pdfTeX|latex2e|latex|XeTeX)') , self.startLatex),
In the old versions, it read "pdfTeXk" and "XeTeXk".
Maybe this fix helps others as well. It took me a while to figure out that it was just the missing "k" causing so much trouble ;-)
Bye,
Stefan
Working in ASP.NET MVC I am mostly a front-end dev and prefer to code in
TextMate but the files for the spark view engine are .spark even though the
vast majority of the content of these files is HTML -- I want TextMate to
treat these as HTML so that I can use standard TextMate HTML commands and
bundle features.
How would I go about doing this?
--
View this message in context: http://old.nabble.com/TextMate---Spark-View-Engine-.spark-Files-as-HTML-tp2…
Sent from the textmate users mailing list archive at Nabble.com.
Dear Textmate Users,
I am working on a Mac OS 10.6.1 with textmate version 1.5.7. I have a
specific .txt file on my Desktop which I frequently open to put in
some text. How can I define a keystroke/key combination such that this
specific file is open and shown on top of all other open applications?
Is this even possible? If so, is this a Mac-kind-of-thing or can this
be achieved with textmate? With "System-Preferences -> Keyboard ->
Keyboard Shortcuts" I could not get this to work.
Cheers,
Marius
Started going through the process of learning Textmate today. I was doing some HTML locally and noticed when previewing the page the images aren't loading. Is there a setting somewhere that I'm suppose to check to display images in preview mode?
Hi,
I'm using the 1510 build and since the 10.6.2 update, the textfield just stays empty.
I can open files, save and edit them but i don't see any content.
Can somebody help me with this?
kind regards,
cryptix
Hi,
I just wanted to play with the new LaTeX bundle Alex Ross is
developing, and I can't access it. The following link seems to be
broken:
http://github.com/alexross/latex.tmbundle
Additionally, I couldn't checkout the latextra bundle. Is it still
supposed to be there?
Thanks,
enas
I've set SVN_EDITOR to mate in hopes of using it to compose my check-
in messages. Everything
seems to work fine, I get a window in TextMate all set up with spiffy
colored lines showing me the
files that changed, etc. When I'm done editing, I hit Cmd-S and Cmd-W,
but in the shell window
of Terminal I see:
Log message unchanged or not specified
(a)bort, (c)ontinue, (e)dit:
What am I doing wrong?
Bryan
Just found the following workaround:
* open a file written in the secondary language
* select all
* open "Spelling and Grammar" (Cmd + :)
* select the language of the document from the select box on the bottom
* click on change (all text is removed)
* undo (Cmd + z)
antiraum wrote:
>
> I have the same issue. Spellcheck doesn't work anymore for the secondary
> language in Snow Leopard.
>
>
> Melanie-B. wrote:
>>
>> Since I installed Mac OSX 10.6 (Snow Leopard), the 'spelling and grammar'
>> function in Textmate is not working anymore :-(
>>
>> My default system language is german. When I type german texts in TM,
>> everything is ok. But most of my documents are in english and TM doesn't
>> recognizes it. Nearly every word is underlined in red.
>>
>> Is this a known bug? If yes: Is there a workaround?
>>
>> I will be happy to provide more information about my system
>> configuration, if you tell me, what you need to know.
>>
>> Thanks,
>> Melanie
>>
>
>
--
View this message in context: http://old.nabble.com/Spelling-and-Grammar-in-Snow-Leopard-tp26096441p26230…
Sent from the textmate users mailing list archive at Nabble.com.
I have the same issue. Spellcheck doesn't work anymore for the secondary
language in Snow Leopard.
Melanie-B. wrote:
>
> Since I installed Mac OSX 10.6 (Snow Leopard), the 'spelling and grammar'
> function in Textmate is not working anymore :-(
>
> My default system language is german. When I type german texts in TM,
> everything is ok. But most of my documents are in english and TM doesn't
> recognizes it. Nearly every word is underlined in red.
>
> Is this a known bug? If yes: Is there a workaround?
>
> I will be happy to provide more information about my system configuration,
> if you tell me, what you need to know.
>
> Thanks,
> Melanie
>
--
View this message in context: http://old.nabble.com/Spelling-and-Grammar-in-Snow-Leopard-tp26096441p26230…
Sent from the textmate users mailing list archive at Nabble.com.
Hello, everyone.
I would like to know how to extend the syntax styling to highlight a
proprietary syntax in my code. When I author html emails, I use the command
"%link=%" to denote trackable links like so:
<a href="%link=http://www.link.com/%">Link Text Here</a>
I would like the text "%link=http://www.link.com/%" to be highlighted in
blue or something obvious so that I can quickly scan my code to see which
links are tracking and which ones aren't. I have tried reading through the
TextMate HowTo's and Documentation to learn about extending language
grammars in my custom bundle, but I can't make sense of it. Can someone tell
me what I need to do to make this happen?
Here is what I was reading:
http://manual.macromates.com/en/language_grammars
Thanks, in advance.
--
Graden Hudson
Graphic Designer
Wellness Council of America
9802 Nicholas Street, Ste. 315 | Omaha, NE 68114
Phone: 402.827.3590 | Fax: 402.827.3594
ghudson(a)welcoa.org | www.welcoa.org
I use TM to frame out basic shell scripts all the time, mostly working
in bash.
I have this
#!/opt/local/bin/tclsh
puts "start of my tcl script"
set lst {{item 1} {item 2} {item 3}}
What bundle item do I need to unfilter out in order to get "Run" to
work on this? Currently I use "Shell Script".
I can end the script in .shell and that does it, but I never have had
to do that with other bash scripts, I just set #!/bin/bash and I am
usually good to go. Why is setting of my shebang to #!/opt/local/bin/
tclsh not kicking TM into the correct scope?
Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hi there:
This is my problem, ⌘] suddenly stopped working, however via menu >
Text > Shift Right work perfectly.
Shift left working OK (via shortcut and menu).
Any light?.
Thanks,
--
juan pablo aqueveque
www.juque.cl
It doesn't seem so with the trial version of 1.5.9 under Mac OS X
10.6.1.
What am I missing?
Mickey
--
Michael 'Mickey' Sattler - San Francisco - California - USA
Contact info at http://www.sattlers.org/mickey/contact/
I was born not knowing and have had only a little time to change that
here and there. -- Richard Feynman (1918 - 1988)
While working with Maven, I've found a maven-yamlpom-plugin, which
allows to edit the pom.xml as pom.yml, by converting one to the other
and keeping them in sync. The problem with the plugin is it's buggy
and rearranges lines, drops all comments, and can't sync when times
match, such as after a git pull.
While thinking about it, it occurred to me that what matters when
working with such hairy XML in YAML is that YAML is a human-readable
form of XML. It's not really necessary to keep a pom.yml -- I only
edit it in TextMate anyways. What's really needed is an XML *editing*
mode... in YAML!
Is it possible to have an XML mode where XML will be converted to YAML
upon loading, then dumped back as XML?
Cheers,
Alexy
Hi
I'm trying to teach TM to play nicely with Gentoo Prefix. (That's Gentoo
Linux installed in a subdir such as /Gentoo which comes with it's own
compiler, but runs on the Darwin kernel. Very handy for Ruby development.)
Even if I set all environment vars explicitly in TM, I have hickups here and
there. I'd like to tell TM to use the bash from Gentoo Prefix
/Gentoo/bin/bash instead of the one coming with Mac OS X. Is there a way to
do that?
Even when doing a "/Gentoo/bin/bash -l" in bash_init.sh and then dump the
environment in a bundle command, I still see "SHELL = /bin/bash" there. Is
bash_init.sh read for scripts run from a bundle command at all?
Cheers and thanks, -svoop
--
View this message in context: http://www.nabble.com/Set-the-SHELL-to-use-for-bundle-commands-tp25877998p2…
Sent from the textmate users mailing list archive at Nabble.com.
I have a question about UI.dialog and/or some general Ruby usage. I
apologize for asking about Ruby stuff here, but this particular problem
seems tied directly to the use of UI.dialog, although I'm pretty sure the
issue is actually a Ruby one on my part (I've been fine Googling for other
Ruby issues, but this one seems pretty niche).
Here's some stripped down code that works:
TextMate::UI.dialog(:nib => nib, :parameters => {}, :center => true) do
|dialog|
dialog.parameters = {'username' => "moo"}
dialog.wait_for_input do |params|
puts params["username"]
end
end
But then I go to try and actually use something with my params hash, like
putting it into a variable declared earlier:
username = ""
TextMate::UI.dialog(:nib => nib, :parameters => {}, :center => true) do
|dialog|
dialog.parameters = {'username' => "moo"}
dialog.wait_for_input do |params|
username = params["username"]
end
end
puts username
Now I get a task that seems to hang, which when forced to quit will report
the following error in Console:
TextMate[13634] *** -[NSMachPort handlePortMessage:]: dropping incoming DO
message because the connection or ports are invalid
Really don't know what to do with this. Sorry, I'm not good enough at either
TextMate's extra features, nor at Ruby. I'm sure this is just a combination
of both of those deficiencies.
Thanks,
Dru
Is there an "Go to last edit" keyboard shortcut, or a way to create one in
TextMate?
Essentially, the idea is that when editing a file, I often move around in
the file to check other things and then want to come back to the place I was
editing to continue what I was doing. Now I have to remember to add a
bookmark, before navigating around, then find that bookmark, and remove it,
which is a bit cumbersome.
Alex
-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/%22Go-to-last-edit%22-keyboard-shortcut-tp25930612p25…
Sent from the textmate users mailing list archive at Nabble.com.
I'm looking to implement a CSS Edit like "Live Preview" either as a
Textmate Plugin (or something simpler if that's an option). The
problem of updating an HTML document loaded from anywhere is simple
Cocoa and Javascript. The part I'm struggling with is getting access
to the current textmate document as an NSString (or something else
workable).
I'm able to get access to OakTextView instance and OakDocument
instance in the plugin, but I just can't figure out how to get a copy
of the current document. xmlRepresentation is the closest I can get,
but it's not really what I want. Can anyone point me in the right
direction for that?
I'd like to assess the state of the Scala bundles and assemble the
state-of-the-art one, since currently folks keep several versions of
their (ond even others') bundles on github or web at large.
Here's what I found so far:
Paul Phillips -- http://github.com/paulp/scala-textmate,
The Scala bundle seems the most evolved one. There're two others there.
A couple others which seem not integrated:
Niko Matsakis --
http://smallcultfollowing.com/nikolog/2009/06/06/new-scala-textmate-bundle/
Michael Nischt --
http://gestalt.monoid.net/blog/2008/02/new-scala-bundle-for-textmate.html
A previous attempt at coming up with a single official Scala bundle is
documented here:
http://www.scala-lang.org/node/592
I've started a private effort to integrate, but so far only Dean
Wampler contributed his bundle:
http://github.com/deanwampler/Scala.tmbundle
My specific point which I'd like to add to the official bundle is
symbols. Scala allows for the 'symbols, interned strings a lá Lisp
'symbols or Ruby :ones. Scala also uses 'apostrophizedSymbols, which
screws up highlighting, making TextMate think it's a string. The
issue was discussed on the scala-user list in the following thread:
http://old.nabble.com/%27symbols-break-most-editors-td25553152.html
Paul resolved it in his setup, and produced a tmDelta file:
http://www.improving.org/scala/Scala.tmDelta
-- noting that's all which is needed to amend the official bundle;
Paul's setup links that to the pristine bundles, of which origin I'm
not sure as there seems not to be a pristine/official TextMate Scala
bundle in the SVN at http://svn.textmate.org/trunk/Bundles/?
Given the prelims, a flurry of questions: Am I missing any other Scala
bundles, are there any other ongoing integration attempts, what could
be in the pristine bundles for Scala (why do we have things linking to
the pristine bundles, and why), how do I integrate a tmDelta into the
official bundle (replacing tmLanguage?), and where should the final
one be submitted so I can maintain it?
Cheers,
Alexy
Hi,
I have precisely the problem described here:
http://forums.macosxhints.com/showthread.php?t=105312
That is, if I choose "save as..." from any textmate document, the
appearing window does not remember the folder where I've been. It
always wants to save into "Macintosh HD", which is annoying.
I work with textmate (version 1.5.8 (1505)) on Mac OS X (10.6.1).
Any help is appreciated.
Marius
Hi list,
I've recently been working on a Relax NG to TM Language Grammar XSLT
stylesheet. I did it mainly to exercise, so I didn’t look far for
anything similar. Because Relax NG is XML and can be easily
generated from DTD or XML Schema using trang, it seemed like a good
choice.
I’d like to read your comments, especially about the generated
grammars style which need much improvement.
How does it work:
1) put a file.rng (in XML syntax) in the Schema directory
2) from the root directory, execute the shell script ./rng2txmt.sh
Schema/file.rng
3) the grammar is generated as "Generated Language Grammars/
file.plist" (along with file.plist.xml)
If this doesn’t work, please read the known issues, it might be a
namespace problem.
What does it try and do:
* look for and mark invalid tags or attributes under or in a given tag
* avoid to create empty repository entries
* give a tag-aware scope for attributes (aim is to generate auto-
completion lists aside)
What I would like it to do:
* have basic namespace support
* have current-tag-aware (not any-ancestor-aware) scope for auto-
completion of tags
e.g, a scope which only match the dots in <a>....<b> <c/>
<b>....<c/>....</a>
Not so long ago, I would have say it's impossible, but now that I’ve
slightly improved my TM grammar-fu,
I’m pretty sure it is achievable and may even be not that hard.
Matching > and /> to open, looking-ahead for <b and <c to close,
perhaps.
* actually generate completion list. This shouldn’t be too hard.
Known issues:
* If I’m right, TM grammars works in a « first matching rule is
chosen » which is incompatible with Relax NG main advantage : non-
determinism. Thus I think some Relax NG schema may never be parsed
correctly. DTD and XML Schema need to be deterministic, however, so
the issue is not that important. I think this is the problem with
the generated relaxng grammar.
* / ! \ Because XML namespace is a mess and I didn’t bother dealing
with it in my stylesheet, one need to remove any mention of the
default namespace in the rng file. Otherwise the stylesheet won’t
generate anything
* It currently doesn’t deal with anyName, exceptions, exclusive
choice or any other RNG construction.
* No auto-indentation of the generated plist. Who cares, anyway, TM
cleans it up for you.
* A whole lot of useless scopes, mainly there for debugging.
* Whitespace in tag management in inconsistent.
* The code is ugly.
By the way, I’ve used some excerpts from default XML grammar. I hope
it does not bother its author. Is he Brian Lalor or Allan Odgaard?
Thanks,
Édouard
hello
i am going to erase and re install the OS on the machine.
with in context of TM ...
I do have the original e-mails from TM with keys and download link for the
TM application.
Question: does the code at TM permit a re load of the application from the
e-mail link that was sent last February. Or do i need to re request a new
link for a re install.
Thank you
Hi,
I've just uploaded an enhanced version of the new “Go to Last Edit”
TextMate plug-in:
The TMGoToLastEdit plug-in installs a new menu item “Go to Last Edit
⌥⌘J” at the bottom of TextMate's Navigation sub-menu. By using a
Undo/Redo or Redo/Undo approach (which will be detected automatically)
on the current document this command will place the caret to the last
edit position.
• Download [12kb]:
http://email.eva.mpg.de/~bibiko/downloads/textmate/TMGoToLastEdit.tmplugin.…
To install this plug-in simply download it, decompress it, and double-
click at it.
This command is available if at least one Undo or Redo step can be
executed. It works in TextMate's documents, in the Bundle Editor, and
in all text input fields.
If an Undo operation ends up in displaying a selection the caret will
be located at the beginning of the selection if the command was
performed in a TextMate document otherwise at the end of a selection
due to internal technical factors.
The command listens to the default key-binding ⌥⌘J. If you want to
change that key-binding and/or the menu item title you can open the
NIB file “GoToLastEditMenuItem.nib” with the “Interface
Builder” (part of the Developer Kit). This NIB file is located inside
of the plug-in (Show Package Contents in Finder):
→ Resources → English.lproj → GoToLastEditMenuItem.nib.
If any issues arise please let them me know.
Cheers,
--Hans
Hi
I'm using the current release of TextMate and have tried the blogging
bundle, without success.
I get the following returned following an attempted login to the
Wordpress blog (which is version 2.8.4)
(just trying to list posts as a test [ per the TextMate instructions].
XML-RPC is enabled on the blog.
I have no issue gaining access via WP edit client running on an iPhone.
Any help or suggestions would be appreciated.
Miles Pearson
pearson(a)latent-synergy.com
Hi,
I need sometimes to create multiple folders from a
list of names in a file
for example in a file : list_names.txt
January
February
...
December
I would like from textmate use a command like : select the names
and get the folders.
With bash and without spaces in the names, it's possible to get a result
with the file list_names.txt (I'm a newbie with bash ! )
#! /bin/bash
for item in `cat list_names.txt`
do
mkdir $item
done
But this is not very fine because I can't give the path for output
folders
1) Is it possible with textmate to create a command and to give the
path
with an interactive action
2) Do you know a Ruby script to make this ? (it's to learn about Ruby)
3) Perhaps "Interactive Input" is an answer to give the path for the
ouput place
but I run textmate with Snow Leopard and tm_interactive_input.dylib
gives me some problem with laTeX.
4) Perhaps with regex, it is possible to determine names with spaces
inside
if RC is the separator ?
Then, in these folders,I need to create a lot of files like
In tkz_graph folder
tkz_graph_example_1.tex
tkz_graph_example_2.tex
...
tkz_graph_example_20.tex
idem with tkz_2d etc ...
To create these files, I use the same LaTeX template and the question
is the
like the first one.
How to create a command with the number of files and
and the possibility to choice a directory?
An idea was to select "20" and "/Users/ego/work" and to launch the
command but
I'm not an expert with bash or Ruby to make this ...
Best regards
Alain Matthes
Hi - I remember there was an enhanced version of Command-T
, which is a bundle if I remember correctly. But I forgot
the name of the bundle.
Can anybody point me to the bundle?
Takaaki
This has been covered before ( http://lists.macromates.com/textmate-dev/2009-May/013933.html ), so I'm not hopfeul, but I thought it was worth asking again, in case anything has changed. Probably not.
The responders to the thread linked above recommend writing Ruby modules and stuff, which I do when I'm working on a bundle, but what if I have a bundle and I want to call another bundle's commands?
Fortunately, I'm in control of both bundles, but for organizational and responsibility reasons, I don't want to combine them. One is very utilitarian (basic FTP) and the other is extremely specific (stuff related to a single project I work on, has absolutely no relevance to anything outside of the project). The good news is that I already have my bundles set up to be somewhat modular/class-driven.
I realize that doing this creates dependencies between bundles, but I'm OK with this, and feel it's better than recreating my FTP commands in another bundle.
One thought I had would be to get the TM_BUNDLE_SUPPORT value, pop off the bundle name and replace it with the bundle name of the target, and get to the Ruby file I need. But then...wouldn't any TM_BUNDLE_SUPPORT values used in the other bundle's scripts evalulate to the wrong place?
Would it be better to find a place for such universally appealing ruby files outside of TextMate? Should I learn how to write plugins, and/or deposit code into the SUPPORT_PATH?
The original poster's idea seems close to my idea. But it would be sweet to be able to do something like:
require ENV['TM_SUPPORT_PATH'] + '/lib/bundle_access'
BundleAccess.executeCommand("Some Bundle", "Some Command", argin)
Or something that could safely instantiate Ruby objects from other bundles to allow them to be used in your bundle without mucking with the BUNDLE_SUPPORT value.
I don't know...just spitballing.
Thanks,
Dru
Hi there,
I'm using build 1509 (Cutting Edge).
I'm experimenting with PHP alternate syntax (no curly braces) and
can't get the blocks to fold.
My PHP language bundle contains the following:
foldingStartMarker = '(/\*|\{\s*$|<<<HTML)';
foldingStopMarker = '(\*/|^\s*\}|^HTML;)';
Can anybody point me in the right direction to get my alternate syntax
to play nice ?
PHP alt syntax looks like this:
if ($high < 11):
return $high;
else : return false;
endif;
-Peter
Anyone want to take a shot at this one...
Write "foodbar" in textmate, select it, and inspire lookup word in
google and link, it will be replaced with 'Received exception:
undefined method '.
A lot of the time it also crashes TM. I am on 10.5, but this has been
happening for a long time. I just learned of this feature, and it is
very handy.
#!/usr/bin/env ruby -wKU
# an evolution of the code from skiadas.dcostanet.net/afterthought
# retrieves link from Google automatically and creates XHTML link
# improved call to progress bar, added ability to retrieve title
# of page and create title attribute in link using idea
# borrowed from iamrice.org. Improved regex to handle title tags
# newlines, spaces and capitalization differences
require ENV['TM_SUPPORT_PATH'] + '/lib/progress.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/escape.rb'
require 'net/http'
require 'open-uri'
require 'erb'
def getLinkWithTitle(phrase)
TextMate.call_with_progress(:title => "Contacting Google", :message
=> "Retrieving Link for “#{phrase}”…") do
response = Net::HTTP.get_response(URI.parse(URI.escape("http://www.google.com/search?q=#
{phrase}&btnI=I'm+Feeling+Lucky")))
url = response.to_hash['location'].to_a.first
fp = open(url)
title = fp.read.match(/<title>([^<>]*)<\/title>/i).to_a[1]
title = title.strip
return url, title, phrase
end
end
url, title, input = getLinkWithTitle(STDIN.read)
print ERB.new(ENV['TM_LINK_FORMAT']).result
--
Scott * If you contact me off list replace talklists@ with scott@ *
LaTeX users:
My plan is to remove most of the completion commands and latex
snippets from the LaTeX bundle. They will be replaced by a single
command. I have a prototype under construction, you can see how it
works here:
http://lasersox.net/LaTeXCompletion.m4v
Basically there is a tree of completions, and you can navigate them
just by typing. We can work citation completion, and all existing
snippets into this system.
Thoughts?
Hi,
The big problem for me is the completion with ⌥⎋, I often wrote
this remark on the list but without success ...
Perhaps Brad has not enough time to look at this ...
I would like to know if I'm the only one to have the next problem
a) Create a .tex file: essai.tex
you can put for example this inside :
Is it a bug?\label{title}
yes\label{answer}
b) Create a .tex file: try_completion.tex
\documentclass[11pt]{article}
\begin{document}
\input{essai.tex}
yes\re
\end{document}
now after \re ⌥⎋, no result
c) Remove the line \input{essai.tex}
then after ⌘S, \re ⌥⎋ gives
a window with
real
ref
etc...
d) but when the caret is inside the braces of \ref{ } , the
completion is always correct
My solution : I modified the LateXCommandCompletions.rb file.
def recursiveFileSearch(initialList)
extraPathList = []
fileExt = "tex"
# I add the last line
Perhaps somebody can tell me if this solution is correct and if the
problem exists out of my home !!
Best Regards
Alain Matthes
PS I try the completion with ⌘\ but with a french keyboard we need 4
fingers and 3 fingers for
⌘}
I prefer §, ⌘§ and ⌥§ for the macro LaTeX Symbol of Guido
Governatori, This macro is fine
because it's more natural (for example with the arrows) and the macro
adds $ ... $ .
Perhaps a macro Insert Math LaTeX Symbol in the main bundle will be a
good thing
Hi
I made a clean install of Snow Leopard, and the first soft installed,
was TextMate
I go to the LaTeX prefs of the official bundle LaTeX and when I go
out ot the prefs,
I got this message :
.... configure.py:8 DeprecationWarning os.popen4 deprecated
What is it ?
Best regards
Alain Matthes
I'm not sure how this happened, but ctrl-> (ctrl, shift and .) does not
create <% %> tags. I can select the menu item and get them, but the
hotkey doesn't work. I also went into the bundle editor, and reassigned
the hotkeys to something else and get nothing.
When I change it to apple <, I get a beep.
I downloaded the most recent bundles for ruby and ruby on rails. What
am I missing?
I recently switched from fink to Macports and reinstalled a bunch of stuff,
including Ruby and Ruby Gems. Ruby works fine on the system: I can run
"ruby", "irb", "gems", and "env ruby". (This is the Macports install, so
all Ruby binaries are now in /opt/local/bin.) However, When I try to
compile a LaTeX file from inside Textmate I get the following error:
env: ruby: No such file or directory
Presumably Textmate is still looking for my old version of Ruby. Where can
I change this setting?
--
W.P. McNeill
http://staff.washington.edu/billmcn/index.shtml
If you can send it to me I would appreciate it. Thanks!
On Thu, Oct 22, 2009 at 5:00 AM, ?douard Gilbert wrote:
> ----------------------------------------------------------------------
>
> Le 21 oct. 09 ? 12:08, Darren Brierton a ?crit :
>
> > This is why TextMate needs a DTD/Schema parser like PSGML-mode and
> > nXML-mode provide for Emacs.
>
> I started working on something, but never took time to finish.
>
> It's a XSTL stylesheet transforming Relax NG to TextMate grammar.
> Last time I wanted to add some information needed for completion, but
> had to take on something else and didn't finally get back to it.
>
> Revisions up to current were only doing (unperfect) syntax coloring.
>
> It's not working automatically and has quite a tendency to create long
> grammars.
> Test on the very simple plist DTD (~ 20 lines) gives results nearly
> 1000 lines long.
> Probably way too much redundancy.
>
> But I still can send it to you, if you'd like.
>
> > On 20 Oct 2009, at 22:26, Timothy Bates wrote:
> >
> >> someone will need to add the new elements to the bundle...
> >> On 20 Oct 2009, at 19:39, Rodrigo Soares wrote:
> >>
> >>> Hi,
> >>>
> >>> I can't collapse blocks of code written with new HTML5 structural
> >>> elements such as article, section and nav.
> >>>
> >>> Is there a way to make them work? HTML4 elements work fine.
> >>>
> >>> thanks,
> >>> Rodrigo
> >>>
> >>> _______________________________________________
> >>> 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
>
> ?douard GILBERT
> edouard.gilbert(a)gmail.com
>
> _______________________________________________
> textmate mailing list
> textmate(a)lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
Hi,
I can't collapse blocks of code written with new HTML5 structural
elements such as article, section and nav.
Is there a way to make them work? HTML4 elements work fine.
thanks,
Rodrigo
Ok. Sounds like you might have a corruption in your setup. I'm using
Snow Leopard with its own python 2.6.1 install.
My Textmate is version 1.5.9 (1510).
If I were you I'd delete my Textmate app as well as ~/Library/
Application Support/Textmate folder. Also check you have no Textmate
folder under your Macintosh HD Library/Application Support folder.
Then re-install Textmate.
When you have the python file open make sure that Textmate has type
python selected at the bottom of the editor window.
You might well have tried these measures but I cannot think of
anything else that will help you. It does not seem to be a Snow
Leopard issue.
On Oct 13, 2009, at 5:23 AM, textmate-request(a)lists.macromates.com
wrote:
> Another thing I just noticed, if after running the script with cmd-R I
> close and re-open the file, it comes up blank.
>
> It appears to get overwritten whenever I run it with cmd-R.
>
> On Oct 12, 2009, at 5:15 AM, John Finch wrote:
>
>> Works here.
>> Make sure you have the placed the shebang at the top of the file.
>>
>> #!/usr/bin/env python
>>
>> That should help.
>> Here's the full file:
>>
>> #!/usr/bin/env python
>>
>> print('test')
>
> Date: Mon, 19 Oct 2009 22:18:53 -0700
> From: unussum(a)gmail.com
> Subject: [TxMt] Re: Python/IPython support
> To: TextMate users <textmate(a)lists.macromates.com>
> Message-ID: <09767F0B-381B-4D82-8A3F-ACCD8DCFDD2D(a)gmail.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
>
> I made the mistake of setting an alias for bc, which I was not aware
> was the name of an existing unix tool (That's what I get for not
> capitalizing my personal aliases, I guess).
>
> # ~/.profile
> alias bc="echo ~/some/path"
> alias cdbc="cd $(bc)"
Your bc alias is just echoing the directory, which can be replaced by
a variable:
bc="~/some/path"
alias cdbc="cd ${bc}"
That should solve your problem.
-Roberto.
Dear Textmate-Users,
I tried to use "Preview" (5.0 (501)) as pdf viewer when creating LaTeX
documents with textmate 1.5.8 (1505) on Mac OS X 10.6.1. I set the
"LaTeX Preferences" in textmate accordingly (you can choose Preview
there). I also set TM_LATEX_VIEWER to Preview in the textmate
Preferences. I used to work with Skim that way and everything was
fine. Now I was wondering if that's also the case with Preview. And it
partially is. It updates the document perfectly, however, it jumps
back to the first page of the document - which is annoying. In Preview
you can also set "Start on the last viewed page" (see Preferences ->
PDF), however, this does not solve the problem. Is Preview not
supported? I get the following message on compiling .tex documents
with Preview as pdf viewer:
"check_open: Application appears not to understand request pdfsync is
not supported for this viewer"
If Preview is not supported, why is it a valid option in the LaTeX
Preferences in textmate?
Skim works perfectly, so there is an option. I am just curious what
might be the problem with Preview.
Many thanks,
Marius
Hi,
Something has happened to my TextMate configuration that is driving me
crazy, but I can't manage to figure it out.
When I click on a text line, farther right than the end of line, TM
now puts the caret there (ie where I clicked), instead of putting it
precisely at the end of line.
If now I press the return key, TM inserts a number of spaces before
the newline, to match where the caret is.
I hope my description is clear enough.
This definitely didn't happen some time ago. It used to stick the
caret at the end of text.
This is driving me crazy because of years of habits, clicking anywhere
on the right of a line to append to it,
I have looked in the preferences and could not find anything.
It's probably something stupid on my part, but I can't find it.
Any idea?
Many thanks,
Jean-Denis
I use the LaTeX bundle and Skim as my viewer. Since upgrading to Snow
Leopard, I find that processing LaTeX documents by way of the Typeset
& View (command+R) command fails after a few invocations. In
particular Skim becomes unresponsive. Is anyone else having this
problem? Does anyone know if it's a problem with Skim or with the
typesetting commands behind command+R?
Hey TextMaters,
I've been using TxMt for a while (with HTML and LaTex and Matlab), so
I know the value of bundles. I'm now working with an R-guy, and I saw
that there's an R bundle. I had it working for a sec, thought it was
out of date so deleted it, downloaded with svn the three R-related
bundles (R, R console(R.app), and R Console (Rdaemon)) but only the
latter two appear in the Bundle menu. Syntax highlighting no longer
works, and when I try to evaluate an R-script with apple-R, I get an
Xcode-related error.
Can anyone help me set me straight on getting R to work in a pretty
vanilla TextMate setup (I'm running Textmate 1.5.8 (1509)). Please
reply to the list and to me, millerj870(a)gmail.com.
Thanks in advance!
Jason
================================================================
Jason E. Miller, Ph.D.
Associate Professor of Mathematics
Director, the Next STEP, STEM Talent Expansion Program
Director, Mathematical Biology program
Truman State University
Kirksville, MO
http://pyrite.truman.edu/~millerj/http://step.truman.edu/http://mathbio.truman.edu/http://www.google.com/profiles/millerj870
I did post this last week and some how it did not go through ?, iv heard
gmail can be ? at times.
I will "try" upgrading to PHP 5 in TM.
Question: is there any thing else that i need to know besides the
instructions at TM/Bundles/PHP/Help/4.0 Set Up
my plan of action is to upgrade to OS 10.5 when the DVD gets here this
friday.
and the various upgrades through the Apple server.
install PHP 5 on the machine via entropy.
follow the instructions as given, TM/Bundles/PHP/Help/4.0 Set Up
see what kind of mess entropy and MAMP can make, yes i will have the servers
shut off.
and go from there.
If any one could bring me to notice anything i do not see please let me
know.
Thank you
i found universal install DVD of 10.5 at hardcoremac that is affiliated with
yahoo business.
Dear Textmate Experts,
I get the following error message on compiling a document called
mydocumentname.tex:
Document '/Users/myusername/myfolder/mydocumentname.pdf' not open in
application execution error: Can’t make file "Macintosh
HD:Users:myusername:Desktop:mydocumentname.pdf" into type alias. (-1700)
"myfolder" actually stands for a path where the document
mydocumentname.pdf is located. It is unclear to me why the path
"Macintosh HD:Users:myusername:Desktop:mydocumentname.pdf" appears,
because the file mydocumentname.pdf is obviously not on the Desktop.
Maybe understanding this solves the problem. I am also not sure if
this is a serious problem, the generated .pdf opens in Skim as
supposed to.
I work with textmate (version 1.5.8 (1505)) on Mac OS X (10.6.1).
Any help is appreciated.
Marius
Hi, the Ruby programming language has a library called ERB which allows you
to embed Ruby into strings. Frequently these strings are source code for
other languages, Ruby on Rails, for example, heavily uses ERB to embed Ruby
code into an html file. Because it is so frequently used, it has it's own
bundle called HTML(Rails)
I am wanting to use ERB with other projects, and am finding that I can only
use one bundle at a time. So I am frequently switching back and forth with
shift+control+option+letter which is working fairly well, and not that much
extra work, but it does mean that my project always has incorrect
highlighting on some portion of it.
Is there a way to create a bundle that understands it's purpose is to work
with other bundles? Perhaps at some point, based on it's scope, it could
realize that it needs to yield to the second language or something.
Thanks
-Josh
>
>> 2. Characters beyond column 72 should be identified, either with a
>> different color or different font.
>
>
>
> This one, at least, is very easy and is not language-specific. First,
> go into Preferences. In the General settings, check "Show right margin
> indicator" and "Highlight right margin". Next go into the View menu
> and set "Wrap Column" to 72. Make sure that "Soft Wrap" is *not*
> checked. The result is that you'll get a thin line between columns 72
> and 73, and all columns past 72 will have a shaded background.
>
> As for the rest, I'm afraid I can't help you. I'm quite happy to say
> that I haven't touched F77 (or any other FORTRAN dialect, for that
> matter) in almost 25 years now. Back when punchcards were only
> slightly outdated. :-)
Okay! This is a start. I'll give it a try.
As for f77 being not exactly modern, here are a few words in its
defense, and to encourage
its support :
* F77 is still widely used in scientific computing, often as an 'under
the hood' machine-like
language for computations on grids. It plays very well with C++
(unlike f90) and so remains
the fast language of choice for heavy computations on structured arrays.
* It is much easier to use than C++ for students, and certainly faster
than programs written purely
in Matlab. While C++ allows for necessary high level data structures,
many algorithms
that form the basis for much of numerical analysis are most easily
described in a fortran/matlab
like syntax.
* What is not to love about a language that doesn't have pointers?
Okay, nuff said. Thanks again.
Donna Calhoun
donna.calhoun(a)gmail.com
I downloaded the TerminalMate plugin kindly provided at the link below
(1). It has two problems for me (on Snow Leopard):
1) Corruption -- when typing, the last-but one line and last line in
the terminal window swap places and overwrite each other. This and
other visual glitches make it very hard to know what I'm typing
2) Slowness -- the display doesn't keep pace when one key is held
down, or even tapped rapidly
Does anyone have a version that doesn't have these glitches on Snow Leopard?
Thanks,
Ben
(1) <http://itsthe.damncarousel.com/2009/09/02/where-in-the-world-is-the-termina…>
I will "try" upgrading to PHP 5 in TM.
Question: is there any thing else that i need to know besides the
instructions at TM/Bundles/PHP/Help/4.1
my plan of action is to upgrade to OS 10.5 when the DVD gets here this
friday.
and the various upgrades thru the Apple server.
install PHP 5 on the machine via entropy.
follow the instructions as given, TM/Bundles/PHP/Help/4.1
see what kind of mess entropy and MAMP can make, yes i will have the servers
shut off.
and go from there.
If any one could bring me to notice anything i do not see please let me
know.
Thank you
i found universal install DVD of 10.5 at hardcoremac that is affiliated with
yahoo business.
I wrote recently regarding the f77 capabilities in TextMate. I
recently downloaded the demo version of TM, and found it to very
useful in many ways. But I found its f77 indenting rules less than
satisfactory. I really want to be able to use TM and would gladly
purchase a copy, but I've come to rely heavily on automatic indenting
and formatting for checking syntax errors, making the code readable
and so on. I am afraid that a lack of proper indenting rules
is a showstopper for me.
I apologize in advance for comparing TM with Emacs, but below is a
list of indenting rules for f77 ("punchcard Fortran") that I've come
to expect from Emacs. Is there any way to get these features in TM?
1. All lines should start in column 7, with two exceptions :
* Lines whose first character is 'c' or 'C' (the comment
character). Emacs also leaves 'd' and
'D' in the first column although this could (happily) be
dropped. See comments below.
* line continuation characters. Continuations are indicated by
any character in column 6.
The customary continuation character is '&'.
* Line numbers. Used mainly for 'format' statements, but also
for 'goto', and if one is really
old school, do/continue statements. The format/continue/goto
should always start in column
7, but the line number should be right justified, with final
character in column 5.
2. Characters beyond column 72 should be identified, either with a
different color or different font.
3. Comments should be properly indented. The comments character
should remain in column 1, but all
remaining text should align given current context. In emacs,
comments are also properly wrapped, with
a comment character put in column 1, and the comment continuing
at its proper indentation level.
4. Fixed tabbing beyond column 7. Emacs appears to use 3-spaces per
tab (by default), which is fine, although it
would be nice to allow for customized tabs beyond column 7.
5. Ideally, lines which are longer than 72 characters would
automatically be split, with
a default continuation character added in line 6 on new line.
I think I got most of the important items. Here is a sample of
"properly" (at least in
my opinion - I'd be curious to hear what others think) formatted f77
code (formatted in Aquamacs). All
formatting rules are applied by hitting "tab" in Aquamacs when the
cursor is anywhere on the the line to be formatted.
subroutine assign_src(mx,my,meqn,q0,lap0,t,rhs)
implicit none
integer mx, my, meqn
double precision t
integer m
double precision q0(0:mx+1,0:my+1,meqn)
double precision lap0(0:mx+1,0:my+1,meqn)
double precision rhs(0:mx+1,0:my+1,meqn)
integer i,j
double precision lap_u,at,dadt
double precision long_line
call qval_time(t,at,dadt)
do m = 1,meqn
do j = 1,my
do i = 1,mx
c # Comments are properly indented after the comment
character in
c # line 1, and are correctly wrapped they exceed column
72.
c # (The '#' marks are mine)
lap_u = rhs(i,j,m)
rhs(i,j,m) = lap_u - at*lap0(i,j,1) + dadt*q0(i,j,1)
c # A really long line with a continuation character in
column 6
long_line = (rhs(i+1,j,m) + rhs(i-1,j,m) + rhs(i,j
+1,m) + rhs(i
& ,j-1,m) - 4*rhs(i,j,m))
c # Note line number in format statement in column < 7
and right
c justified. Also, this comment is also wrapped.
write(6,100) 'rhs',rhs(i,j,m)
100 format(A10,E16.8)
enddo
enddo
enddo
end
subroutine old_school()
implicit none
integer i
double precision x
c # example of line numbers in a do loop.
x = 0
do 110 i = 1,20
x = x + 1
110 continue
end
Aquamacs/Emacs isn't perfect. Since 'd' and 'D' is also comment
characters, AM will assume that
a statement beginning with 'double precision' should leave the 'd' in
column 1 and
split the rest to column 7, which would likely lead to a compile
error. The same thing happens with
'call' statements starting in column 1. Applying automatic
indentation to
call quad()
results in
c all quad()
which will also result in a compiler error.
But aside from those few glitches (features?) I would be happy to see
an Emacs style indenting in TM.
Also, I would be happy to hear if I am missing anything major in TM.
Are there easy ways to get the above into the Fortran bundle?
Hi,
I am just taking advantage of the fact that Alex Ross is working on
the LaTeX bundle (thanks a lot for this btw!) to make a tiny feature
request.
When creating a new section, there's a nice snippet (that's an answer
to one of the questions of your survey btw) that autocompletes the
label content and the end folding comment too. What I would like would
be to have a command to *modify* an existing section (i.e. that works
like creating a new one, but with the content of the section already
there).
I guess that would be something very easy to add on my own, but I just
thought it might be useful for everyone.
Thanks again,
enas