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