Hi
I've just started using TextMate and I'm hugely impressed by it. My
text editor requirements are not very sophisticated, I use it mostly
for HTML/CSS and for processing text from time to time from databases,
or transcripts of online meetings with chat clients, that kind of
thing. I'm sure that I will be using TextMate for my simple
AppleScript writing as well now in preference to Apple's rather basic
Script Editor.
I have been using BBEdit for ages and I feel it is a very fine text
editor indeed, however TextMate is a bit of genius.
Before I used BBEdit I used the Nisus Writer word processor for text
editing in the classic Mac OS. Although a word processor Nisus Writer
was a superb text editor and, like TextMate offered many truly unique
abilities. Nisus also made a text editor called QUED/M which predated
their word processor and had similar unique abilities of their word
processor.
One of the truly great things about Nisus Writer and QUED/M was the
non-contiguous text selection and the way in which Nisus had exploited
this.
I think Nisus were the first with non-contiguous text selection but
today it is quite common-place. An obvious example is Apple's TextEdit
which will do non-contiguous text selection. If you are not familiar
with it then you can open an TextEdit document and put it in 'rich
text' mode if it is not already. Then put some text into it. Now you
can select non-contiguous words in that text using command-click. Now
that you have selected those words you can press command-B on your
keyboard and those words will turn bold.
I'm now going to describe how Nisus exploited non-contiguous text
selection and why it was so very useful.
If you imagine that you have some text which is intended for a web-
site. Within the text are various book titles and you wish to surround
these with the <em> tag. There is nothing at all about the words of
the book titles which is similar. Well with Nisus Writer you would
select the book titles non-contiguously, using command-click, then you
would get out the Find dialogue and put in the Find field:
.+
In the Replace field:
<em>&<em>
(The & matching all of the Find field)
Then you invoke 'Replace in Selection' and each piece of non-
contiguously selected text is now surrounded by <em> tags.
In Nisus Writer you would turn that operation into a macro and now you
can apply the <em> tags to any non-contiguously selected text with
great ease.
Now it gets cleverer :)
In the example above the replaced text, the book titles surrounded by
<em> is still selected after the Find/Replace has been performed. This
means that further GREP Find/Replace can by performed using 'Replace
in Selection.
With a programme like BBEdit a search for multiple items in a file
will produce a browser identifying the search results. However with
Nisus Writer a search for multiple items in a file will leave them
selected non-contiguously in the file. This enables you to perform a
further search on those non-contiguous selections with 'Replace in
Selection' again.
To give an example.
I think it is nice to have smart quotes in the displayed text in a web-
site. To do this I have to use HTML entities. The actual text I have
contains 'stupid' quotes, however I can create a Find/Replace that
will look for the 'stupid' quotes and replace them with 'smart quote'
HTML entities depending on whether they come before or after words.
The problem is that there are many 'stupid' quotes in the HTML tags
for things like class="main".
What I need to do is to find the text between the HTML tags and then
replace the 'stupid' quotes in that with the smart quote HTML entities.
To do this in BBEdit I created an AppleScript which has a loop. It
finds the first instance of 'text between HTML tags' and then replaces
'stupid' quotes with smart quote HTML tags. Then it finds the next
instance of 'text between HTML tags' and so on...
To do that required me to create quite a clunking AppleScript.
However in Nisus Writer I could do it with two simple Find/Replace
operations. Because Nisus Writer had non-contiguous selection of
course. I could find all the instances of 'text between HTML tags' and
know that this was selected. Then I could use 'Replace in Selection'
to replace all the 'stupid' quotes with smart quote HTML entities. For
Nisus Writer this was an absolutely trivial matter.
So, the moral of my story is that in a text editor with GREP Find/
Replace having non-contiguous text selection brings a massive amount
of additional text editing power.
Patrick
Is it possible to add the feature or even a plugin that makes TextMate
remember which directories I have expanded in the project drawer? I'd
like to be able to quit TextMate and be able to keep my project window
exactly as I had it the next time I launch the project.
Thanks,
Jason
Hi,
example:
if I press CTRL+SHIFT+A
I see all subversion commands:
Add to Repository
Remove From Repository
Revert
Update to Newest
----------
Commit
----------
Blame
Info
Log
View Revision...
Status
----------
Diff Revisions
...
Would it be possible to have the submenu titles instead of a line
'--------' in TM 2.0?
À la:
Add to Repository
Remove From Repository
Revert
Update to Newest
----------
Commit
----------
History and Info
Blame
Info
Log
View Revision...
Status
Diff
Diff Revisions
...
Merge
Show Available Revisions for Merging
Resolve Conflicts With FileMerge…
....
This already works for shortcuts of commands which are stored in
different bundles. And I do not know if one could add a new level in
the inline menu.
Cheers,
--Hans
Hi,
for some bundles I wrote I came across that it would be nice to have a
kind of a "init procedure" for bundles.
I'm thinking about to have a standard subfolder called "_INIT_" in a
bundle. If that subfolder exists all scripts inside of that subfolder
will be executed while installing that bundle (meaning double-click at
X.tmbundle, or "Reload Bundles", or TM starts). It should be added a
marker that indicates that the init procedure was done to avoid to
call these scripts more than once.
This init scripts should be execute inside of the bundle environment
(to e.g. interpret $TM_BUNDLE_SUPPORT correctly).
This could be helpful for instance:
- to check dependencies of libs, files, versions of executables, OS
version etc. and give an alert if something mismatches
- to set up/build/unzip bundle specific files (useful to minimize the
bundle size while downloading)
- to install a specific environment used by the bundle's commands
(e.g. for the Rdaemon, it will install Rdaemon while installing the
bundle)
- to ask the user if a file is missing to download it and to install it
I do not know if that request is specific to me. And I do not know
what kind of consequences will arise, esp. to check e.g. a text file
was changed inside of the bundle which is the source to built an index
file.
Of course, it could also be a security issue.
Furthermore if these init scripts always will execute if TM starts it
could be used to check if an update is available for the given bundle.
Are there any comments on that?
Thanks,
--Hans
Hi,
I try to use the "Edit in Textmate" function in Mail but all I get is a
blank page. If I type something and save it, it would just add that piece of
text to the mail, where the cursor is.
Is this the default behaviour? I thought Textmate usually display the whole
mail....
The "Edit in Textmate" works in other application, I'm writing this post now
through Safari in Textmate.
Thanks
Daniel
--
View this message in context: http://www.nabble.com/%22Edit-in-Textmate%22-not-working-for-Mail.app-tp180…
Sent from the textmate users mailing list archive at Nabble.com.
A annoyance with the insert todo -macro and ruby is that if the cursor is
indended when using it it places the =begin and =end tags at the current
level. The problem is that ruby only regognizes them at the start of the
line.
So this works:
if true
puts "foo"
=begin
TODO:
=end
end
But this doesn't work:
if true
puts "foo"
=begin
TODO:
=end
end
I haven't had the time to look at the insert-todo code too much so I can't
provide a patch, but the correct behaviour would be to make sure that
there is no whitespace before the comment block tags.
(IMO is rather silly of ruby that block comments can't have whitespace
before the =begin and =end tags...)
hello,i'm wondering if is any rule to select a text and drag it with the
mouse to another location. i'm asking this because it's not always working,
somoetimes it deselects few times till i succeed.
--
Cristi
www.ralcr.com
Hello,
I'm a fresh user of TextMate, and I have a little problem. By default there
is something assigned to the Alt+Shift+S keys combination. This "something"
prints a message:
cat: /tmp/TextMate-ScratchSnippet.txt: No such file or directory
The problem is that this keys combination is also a combination for the
Polish letter "Ś", so it's difficult to write regular Polish text. Is there
a way to turn this shortcut off?
Thank You for help.
ED
--
View this message in context: http://www.nabble.com/Shortcut-Alt%2BShift%2BS-conflict-tp18045393p18045393…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I would like to gather some suggestions for the following.
1) Don't want to go into that Latex thing.
2) Keep chapters in simple Text Format ( or markdown or Textile )
3) Project also contains a huge amount of reference files in txt and pdf
format
4) What's the best way to handle:
a) Index
b) footnotes
c) References
d) Appendixes etc.
Is it a good thing to keep the Book in one single file, or is it better
to use multiple files ?
Suggestions, links and resources welcome
regards, marios
Hi,
I just tried to summarize my experiences with the problem:
How to insert an UTF-8 encoded text by using an HTML output window
(via TextMate.system() and AppleScript)?
[and without beeping ;)]
AND
How to be compatible with Tiger and Leopard?
in a tiny wiki article:
http://wiki.macromates.com/HowTo/InsertUTF8TextByUsingAnHTMLwindow
I'd be appreciated if someone has any comments ;) (maybe for an easier
solution)
--Hans
Hi guys!
I bought TextMate a few days ago, but Python editing is giving me the creeps.
First, I disabled the Auto-pair characters option, but I still get the
closing parenthesis and colon when I create a function ("def"). It
ignores when I type the closing parenthesis, but it doesn't ignore the
colon.
Second, it seems TextMate get really confused when you follow PEP8: If
you use spaces instead of tabs, it doesn't do auto-indentation in the
next line. In the same issue, it seems TextMate uses tabs instead of
spaces (against the PEP8.)
Third, still in the PEP8-issues, I'm trying to find a way to make
hard-breaks when going beyond column 78. TextMate have soft-breaks,
but I'd really like to have it to automagically insert the break for
me (and add an indentation to the next line.)
Fourth, PyCheckMate doesn't understand when you do an indentation when
you do a hard-break and add the indentation (it complains about
"unexpected indent".)
I guess most of it is easily fixable messing with the Bundle, but I
still didn't grasp the whole concept of it. Any points would be really
helpful.
--
Julio Biason <julio.biason(a)gmail.com>
Twitter: http://twitter.com/juliobiason
I've swapped my Caps Lock and Control keys on my keyboard under System
Preferences (Keyboard & Mouse > Modifier Keys...), but now the
wonderful Paste from history (CTRL+OPTION+CMD+V) no longer works. Does
anybody know of a workaround?
Thanks,
Nate
Our development team has been tracking some odd behaviour with SVN commits
and updates.
We are primarily a three man team and we all commit code into our repo which
works well.
However, we've noticed that after I perform a project wide search and
replace using regex and then commit, the data committed is not from the
current file. The regex replacements are actually carried out on what
appears to be a copy of the file from the last "Save Project" date.
For example:
"appCaches.php" is a file maintained by subversion. Download the files,
here: http://www.mattmecham.com/images/appcachefiles.zip
r#1355 was made by me on 21st May - which coincides with the last time I
chose "Save Project" even though I choose "Save All" regularly.
r#1479 was committed by a member of the development team adding data to the
file. Although I chose rev 1479, this file was committed around 1450ish and
hasn't changed until I did my global search and replace, so it's not just a
one revision increment problem.
r#1480 was made by me after performing a global search and replace. As you
can see, it's actually performed a search and replace on r#1355, not r#1479!
What does TextMate do when you choose "Save Project"? I thought it just
updated the xml file containing data about open files. Does the regex search
and replace work on cached copies anywhere?
Thanks
--
View this message in context: http://www.nabble.com/SVN%2C-Save-Project%2C-Regex-search-and-replace-tp180…
Sent from the textmate users mailing list archive at Nabble.com.
Hello, been using TextMate for a few years now, a good record for my
first
annoyance :)
I'm writing a lot of Python code now and since it uses whitespace for
blocks, every time I paste something after a function or class etc the
pasted text is indented at the level of the previous block when I want
it to
be pasted the way it was copied.
This means every time I paste, I have to select the block I just
pasted and
un-indent it hundreds of times every day...
Is there a command to turn off auto-indent? like Cmd-something Cmd-V
Cmd-something so I can toggle it off when pasting in Python.
Or even better, some sort of macro like Cmd-Shift-V that would paste
without
auto-indent
Thanks,
Skye
Greetings,
I am currently using TextMate for a Pylons project with its own virtual
environment. So, instead of using /usr/local/bin/python, I use a python
interpreter at a specific path. Is there an environment variable I can set so
that TextMate uses the correct interpreter so that my imports go through?
Thanks,
Ben
Hi list,
The comment/decomment command (apple-/) has a different effect in
LaTeX files (correctly prepends %) than in TeX files (incorrectly
prepends #).
To fix that:
< ciaran> cDlm: ok, if you go into the bundle editor, change the
dropdown at top left to
select Preferences, and then look for the "Comments"
item in the LaTeX bundle
< ciaran> and change where it says "text.tex.latex" at the bottom
right to be "text.tex"
Also here are the conclusions of the IRC discussion with ciaran and allan:
- the TeX grammar is not meant to be use per se (then it shouldn't
appear in the mode menu at the bottom of buffers)
- .sty files are claimed by the TeX grammar (LaTeX would be better)
--
Damien Pollet
type less, do more [ | ] http://people.untyped.org/damien.pollet
Hi,
is there a reason why TM beeps if I call open "txmt://open?" ?
I do leave out line and column in order to avoid that TM looses its
selection.
I'm just writing a character sheet to insert uncommon used charaters
by using an HTML window with TextMate.system JavaScript-bridge.
Every time if I insert a character TM beeps. Well, it is not a big
issue but ...
Thanks,
--Hans
Hello together,
I'm facing quite a strange problem with the citation inclusion in Latex
(->Latex ->Insert ->Citation Based on current word).
I always get the following error:
/tmp/temp_textmate.zgtzns:4: command not found: kpsewhich -show-path=bib
After the error-message, the right citation key is inserted. But i always
have to delete the text before (the error message), and this is very
uncomfortable.
I am working on a project, and the problem only occurs in the
"child"-documents, in my Master-File everything the citation inclusion works
very fine.
I set the the shell variable for the master-file as well as for the
Bib-file.
I'm quite confused what the problem could be and i hope somebody of you
could help me,
Thanks a lot!
--
View this message in context: http://www.nabble.com/Textmate-Latex%3A-Citation-Inclusion-does-not-work-tp…
Sent from the textmate users mailing list archive at Nabble.com.
Hi there, I remember seeing Growl notifications for when SWFs had
compiled from Textmate. I'm compiling using Simon Gregory's AS3
bundle fcsh compiler.
Does anybody know if this is possible to do?
Thanks,
Ali
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hi all,
About a month or so ago I asked what people did about php debugging and
stuff, something I really wanted that ZDE offered (the client itself I don't
like). Several people responded and it sounded like there were a lot of
error_log'ing and stuff, but nothing on par with a real debugger.
With this in mind, I figured it was worth mentioning this project:
http://www.bluestatic.org/software/macgdbp/
It's a Cocoa based client for xdebug that code stepping and more. More info
can be found here:
http://www.tuaw.com/2008/06/16/macgdbp-kills-php-bugs-dead/
Hope this is helpful (and appropriate).
Clark Endrizzi
Hi there, I'm trying to figure out how to add breakpoints to my AS3
code. I'm compiling using Simon Gregory's Flex/AS3 bundle using the
FCSH compiler.
Also I'd like to know what's a good debugger to use that I can pause
and execute my code with. I'm on a Mac so I can't use FlashDevelop
and I'd rather not buy a license for the Flex IDE.
Thanks guys,
Alistair
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hiya, I posted this before as part of another query though I don't
know if it got missed.
I'm compiling using fcsh compile from Simon Gregory's AS3 bundle
which is great but I'm not sure how to open the SWF in Flashplayer
without choosing the Build command.
I'm guessing this is pretty simple to do, any help much appreciated.
Thanks
Ali
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hello, I would like to be able to target my class library so I can re-
use AS3 classes I have written. In the Flash IDE I set this in the
Preferences though I am not sure where I set this when compiling
using fcsh through the AS3 bundle. I am guessing it's in the flex-
config.xml file or maybe the project specific project-config.xml file?
Also, do I need to manually copy over classes I have used from my
library into my project folder in order to share the project with
other developers or is there an automated way of exporting the source
files in this way?
Thanks guys,
Alistair
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Howdy. I'm new here. So far, I really like what I see in TextMate.
In other text editors I've worked in, when you select some text and launch
the find/replace dialog, the "find" field automatically gets populated with
the selected text.
Is it possible to set TextMate behave this way?
Thanks.
I know this one can be done. I've been digging, but can't seem to figure it
out.
I'm using the bundle editor to create a bunch of snippets. Because I have
to create so many of them, I like them categorized.
I'm looking to do something similar to what I see in the CSS > Background
bundle. That is, a top-level category of snippets, plus sub-menus that
contain other snippets.
How does one go about setting this up?
Thanks.
- Scott
Embarrassingly simple question - how do I change the page set-up in
TextMate? I need to print landscape rather than portrait from an HTML
preview, and can't seem to see how to do it. Running 10.5.3.
TIA
R
--
Richard Dyce MA (Cantab.) MBCS MIET
i've been searching around, and i can't seem to figure out how to have
textmate highlight the current line of the cursor. i see the "Line
Highlight" in the preferences of the theme, but i can't seem to make
it work.
i know i'm probably missing the obvious, but how can i accomplish this?
thanks.
---
chad gulley
Hi,
The project I am currently working on requires me to write xml
configuration files for a custom application for experience sampling.
The files contain embedded python scripts, contained in the following
regions:
<script event="OnLoad">
<![CDATA[
python script
]]>
</script>
I know that TextMate is able to deal with embedded regions that have a
different language deffinition than the main file (like php and
javascript sections in HTML) so I was trying to set this up for XML so I
can have proper syntax highlighting for python. So far, though, I have
not had any luck with this. I tried adding the following in the xml
language definition, both right after the section for embedded java and,
when that didn't work, right after the section for CDATA comments, but
it doesn't seem to work:
{ name = 'source.python.embedded.xml';
begin = '<script.*?}>\s*?<!\[CDATA\[';
end = ']]>\s*?<script/>';
beginCaptures = { 0 = { name = 'punctuation.section.embedded.begin.xml'; }; };
endCaptures = { 0 = { name = 'punctuation.section.embedded.end.xml'; }; };
patterns = ( { include = 'source.python'; } );
},
This was based on the example for embedded java, but obviously I either
didn't understand what the java example does, or I didn't specify the
begin and end strings correctly. I also suspect that since there is
already a definition for CDATA comments, this needs to be in a specific
place to override that definition.
Any help with getting this to work would be greatly appreciated. The
scripts can be quite long, so having proper syntax highlighting would
make things much easier.
Thanks so much,
Pedja
--
http://www.fastmail.fm - Faster than the air-speed velocity of an
unladen european swallow
I seem to be having problems with my Web Preview in (Markdown/
MultiMarkdown).
I'm trying to use the "Image" link, but the web preview does not show
the image, but if I select "Markdown->MultiMarkdown->Generate Output
and Open in Browser" it works just fine. I've tried specifying both a
full path and a relative path.
Also, if I try with the web preview, select "Show Source", save the
source to a HTML file, and then open the file, it shows both images
just fine.
====CODE====
## Normal Link Test ##
An [example](http://www.google.com/ "Title")
## Image Link Test ##
A full path image link: 
A relative path image link: 
====CODE====
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
Hello,
I do a lot of programming in fortran and I like textmate. However there are
a few small things that dont work properly.
In punchcard fortran, comments begin on first column with "c" or "C".
Textmate does not indent them correctly. If I cut and paste some existing
comments, these get indented. I tried using
unIndentedLinePattern = '^\s*[cC]\s*.*$';
in "Indentation Rules" but it does not work. Can somebody help me with this
?
Thanks
praveen
--
http://pc.freeshell.org
I just got an idea: could this be due to the fact that the "child"-documents
are in other folders than the main document?
folder structure is like
folder "main" -> main document + bib-file
folder "sub1" -> sub-document1
folder "sub2" -> sub-document2
.
.
If this is the problem, how to handle it?
--
View this message in context: http://www.nabble.com/Textmate-Latex%3A-Citation-Inclusion-does-not-work-tp…
Sent from the textmate users mailing list archive at Nabble.com.
Before I go mad and spend ages re-inventing the wheel, is there
something in/for TM that I have missed that would allow me to take a
selected code sample and save it in some way that it could be
presented in another html page?
(ideally wrapped with some styling hooks for CSS so syntax could be
highlighted.
e.g. converting <div> to <span class="tag_div"><div></span>
TIA
Hy TextMate users
I've got a strange problem: if I'm opening a file from my NAS Synology
CubeStation CS 307 and then try to save the file after changes,
TextMate hangs up. Anyone out there with a same problem?
Regards
Dave
hi - I am getting strange behavior when I try to commit or do a diff
with the svn bundle; it had been working fine before but now when I
commit I get no action and when I do a diff I get the output below.
can anyone spare me a clue?
cheers!
sh: : command not found
/Users/dvinay/Library/Application Support/TextMate/Support/lib/ui.rb:
192:in `initialize': No such dialog ()} for command: '' -a -c -p \<\?
xml\ version\=\"1.0\"\ encoding\=\"UTF-8\"\?\>'
'\<\!DOCTYPE\ plist\ PUBLIC\ \"-//Apple//DTD\ PLIST\ 1.0//EN\"\ \"http
\://www.apple.com/DTDs/PropertyList-1.0.dtd\"\>'
'\<plist\ version\=\"1.0\"\>'
'\<dict\>'
'\ \<key\>details\</key\>'
'\ \<string\>\</string\>'
'\ \<key\>isIndeterminate\</key\>'
'\ \<true/\>'
'\ \<key\>progressAnimate\</key\>'
'\ \<true/\>'
'\ \<key\>summary\</key\>'
'\ \<string\>Accessing\ Subversion\ Repository…\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Diff\ With\ Newest\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Users/dvinay/Library/Application Support/
TextMate/Support/lib/ui.rb:15:in `new'
from /Users/dvinay/Library/Application Support/TextMate/Support/lib/
ui.rb:15:in `dialog'
from /Users/dvinay/Library/Application Support/TextMate/Support/lib/
progress.rb:42:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_diff.rb:39:in
`diff_working_copy_with_revision'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Subversion.tmbundle/Support/svn_diff.rb:21:in `diff_active_file'
from -:5
Hey,
after tinkering with tm_dialog for a plugin[1] I have come to really
wish you could embed an 'html output' webview into a NIB.
The idea being that instead of invoking
'returnArgument:your:arguments:' you could invoke
'htmlOutput:your_command:and:arguments:' and display the results
directly in the dialog rather than outputting to an enclosing html
view.
Note that I don't want to do async and then update the dialog with
results (to go in a listview perhaps). The process I'm getting
results from can take a long time to complete and can generate reams
of information so I want to display the partial results as they come
in.
Obviously you'd need to wire-up the WebView delegates to point to the
File's Owner, as well as tell the File's Owner about the WebView and
progress indicator etc etc.
I tried some cruel hacks by instantiating OakHTMLOutputManager in my
nib and wiring it all together. Alas, I could only manage to evaluate
a "TextMate.system" calling [[webview windowScriptObject]
evaluateWebScript] via bindings. I also managed some other
experiments to tell the OakHTMLOutputManager that it was busy (to
update the progress control).
The only other behavior I cold elicit was some spectacular crashes
trying to convince the OakHTMLOutputManager to invoke anything...
yeah, I know I'm tinkering with stuff I shouldn't :-)
So... my question: is there any way in current TM to achieve my goal
(embed html output in a dialog) - perhaps in DIALOG2 (that I haven't
looked at yet)?
Assuming the answer is 'no' - I'd just like to say that capability
could be an excellent bridge between the current tm_dialog+html_output
and a full-blown plugin.
Thanks for listening,
Trevor
[1] http://github.com/protocool/ack-tmbundle/tree/master
--
--
Trevor Squires
http://somethinglearned.com
Hi,
there is a very tiny and marginal issue about rendering in the content
of the tooltip under Leopard.
If I have a string "simplified" (length 10) it will be displayed as
"simplified" (length 9) caused by the used fi ligature. This leads to
a small problem if one wants to output a pretty looking table for
instance. Under Tiger is that not the case.
Is this behaviour switchable?
--Hans
Hi,
I'm just beginning to like Python ;)
Caused by that issue here are some tiny suggestions:
Walter Dörwald had the idea to provide exit codes similar to Ruby's
exit_codes.rb.
This could be integrate in tm_helpers.py à la:
def exit_discard():
sys.exit(200)
def exit_replace_text(out = ''):
if out: print out
sys.exit(201)
def exit_replace_document(out = ''):
if out: print out
sys.exit(202)
def exit_insert_text(out = ''):
if out: print out
sys.exit(203)
def exit_insert_snippet(out = ''):
if out: print out
sys.exit(204)
def exit_show_html(out = ''):
if out: print out
sys.exit(205)
def exit_show_tool_tip(out = ''):
if out: print out
sys.exit(206)
def exit_create_new_document(out = ''):
if out: print out
sys.exit(207)
Furthermore tm_helpers' sh(cmd) is not UTF-8 safe.
If I'm using e.g. popen("grep 'ä' 'test.txt'") or tm_helpers.sh("grep
'ä' 'test.txt'") I have problems with the codec.
I tried several things to encode/decode unicode but no success. Maybe
some of you can fix this.
I went the way to use popen2. Then I didn't have such problems (?)
The next issue is regarding dialog.py. Maybe one could the function
'menu' looking for DIALOG2. If there's DIALOG2 it uses that syntax,
if not fall back to DIALOG1.
This could also be done for Ruby's ui.rb.
Cheers,
--Hans
I moved the mailing list to a new server. I couldn’t migrate
individual user settings (other than digest/non-digest) so if you had
disabled mail delivery or similar, you’ll have to do that again and if
you had a list password, then that is now reset.
We may also have lost around 40 subscribers, at least if the number of
subscribers in Mailman’s web UI is correct.
Also, messages to the list sent in the last 8 hours or so have bounced
with “relay access denied”.
But other than that, everything went smooth :)
My TextMate today started acting funny. When some
text is represented as italic (e.g., in LaTeX, inside an
\emph{THIS TEXT SHOWN AS ITALIC} ,
the text looks corrupted: some of the caracters are
replaced by other characters. If I switch back to
non-italic e.g. by changing bundle, everything looks ok.
Two funny thngs:
1) not all characters are changed. This
\textit{AAAAAAAAAAAAAAAAAAAAAAAAAAAA}
appears perfect. On the other hand, if I write
\textit{EEEEEEEEEEEEEEEEEEEEEEEEEEEEE}
some of the E's are replaced by an upperscore:
the 4th, the 8th, 12th AND 13th, etc.periodically
2) if I shift the thing, the position of the corrupted
characters remain fixed:i.e., if I write
\textit{EEEEEEEEEEEEEEEEEEEEEEEEEEEEE}
(three spaces at the beginning) now the 1st,
5th, etc are changed into an upperscore.
Any ideas before I download a fresh copy and reinstall?
Thanks
Piero
Hi,
is there/could there be a way to cache the undo-history in TM or
future TM2 even after closing the programm?
Users of laptop computers who prefer the sleep mode instead of shuting
down the computer will have the advantage to find their desktops/
workspaces just as they have left them, including undo histrories.
They will have the disadvantage that sleepmode will suck empty their
batteries, especially when you have a lot of RAM installed. Also this
is over the time lowering the life expectancy of your accu set.
Sometimes I only use sleep mode because I dont want to loose the
changes that I have made in TM (code debugging most of the time)...
If Historie would be cached, I then have one reason less to worry
about shutting down completely or not.
Id be happy if more programs could support such a behaviour, it is
convenient and will save at least some resources and energy.
Thanks & sincere
Dennis
> Now what context this bit of grammar is really for I don't know.
> From what I can see the other examples I gave don't use above.
> Perhaps the original author of this grammar can shed light on this
> and make the proper changes.
I guess I am the original author, though I haven't worked on it for a
while (not since my kids were born!). The svn blame for this piece of
the grammar goes to gerti, duff and msheets.
Let me say that if we as a Textmate community really want to have
distributed editing of these grammars, then we should develop a set of
test cases to check if our grammar edits break anything. Maybe one or
two documents with a .png of the correct highlighting using a default
color scheme.
best wishes, Eric
--
Eric Hsu, Associate Professor of Mathematics
San Francisco State University
http://math.sfsu.edu/hsu
erichsu(a)math.sfsu.edu
Hi,
I'm recently playing a lot with great Ruby web framework called
Ramaze. By default when running my project, Ramaze highlights
different event types in the console with different colors. So errors
are red, warnings yellow, notices green and so on. This works great
when I run my program from the Terminal, but when I run it within
TextMate with ⌘R and its output window unfortunately I get no colors.
I don't know if it is fault of Ruby bundle or TM internals, but I'd
love to see the colors there too, as they help reading logs a lot.
Best regards,
--
Adam Strzelecki |: nanoant.com :|
Anyone feel up to getting this working in textmate
http://txt2regex.sourceforge.net/
would be VERY handy
--
Saul Rosenbaum
Visual Chutzpah
---------------------------------
Strengthening Brands Through Illustrated Images And Interactive Design
web: http://www.visualchutzpah.com
email: saul(a)visualchutzpah.com
phone: 215-702-1147
fax: 866-475-1913
Hi,
This is just a generic question on how you use Terminal and TextMate
in developing with Rails. I benefit from the bundles like Ruby, Rails
RubyAMP and RSpec. My problem is that I would like to have a few
Terminal tabs open for one application. I need one tab for running
commands like script/generate or rake tasks. (I know I can use Control-
Shift-\ for some tasks, but it feels a bit slow to me.) Another tab is
for the server log genarated after `script/server`. And optionally I
have a tab open for script/console.
If I use Control-Shift-O, the Terminal window opens and `cd` to the
current directory. RubyAMP bundle has Control-Command-P for a similar
feature. But if I use the same command more than once, a new Terminal
window shows up. I would like to have a new tab instead.
What I do currently is that: 1) Open the TextMate project file, 2) I
use Control-Shift-O to open the Terminal window and find myself in the
project directory, 3) run the AppleScript I made to duplicate a tab.
My AppleScript is written at <http://samuraicoder.net/applescript_duplicating_tabs_terminal
>. This is just a shitty script, simply emulates what I do on
keyboards. Is there anybody who can know a much better way? Or would
you suggest any better workflow?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi,
I suggest to add German quotation marks to the Latex Bundle:
This can be archieved by adding
>>
<array>
<string>„</string>
<string>"</string>
</array>
<<
to
Latex.tmbundle/Preferences/Miscellaneous.plist and
Latex.tmbundle/Preferences/Smart\ Typing\ \(Strings\).tmPreferences
under the "highlightPairs" and "smartTypingPairs" sections in each
file.
Please note that I have limited knowledge on how those bundles work.
Applying the changes above worked for me.
Kind regards
Johannes
Hi,
a quick question.
Is there any bundle which can be used as a kind of GUI for SQLite
databases?
If not, is there a free Mac GUI available?
Thanks,
--Hans
I *am* writing my current book in TextMate. I won't claim that my way
of doing it is *the* way, only the way that I am doing it.
First, let me say that you'd be a fool not to look at Scrivener. It's
a great app. I just about bought it myself, but I had
(1) already spent enough money on trail of the word processing grail
and
(2) begun to imagine myself enough of a geek to go it on my own (e.g.,
I already had a way to play QT files from within textmate)
I did, however, copy some ideas from Scrivener, as you'll see in the
layout of my project folder:
(For those who don't want the JPG:
/boats
/fieldwork
/outputs
/research
/~mss
)
As you can see, the book is about boats -- crawfish boats in south
Louisiana (if you want to see a picture, there's one on the front page
of my website: http://johnlaudun.org/) -- and it's a nonfiction work
with different enough, to my mind, kinds of research that I have it
broken out into simply research and fieldwork. The tilde (~) puts
things at the top of Finder windows, but the bottom of TextMate
project drawers. (I don't care, as long as the part where I'm doing
writing is easy to find. I use MSS, for manuscript, instead of draft,
ymmv.)
Most of the mss texts, as you can see, are in Markdown, but that's
really MultiMarkdown. I haven't begun to experiment with footnotes
just yet -- I'm still early enough in the drafting process that I can
play with reference schema -- and Fletcher's footnote implementation
is tenuous. (I'm taking a look at Maruku right now, to see if there's
anything to learn there.)
I have heard the siren call of LaTeX several times now over the years,
but I just can't bring myself to do it. I like being able to share my
plain text files with non-markup-aware clients and colleagues and that
I can then generate RTF files out of them, which is all publishers
want. (Most will also take Word documents, but an increasing number
are going back to RTF, precisely because of having to deal with Word's
noting system is such a pain.)
So there are writers who write with TextMate -- check out the
impressive ScreenMate some time! -- but I don't know if there's any
consensus. I, for one, wish I could go from MMD texts to RTF or PDF
with headers and/or footers, but I haven't found a convenient way yet
-- and I keep forgetting to see if I can get Prince working on my MBP.
I hope that helps.
john
In the editor, I can do ctrl-tab to move the focus to the Project Drawer. But
what shortcut can I use to move it back to the editor? Pressing tab 3 times
does the trick, but it doesn't seem very optimal. Any suggestion?
Alex
-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/
--
View this message in context: http://www.nabble.com/Keyboard-shortcut-for-moving-the-focus-the-Project-Dr…
Sent from the textmate users mailing list archive at Nabble.com.
Hey,
a short while back I went looking for a TextMate plugin for ack but
the advertised link was dead so I based one off GrepInProject++
(instead of doing something sensible like contact the plugin's author
about the dead link...).
Anyhow, my own take on "Ack in project" can be found at:
http://github.com/protocool/ack-tmbundle/tree/master
It does nifty stuff like remember your last 10 searches, allows you to
choose word, literal or case insensitive search as well as configure
options like whether you want to show context lines, follow symlinks
and ignore .ackrc (you can define a .ackrc in your project directory
too).
I've still got a few things I'd like to improve with it but it's in
daily use (on Tiger, will test Leopard shortly).
Regards,
Trevor
--
--
Trevor Squires
http://somethinglearned.com
Hi,
I often have some Project Folders with multiple HTML files.
I need a Shell Script to concatenate them all together into one single
file, to use in a command.
Possibly to strip also Header and Body Tags.
File names have consistent naming convention.
Any Ideas ?
regards, marios
Dear all,
there's a new bundle called "Unicode" in the review trunk. It is meant
to be a place where we can gather any kind of scripts, commands, etc.
which are related to general Unicode issue, meaning non-ASCII. This
should also a place where we can gather scripts related to specific
languages like Japanese, Chinese, Greek etc.
This bundle is the first stage. How do we separate this bundle is a
future task.
Thus, if there is someone who already has such scripts or is willing
to support, please let us/me know.
Up to now there are the following stuff in:
- Normalize according canonical (de)composition of accented characters
- Delete Diacritics: façadë έ だ => facade ε た
- Convert to a similar Unicode Character: type the letter 'c' to get a
list of "cçćĉċčƈ¢ɕʗḉ⒞ⓒc¢"
- Convert to Greek Character: type 'n' to get "ν"
- Show Unicode Name: select some letters to get a list of the Unicode
names like LATIN SMALL LETTER A
I have many other scripts, but I need some time to polish them up.
To get this bundle, simply use the Subversion Bundle's checkout
http://macromates.com/svn/Bundles/trunk/Review/Bundles/Unicode.tmbundle
save this to the Desktop or whatever.
I know, to deal with non-ASCII scripts in TM 1.x is a bit tricky, but
TM 2.0 will come ;)
Cheers,
--Hans
can anyone tell me why the perl bundle treats the letter 's' oddly
when it is used as a hash index? for example the statements
$OPT{w} = 'a';
$OPT{s} = 'a';
are highlighted differently. what's up?
tia,
tom
Im trying to write a document where I use eps images for
illustrations, this works fine with the usual command + r function,
but does not work with the watch document(I get an error about
unsupported image files). Is there an easy way to fix this?
I know that autocompletion exists in many bundles but requires you to
push ecsape to get it up, is there a way to do the following with a
bundle?
Lets assume I am editing a PHP document and type "s", the bundle (or
even better, TM2 ;)) looks up a list of function names and then
outputs after the s, the first keyword in the list that starts with
"s". However, that extra text is left as selected, if the user
continues to type then they will overwrite the text (and it will alter
it's guess accordingly) but if the user hits the relevant key, it
leaves the selected text in place and puts the caret (I think that's
the name) at the end of the word.
If it's not possible in a bundle, is there any chance of seeing
something like it in TM2?
Thanks
Teifion
––––––––––––––––––
http://woarl.com/blog
Hello,
I would like to implement auto-completion with alt-esc, in the same
way as it works with HTML.
<a n[ALT+ESC]> --->generates---> <a name="">
but having a slightly different syntax:
\commandname[options1][options2]
where I would like to be able to type
\commandname
[{here's the caret, I press ALT-ESC}]
[]
and then I would get a list of options, specific for the first
argument after \commandname and specific for the first bracket (second
bracket has a different set of commands).
A sample usage:
\definecolor[orangered][r=.9,g=.5,b=0]
or
\setupcolors[state=start] % could be state=stop
In the first case, I want to hit alt-esc in the second pair of
bracket, and I want TextMate to offer me the options "r=", "g=", "b=",
"c=", "m=", "y=", "k=" (and maybe to give me hint that a number
between 0 and 1 has to follow).
In the second case I want to hit alt-esc in the first pair of brackets
and I want TextMate to offer me a list of options "state=" and
"conversion=", and if I choose state=, I want to hit alt-esc again and
TextMate should offer me a list of two options "start" and "stop".
I know how to write a ruby script that would get command name or
current line as the argument, and would return a list of available
options, but I don't know what exactly my script needs to return, and
I don't know how & where to plug it in.
I've seen this in html:
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
print TextmateCodeCompletion.new(
#[%{class=""}, %{id=""}, %{style=""}, %{<img src="/images/"}, %{<img
border="0"}, ],
TextmateCompletionsText.new(ENV['TM_COMPLETIONS'],{:split=>','}).to_ary,
STDIN.read,
{:scope=>:html_attributes}
).to_snippet
but it's not really clear to me how to experiment with it outside of
html. Moreover, the library codecompletion might not be able to handle
too complex cases. (I don't really know, I only fear that.)
I'm willing to do it for plain TeX + LaTeX + ConTeXt (I'm currently
extracting TeX primitives & ConTeXt commands with options, for LaTeX
it would work the same way once I get some list of commands), but I
need some pointers where to start first.
Thanks a lot,
Mojca
Hi,
is there some documentation on how to use TextMate::UI?
I'm trying to create a small dialog asking for a string with two
extra check boxes.
Thanks in advance,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo(a)simplicidade.org
Use XMPP!
Hi,
sorry for breaking the rules! I lost the thread.
>> On 6 Feb 2008, at 22:26, Alexander John Ross wrote:
>>
>>> • Add Unicode support to PyMate / ScriptMate.
>>>
>>> Changed:
>>> U trunk/Bundles/Python.tmbundle/Support/PyMate/pymate.rb
>>> U trunk/Bundles/Python.tmbundle/Support/PyMate/tmhooks.py
>>> U trunk/Support/lib/scriptmate.rb
>>
>>
>> I got this ticket http://macromates.com/ticket/show?
>> ticket_id=502C2FDD
>> and after some experiments I think the problem is that PyMate does
>> not
>> pick up on the encoding provided by the user.
>>
>> For example a script like this will error:
>>
>> # coding: utf-8
>> print("æble")
I do not know whether this helps to solve the problem, but I just
figured out that 'print' is the problem. If I'm using
'sys.__stdout__.write' instead it works.
#!/usr/bin/env python
# encoding: utf-8
import sys
import os
a = u"æble"
sys.__stdout__.write( a.encode("raw_unicode_escape") )
Cheers,
--Hans
Hi there, thanks to the list I've managed to get my AS2 projects
publishing out of textmate great using MTASC, now I'm trying to do
the same with my AS3 projects.
I would like to compile my AS3 SWFs direct from Textmate. At the
moment I am only building a single SWF as you would get if you
published from Flash.
I would like to be able to build my graphic assets in Flash then
write my code in Textmate and compile from Textmate and view my SWF
and trace using Xtrace.
Could someone give me some pointers on how to do this, all of the
AS3 / Flex bundles seem to want to create a whole Flex application
not just the single SWF.
If someone could also point me in the direction of a step-by step
tutorial for creating Flex Apps in textmate that would be super-handy
too as I would also like to learn this at some point.
Thanks guys :)
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hi,
I'm working with some ColdFusion code and am trying to get the syntax
highlighting to treat code inside <cfscript> tags the same as it treats
code inside <script> tags, like javascript and such... it's not
immediately clear how I might accomplish this...?
Any suggestions are appreciated.
thanks,
Eben
This is a long shot, but does anyone have a bundle for RenderMan RIB
files that they've worked up? Mostly syntax hilighting would be a
great start. I just wanted to check before I start in on my own.
Thanks.
Dan
Am trying the latest 1.5.7 version and am getting the following crash
when attempting to use the 'mate' CLI utility.
2008-05-30 18:35:27.487 mate[1659:10b] An uncaught exception was raised
2008-05-30 18:35:27.488 mate[1659:10b] [NOTE: this exception
originated in the server.]
*** Object does not implement or has different method signature
2008-05-30 18:35:27.490 mate[1659:10b] *** Terminating app due to
uncaught exception 'NSInvalidArgumentException', reason: '[NOTE: this
exception originated in the server.]
*** Object does not implement or has different method signature'
2008-05-30 18:35:27.492 mate[1659:10b] Stack: (
2477355339,
2526257403,
2477354097,
2454304598,
2454302457,
2477377962,
2477378066,
10507,
14446,
9754,
9525
)
Trace/BPT trap
Have been able to use mate in the past with 1.5.6 on Leopard 10.5.2
but just noticed this crash since upgrading to 10.5.3.
Anyone else noticed anything ?
--
Boris
I'd like to set-up a command to import text from an external txt/html/
js to a current project but have had no luck finding any tips on how
to go about this. Is it possible?
I think it would be really handy to have for example a command that
pulled in the latest swfobject.js from my SVN repositories. I'm sure
this could be useful for lots of other workflow timesavers too.
Hello,
I've always dreamed about a text editor that will show unicode to me
in a slightly more suitable form than what I'm used to. Like a double-
width em-dash (assuming fixed width fonts are being used) -- or even a
double-width en-dash and a triple-width em-dash -- and visual
differentiation between the various invisible characters like no-break
space, zero-width joiner, and the half dozen or so extra unicode
glyphs that aren't displayed very well in code.
While TextMate's "Show Invisibles" does indeed show no-break space,
(most of?) the others remain invisible. And em-dash is rather hard to
distinguish from en-dash :)
Has anyone else ever thought such things before? Certainly I think
greater editing support for such unicode glyphs would encourage their
use (which, at present, seems rather uncommon).
Will
hi all,
i'm a long time textmate fan and want to start using it with the
openframeworks c++ lib (http://www.openframeworks.cc)
the xcode plugin compiles the example projects fine, but at the end gives me
this error:
Executable doesn't exist:
/Users/nay/Documents/openframeworks_05/apps/sketches/moviePlayerExample/build/Release/./openFrameworks.app/Contents/MacOS/openFrameworks
it runs fine in xcode, but the path here should actually be:
/Users/nay/Documents/openframeworks_05/apps/sketches/moviePlayerExample/./openFrameworks.app/Contents/MacOS/openFrameworks
the directory seems to be correctly set in xcode under executables as
/Users/nay/Documents/openframeworks_05/apps/sketches/moviePlayerExample
which is where the app gets put
it looks like it has something to do with the 'active build config' being
misread, which is 'Release' in this case.
any help hugely appreciated.
cheers,
nay.
Dear dialog.py developer,
I'm not a python programmer but I'm just learning ;)
I believe that dialog.py's method "menu" fails if I call it with a
list of strings which is encode in UTF-8 (i.e. the string contains
non-ASCII characters)
What I did:
...
suggestions = list(list(unicode(grepout.read(), "UTF-8"))[2:])
...
suggestions contains a list of Unicode characters. Fine.
suggestions[3] etc. can I insert in TM's document perfectly.
But:
result = dialog.menu(suggestions)
fails.
Did I something wrong or is this an issue of dialog.py?
Many thanks in advance,
--Hans
Greetings -- when looking around to assemble a transcribing system for
Mac, I've found a very cool solution at O'Reilly's Digital Media, by
David Battino:
http://digitalmedia.oreilly.com/2005/03/09/transcriber.html
It consists of AppleScripts for Tex-Edit Plus, a speech-capable editor
also supporting AppleScript. The scripts to rewind and replay are
provided in the article, names ending in function keys like _F10 --
that's how Tex-Edit assigns keys to them.
What does it take to adapt them to TextMate -- where's I put them, etc.?
Cheers,
Alexy
Hi,
maybe I'm doing something wrong, but I have the Support/ directory up-
to-date, and the Textile.rb is missing from the bin/ directory.
But the Preview command in the Textile bundle uses it.
Any ideas?
Thanks,
--
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo(a)simplicidade.org
Use XMPP!
Hello,
is there a way in Textmate during editing a file to open a "helper"
window (something like in the subversion bundle when i hit
shift+ctrl+a) where the exact menu entries
of all commands are listed which are available for the current language.
I mean to display the same menu which appears when I go to Bundles >
LaTeX (for example) so that I can browse with the arrow keys through
the commands.
Bye,
Martin
I recall this being discussed before but searching for the phrase
"comments" on Google matches pretty much every blog out there, so no
joy.
I wish to modify the commenting style in the AS3 bundle from this:
/*
* Comment in here, everything left aligned, huge tab in there!
*/
To this:
/*
* Comment in here, one space before, not a tab after
* Final line leaves all *'s nicely lined up
*/
I have tried searching through the AS3 bundle for anything relating to
comments but I must be looking in the wrong places. It'll be some
tiny tweak to a regex, I hope. Can anyone point me in the right
direction?
Many thanks!
Gaby
--
Uganda Maximum - Enemy of the English Thrust
http://www.playr.co.uk/
For editing xml, I'm really missing a clickable outliner of the xml document
that lets me easily jump to different nodes. I know TextMate isn't an IDE
but I would love this functionality (it's in jedit as well as part of the
sidekick plugin.) Here's a screen shot of Eclipse's outline view of an xml
document http://img.skitch.com/20080528-f34dyh22e7sm7j7h218ymaqtxm.jpg
It doesn't look like xmlMate bundle has this kind of functionality. Does it
exist in some other bundle out there?
Thanks
--
Rick
Hi,
I do not know if this request is a general one, but in the past it
often happens to me that I want to get the content of a tooltip in
order to do something with it. A simple example is the output of
"Statistics of Doc/Sel". Sometimes I want to insert that info into my
document.
[The same for the HTML tooltip (?)]
Is there a way to provide such a functionality? Now I do the
following: Change the command's output behaviour to "Create New Doc",
invoke the command again, and reset the command's output behaviour.
But this is a bit annoying.
Of course, to find a proper key/mouse event could be a bit tricky. All
key events are bound to text document except for ESC. Thus my question
is: Does anyone have an idea?
Cheers,
--Hans
I have a page of text edited in Text Mate. I want to know the number of
characters in a specific paragraph (by highlighting that paragraph). Is this
possible in Text Mate and if yes, how?
Thanks in advance.
Hiya, I've started compiling using MTASC from Textmate using the
'Build with MTASC' option. I'm using the XTraceTest.as file (at the
bottom) and it compiles great.
What I can't figure out is how to target the Stage from my class, if
I have movieclips on there that I want to target for example. I can
target the _root but this isn't ideal.
Any suggestions much appreciated
Cheers :)
Ali
import com.mab.util.debug;
class XTraceTest extends MovieClip{
static function main() {
debug.waitForSocketConnection = true;
debug.initSocket("127.0.0.1");
debug.trace("Yo, whaz upppppp:?");
debug.trace("This is a really really really really really really
really really really really really long string");
debug.trace("[DEBUG] This is a debug string");
debug.trace("[WARN] This is a warning");
debug.trace("[NORMAL] This is a normal formatter string");
debug.trace("[CRITICAL] This is a critical warning");
for(var a = 0; a < 10; a++) {//say hi 10 times
debug.trace("Hi server! " + a);
}
var testOb = {question:"Are you cool?", response:"Of course!"};
debug.dumpObject(testOb);
}
}
--------------------------------------------------------------------------
Alistair Colling
Interactive Developer
FPP Brand Communications (Newcastle upon Tyne)
The Courtyard
Dinsdale Place
Sandyford
Newcastle upon Tyne NE2 1BD
Telephone: +44 (0)191 261 6662
Fax: +44 (0)191 233 2511
This transmission is confidential and intended solely for the person or organisation to whom it is addressed.
It may contain privileged and confidential information. If you are not the intended recipient, you should not
copy, distribute or take any action in reliance on it. If you have received this transmission in error, please
notify the sender at the e-mail address above.
FPP Design Limited. Reg. Office: The Courtyard, Dinsdale Place, Sandyford, Newcastle upon Tyne NE2 1BD.
Registered Number 3775564. Registered in England and Wales. Visit our website at http://www.fpp.net/
Hi,
I've been playing around recently with developing a different
technique for sectioning in LaTeX; put simply, instead of writing
\section{}
...
\subsection{}
...
\subsection{}
...
\subsubsection{}
...
you write
\begin{sect}{}
...
\begin{sect}{}
...
\end{sect}
\begin{sect}{}
...
\begin{sect}{}
...
\end{sect}
\end{sect}
\end{sect}
I'm not 100% convinced that this is an easier way to write than
LaTeX's absolute method as opposed to this sort of relative one, but
I'm willing to give it a try for my thesis to see how it works out.
The advantages are that folding is more easily supported :) and that
it's much easier to move sections around without having to search/
replace all of the \\(sub){0,2}section commands.
But here's the thing...I know it would take you guys orders of
magnitude less time than it would take me to adjust the LaTeX bundle
to integrate this structure into it. (Starred sections look like
\begin{sect*}{} and optional ToC section titles are with \begin{sect}
[toctitle]{...}.)
All I'm really missing is the nice outlining features. Is this an easy
change to make to the bundle?
Many thanks,
Will Robertson
Hi
I'm just starting using TextMate and at the same time starting to learn
Flex/ActionScript 3. I've got a project that I was previously working on in
FlexBuilder, and I have managed to get that to build and run through
TextMate. I can open mxml files and make changes absolutely fine there, but
if I go into a .as file and try to make any sort of alteration then TextMate
hangs and I have to Force Quit.
Anyone seen this before, or have an idea?
Cheers
L
--
View this message in context: http://www.nabble.com/TextMate-hangs-when-editing-an-ActionScript3-file-tp1…
Sent from the textmate users mailing list archive at Nabble.com.
Hi list,
I have just installed the Mercurial Bundle, and I have a little
problem. Let's say I have a project, and 2 files have been edited
since the last commit. When I check it at the command line, I see the
two "M" markers for the 2 files.
But inside textmate, it is like the "hg status" command only applies
to the file I am currently viewing, so I only get the "M" for the file
I am viewing. And if I am viewing a file that hasn't ben changed, I
don't see anything at all.
Is there some special setup that I might have missed?
I have saved my project as "a project" in textmate. I open it using
project.tmproj file. I saw from the help, that if the file doesn't
belong to a project, it is checked alone. Is it a problem if my
project files are actually a symlink to a another repository that
lives in /var/www?
Best regards,
Hi,
The syntax coloring in phpmate when I use it to look up PHP documentation is
very hard to read for me (bright red on black, etc) and I was wondering if
there's a way to change it (it'd be great if it could match my syntax
coloring) or at least remove it
Thanks,
Nick
Hi textmates,
A while ago I was asking about mixing R and markdown in a similar way Sweave uses LaTeX to document R codes. It turns out the "brew" package (https://stat.ethz.ch/pipermail/r-packages/2007/000327.html) can make this very easy: any text outside markers in the document is unprocessed by R and returned unchanged, while R code chunks inside some special tags is run by R (creating graphics, etc...). This combined with Multimarkdown provides a very powerful workflow (by-passing the latex syntax and long compilation time I find overly intruding in Sweave).
Obviously, I'd love to have a custom syntax highlighting to go with this new approach. It would be heavily based on Sweave's bundle, with only a few differences:
1) Multimarkdown is to be used as the normal text syntax (conditional syntax highlighting and commands)
2) the "@" and "<< >>" delimiters are now replaced by "<%"
( 3) instead of calling latex, the perl script for multimardown could be used )
I've tried to tweak the Sweave bundle, but I don't really understand the code to be honest: i think i was too naive in thinking that changing sweave to "breweave" and text.tex.latex to text.html.markdown.multimarkdown everywhere could work.
Is there some sort of guidelines I should follow to modify the Sweave bundle? Would this be fairly doable by a novice in Ruby and TM macros?
Best regards,
baptiste
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail
I am a new registered user to textmate.
I realize that textmate implements automatic pairing of delimiters such as
parentheses. However, this does not prevent you from removing one of the
paired parentheses etc during the editing process. In vi, I would use ³%²
to toggle between open and close delimiters to debug syntax. I can¹t find a
similar feature in textmate.
I wonder if someone has written a macro to implement this. or am I missing a
feature? Is this specific to a bundle? I am using the R and C bundles.
thanks!
peter r
Hi,
I run TM 1.5.7 (1464) on 10.5.2 ppc.
I'm a keyboard person. If I open the standard Find Dialog and I would
like to choose a previous used Find pattern, I press ARROW-DOWN to
open the history list; then I go to my desired pattern; and finally to
select it I press ENTER or RETURN. But pressing ENTER/RETURN not only
selects my pattern but also starts the Find/Replace process, which can
be a bit annoying caused by the issue that I didn't choose my replace
pattern yet.
Is there a way in TM 1 or TM 2 to get rid of the "tiny problem"?
Meaning, if the history list is open ENTER/RETURN _only_ selects the
list item?
Many thanks,
Hans
Hi!
I have a strange problem lately when I compile tex-files (actually I
can't say how "new" the problem is because I didn't compile a tex-file
for a longer time now):
When I compile a file with a bibliograpy the cite-fields won't get
filled out. Let's say I have a bib-item with the bibkey test:2007sf
(authors last name test, year 2007) and I write for example \cite[p.
45]{test:2007sf} it will compile to (?, p. 45). In the log-file stands
that the item cannot be found in the bbl-file. Looking into the
bbl-file the item is there. Even several recompiles won't work.
But if I compile the file with TeXShop everything works as expected. A
re-compile with TextMate will then also compile as expected. If I
introduce new items via \cite the same problem as before occurs.
I use TM 1.5.7 (1464) and update my bundles regularly via svn. The
TeX-distributions I am using are gwTeX and TeXLive 2007 and I use
Latexmk.pl for compiling my files with TM which uses pdflatex (but
with latex the same problem occurs).
Any ideas what's happening here?
Niels
The "Change Current" command in the LaTeX Bundle seems to always select the
outermost environment rather than the innermost. For example, if the caret is
on the line with the equation in the following:
\begin{enumerate}
\item
\begin{equation}
f(x) = x
\end{equation}
\end{enumerate}
I would expect that hitting Control-Option-E would let me change the equation
environment to something else, but instead it selects the enumerate
environment. Is there a way to change this? Thanks for any help!
-Daniel
I am new to TextMate, and am using it for LaTeX, and finding it loads of fun. I
can't seem to get cite completion to work, however. If I put the caret inside a
\cite{} command, along with some text, and press escape, it does complete the
citation and cycle through my bibtex database. But if I press option-esc, it
gives me an error message in a tooltip. (The error declares that it cannot find
my bibtex database.) I'm expecting it to give me a menu of citation choices.
I have a standard MacTeX setup, running on a MacBook under OS 10.5.2. My bibtex
database is found in ~/Library/texmf/bibtex/bib.
Any suggestions? Thanks in advance.
Kyle
I have to develop with someone else's styleguide and it requires to
break every line at 80 characters.
Is it possible to get any visual clue where r.g. 80 columns are?(I
mean a vertical line like most texteditors have... not the column
number on the bottom)
Would be nice to have that feature, since the "right margin indicator"
as is present in textmate is pretty useless I think.
It only shows where the window is larger than the rightmost column
fully visible?(What is it for anyway?)
Maybe I am just missing something...
Thomas
How can I comment out a region (selection) of code? In other words, select
several lines of code, right click (or key combo) and comment out that
section (adding the correct lang comment tag).
Thanks
Stephen cox
--
View this message in context: http://www.nabble.com/Add-a-comment-region-tp17397875p17397875.html
Sent from the textmate users mailing list archive at Nabble.com.
As I set up Reformat Comment commands for the languages I use most
frequently (LaTeX and R), it occurred to me that maybe there's a way
to make a single call to rubywrap more generic, so that we don't need
a command per bundle. This is the result:
#!/usr/bin/env ruby
$LOAD_PATH << "#{ENV["TM_SUPPORT_PATH"]}/lib"
require "escape"
scope = ENV["TM_SCOPE"]
case scope
when /comment\.(block|line)\.number-sign\./
cstring = "# "
when /comment\.(block|line)\.percentage\./
cstring = "% "
end
flags = ""
flags += " -p \"#{cstring}\" "
flags += " --retabify" if ENV["TM_SOFT_TABS"] == "NO"
text =`echo -n "#{e_as(STDIN.read).gsub(/[$`]/, '\\\\\0')}" | ruby "#
{ENV["TM_SUPPORT_PATH"]}/bin/rubywrap.rb" #{flags}`
print e_sn(text)
The parameters are the same as the current command, with the
exception of scope, which I set to "comment.line, comment.block".
I also added a gsub to the command because it was eating latex math
and R symbols ($). There's probably a better solution to that. This
seems to work for me, and should be extended easily by adding lines
to the case statement for other languages. One advantage is that by
specifying the comment character based on the scope, it ought to work
for anything; it catches comments for both bash and perl, for
instance, without any extra effort. I think it's kind of cool.
-Alan
Hi all,
I have made some changes to the way that scripts are run. To
accommodate this I had to update the Ruby and Python bundles to be
compatible (it's a change for the better).
If you update either of these bundles, you are going to have to update
Support as well if you want the Run (⌘R) commands to work.
I do apologise for any inconvenience, but it is for the best.
LD.
Hello,
I'm relatively new to TextMate.
When I try and launch textmate from the terminal (via 'mate'), textmate
hangs.
Interestingly, if textmate is already open, this doesn't occur.
Eventually I have to force quite textmate. I am running Leopard (10.5.2) on
an Intel Core 2 Due iMac.
Anyone else have this problem?
Thanks.
Steve
Hello,
I just want to ask if anybody can confirm TM taking the 564MB physical
(1.3GB VM) with this simple test:
$ otool -tv /Applications/TextMate.app/Contents/MacOS/TextMate > /tmp/
tm.s
/tmp/tm.s is ~11MB
Close TM, and run:
$ mate /tmp/tm.s
Open Activity Monitor and check TM memory usage.
It means if I open 3 such files I'm out of my RAM. This is really
nothing good. I'd accept 1:5 filesize/mem usage ratio, but 1:50 is
kind too much.
Would it be any better in TM 2.0? I hope we can try some beta soon.
Regards,
--
Adam Strzelecki |: nanoant.com :|
Hi again,
I have added process.rb to Support/lib. It has a single method,
TextMate::Process.run() that can be used to gracefully handle opening
processes and capturing their output. I would encourage everyone to
use it if you are scripting processes. Especially if you want the
process to take advantage of the interactive input features which
should be released sometime in the near future. If processes are
opened with this method, then they should benefit from any other
features that are added for dealing with processes over time.
There is a blurb in the file on how to use it. Would be interested to
hear any comments you might have on it.
Just to clarify the implication of this…
In the next release of TM on (once the bundles have been updated to
use TextMate::Process.open()) whenever a process requests input, a
dialog will be presented to the user giving them a chance to enter
input. The classic use case for this is the Subversion bundle. No more
never ending commits while svn is waiting for you to enter your
credentials.
LD.
Hi
trying to have a dynamic dict inside TM, I have build the next command
dict "$TM_CURRENT_WORD" | enscript -Whtml -E -e --color -p -
with Input: sel text or word, output html
but I only get a window with the message:
enscript: malformed argument `html' for option -W, --option: no comma
found
while the same command in Terminal do fine
dict word | enscript -Whtml -E -e --color -p -
But if you put
dict "$TM_CURRENT_WORD" | enscript --language=html -E -e --color -p -
it works perfectly! I feel curious about it.
Juan Falgueras Cano
Profesor Titular de la Universidad de Málaga
Hi,
Anyone seen Chandler McWilliams, creator of the Processing bundle?
I've a patch attached for the Run command. It basically works the way
you think it should now.
Cheers,
yong
Hi, I’m trying to use ${5:helper text} variable in my regular expression
later in the code:
${5/(e)|(.*)/(?1:\te.preventDefault\(\);\n)(?2:)/}})
What I do here? I check if $5 equals "e" and if it does, I append
".preventDefault();" to my "e". But I’d like to write something like this:
${5/($5)|(.*)/(?1:\t$5.preventDefault\(\);\n)(?2:)/}})
Which simply means I’d like users to be able to change "e" into, for example
"event".
My whole snippet, for better understanding:
bind('${1:event name}'${2:, ${3:passed object}}, function(${4:e}) {
${0:$TM_SELECTED_TEXT}
${4/(e)|(.*)/(?1:\t\/$4.preventDefault\(\);\n)(?2:)/}})
--
View this message in context: http://www.nabble.com/Snippet%E2%80%99s-%24variables-in-RegExp-tp17302873p1…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all, I've tried searching for this, and my google-fu is weak.
Does anyone know how I would be able to change the indentation behavior for
just parenthesis in Javascript?
Basically, our code convention is so that when you have multiple arguments
on new lines (for instance, passing an anonymous function as a closure), the
closing parenthesis aligns to whatever the current tabbing level is.
Currently, the curly brackets do this now, and would like to mimic the
behavior, but can't make heads or tails of doing it with the current
indentation patterns.
Here's what I would like:
var xyz = (
\t
)
Here's how it actually currently is:
var xyz = (
\t)
Here are my current indenation rules, could anyone help me get what I'm
looking for, or have I been looking in the wrong place?
{ decreaseIndentPattern =
'^(.*\*/)?\s*(\}|\))([^{]*\{)?([;,]?\s*|\.[^{]*|\s*\)[;\s]*)$';
increaseIndentPattern = '^.*(\{[^}"'']*|\([^)"'']*)$';
}
Thanks in advance all!
--
View this message in context: http://www.nabble.com/Javascript-indentation-tp16985640p16985640.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I’ve been looking through the bundle help, but I haven’t been able to
find any information about my problem.
While I am usually using pdflatex to compile my files, I’m currently
working on a project containing a little pstricks. As we’re several
people working on the file, I’fd rather avoid using %! comments in the
beginning of the file. I was thus wondering if there was some way to
set a project-wise environment variable to override the default engine.
Thank you very much,
Édouard GILBERT
edouard.gilbert(a)gmail.com
On 15-May-08, at 5:00 AM, textmate-request(a)lists.macromates.com wrote:
> On May 15, 2008, at 11:00 AM, Arcana wrote:
>
>> When I open Textmate, for some reason it opens X11 as well. I don't
>> know why this happens and I can't get it to stop. The X11 icon
>> appears in the dock.
>>
>> How can I stop Textmate from loading X11? Thanks.
>>
>> -- Arcana
>> Suikoden Interactive Fiction: http://suikoden.mine.nu
>
> Do you have any plugins or special bundles installed?
>
> If so, try to remove them one by one and to revert to default bundles.
>
> <http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles>
>
> Most likely, this is caused by some plugin/bundle that uses the X11-
> Libs. This causes X11 to start automatically (on Leopard).
How do I know what plugins I have installed, if the problem is
probably not bundles?
-- Arcana
Suikoden Interactive Fiction: http://suikoden.mine.nu
Hi,
what do I have to set up in the bundle editor to achieve the following:
- Word is selected, e.g. TextMate
- use a key equivalent to get: \ind{TextMate}
That all needs to work with the LaTeX-Bundle.
Thanks
Christian
When I open Textmate, for some reason it opens X11 as well. I don't
know why this happens and I can't get it to stop. The X11 icon appears
in the dock.
How can I stop Textmate from loading X11? Thanks.
-- Arcana
Suikoden Interactive Fiction: http://suikoden.mine.nu
Hello everyone :)
Often, bookmarks accumulate in my files and soon enough, well there's too
much of them and it becomes tedious to jump to the one I want :-D
I don't know if it is possible for the time being but I would like to be
able to delete all bookmarks from a file, to clean completely the file.
TIA
--
View this message in context: http://www.nabble.com/Clean-bookmarks-in-a-file-tp17252984p17252984.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I want to ask if there's anything like GitMate that does folder icons
same as SVNMate?
2nd thing is if it would be possible to share same shortcut ⌃⇧A for
SVN, GIT and all versioning bundles.
Since they are exclusive -> folder may either contain just .git
or .svn subfolder, the ⌃⇧A menu could display/trigger its items
relatively to presence of those folders somehow.
Regards,
--
Adam Strzelecki |: nanoant.com :|
The behavior of double-click and option-arrow have recently changed for
me (only in TextMate), and I'm finding the new behavior really annoying.
For example, if I have the following Python code:
def my_function(parameter_name, defaults=None):
#This is a test + another test ...
...then, 1) if I double-click on the "my" part of the function name, it
select the string "def my"; 2) if I double-click on the word "test", it
selects "This is a test ". Previously, #1 would have selected either
"my" or "my_function" (I forget which) and, #2 would have selected only
the word "test".
The option-left-arrow and option-right_arrow keys use similar "word"
breaks when moving the cursor: if the cursor is in the word "test", for
instance, option-left-arrow moves it to the beginning of the word "This".
It's not just a Python change, either. If I have the following text:
ALTER TABLE `my_table_name` MODIFY COLUMN `column_name` FLOAT NOT NULL;
...then double-clicking on the word "MODIFY" selects " MODIFY COLUMN ",
for instance.
What might have changed to cause this annoying behavior, and how do I
fix it?
I'd appreciate any suggestions,
Mike
Hi,
When I open a new document with TM, it's allways a plain text document. But
I wish often a html document.
What can I do in order to obtain an empty html document ?
Thanks in advance.
--
Bernd
Hello,
This report is mostly to Ciarán, who deserve great thanks for making
great TM plugin.
I've reported this problem on http://ciaranwal.sh/2007/12/07/svnmate-update-2
But since there's no response I believe Ciarán might missed that, so I
just want to report that some of the folders and files that are
supposed to be under SVN control have no badges at all.
This happens when SVN controlled folder contains the unmanaged file
(out of version control) + few other files under version control,
folder badge is missing (removed), also parent folder looses badge
too. IMHO there’s something wrong with badge inheritance.
Also there’s missing badge for files marked as “!” (svn status) and
when there’s such a file in the folder all other SVN files loose badges.
Regards,
--
Adam Strzelecki |: nanoant.com :|
Hi There,
I wonder if anyone can recreate this, I did a screencapture of it and
Submitted a bug.
(http://macromates.com/ticket/show?ticket_id=660D19FA)
View it Here : http://www.youtube.com/watch?v=PUa6W3E9ZCg
Not super quality.
If you want just if you can recreate it, mail me and I'll send the file.
It's 900k
Karl
--
-----------------------------------------
Karl Fischer
"Absence of evidence
is not evidence of absence"
Carl Sagan
Email : kmf(a)fischer.org.za
Jabber : kmf(a)jabber.org
Personal Site : http://fischer.org.za
-----------------------------------------
My Subversion project contains a few symlinks that point to the same
directory the symlinks are in.
When I try to add that svn directory to a Textmate project by dragging the
folder into the project window, it freezes Textmate.
When I remove the symlinks before dragging the directory into the project,
it's fine. However, when I do a Subversion update on the entire project,
and the deleted symlinks get brought back down... it immediately freezes.
Is there some way to instruct Textmate handle this apparent endless loop
more gracefully? I am using Mac OS 10.5.2 and Textmate Version 1.5.7
(1436)
--
View this message in context: http://www.nabble.com/Textmate-Freezes-when-a-Subversion-project-contains-a…
Sent from the textmate users mailing list archive at Nabble.com.
Hi.
Since I upgraded my OS to Leopard, I'm not able to "Typeset & View (PDF)" my
LaTeX documents anymore. If I press cmd-R, all I get is the message "env:
python2.3: No such file or directory". What do I have to do to cmd-R my
documents again?
I'm on build 1464 and all my bundels are svn-up-to.date.
Bernd
--
berndschiffer.blogspot.com
I know about the shortcut for 'current scope',
but I'd like to see an optional
"double click to select current scope"
thing similar to how Xcode does it.
(Or, is there already some way to bind a
double-click to an user-defined action somehow?)
BTW, there seems to be a lot of cases in Textmate
where a scope is not selected correctly via
Select -> Current Scope.
Seems to be happening in large nested blocks
(cpp).
-Shin
Hi Guys.
I work a lot with Textmate, almost exclusively, in my MAC 24inch. In my
work, I deal with several textmate windows spread on my desktop, so I
organise them as I like. Sometimes, I need to close the all or some windows
(independent windows and some projects spread on my desktop). Unfortunately,
when I need to open the last windows, I have arrange them again. My question
is: Can I save the layout? Thx a lot and congratulations.
In RSpec file, if I run Command-R, I get the following error:
/Library/Application Support/TextMate/Bundles/Ruby RSpec.tmbundle/
Support/lib/text_mate_formatter.rb:5: uninitialized constant
Spec::Runner::Formatter::HtmlFormatter (NameError) from /usr/local/lib/
ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in `require' from /Library/Application Support/
TextMate/Bundles/Ruby RSpec.tmbundle/Support/lib/spec_mate.rb:14 from /
tmp/temp_textmate.zl6ZPP:3:in `require' from /tmp/temp_textmate.zl6ZPP:3
I'm using Ruby RSpec bundle from the latest macromates svn repos. I
can't find HtmlFormatter class(?).
Any help would be appreciated.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi,
When you use the subversion commit command in TM to commit something
into a repository where there is no authentication cached, the command
will wait indefinitely. And there is no way to stop it (other than
quitting TM).
Jeroen.
The command ⌘⌥R in HTML mode to open the current doc in runnning
browsers does not work properly (sorry, :)
it does
[[ $(ps -xc|grep Safari) ]] && osascript -e 'tell app "System Events"
to set proclist to name of every application process' -e 'if proclist
contains "Webkit" then' -e 'tell app "Webkit"' -e activate -e "make
new document" -e "set the URL of document 1 to \"$activeURL\"" -e 'end
tell' -e 'end if' -e 'if proclist contains "Safari" then' -e 'tell app
"Safari"' -e activate -e "make new document" -e "set the URL of
document 1 to \"$activeURL\"" -e 'end tell' -e 'end if'
but when you have WebKit running, ps returns you Safari as browser and
then you run Safari !!! side by side with the current running WebKit.
You should open the url via open url in that case or open it looking
for the real browser (Safari or WebKit that is currently running)
- Juan Falgueras
I am trying to make a snippet for easy writing of Effective Uniform Annual
Worth calculations which look something like this: EUAW = (Yearly Benefit +
Salvage Value*[A/F, $5%, $6]) - (Yearly Cost + Initial Cost*[A/P, $10%,
$11]) = [same thing but with [] expressions replaced by table lookups i do
by hand]
This is the snippet I've crafted for this (and to learn how to use
conditionals in snippets in general):
EUAW($1) = (${2:Yearly Benefit}${3: + ${4:Salvage Value}[A/F, $5%, $6]}) -
(${7:Yearly Cost}${8: + ${9:Initial Cost}[A/P, $10%, $11]})
= ${14:($2${4/$|(.+)/(?1: + $1*0.)/}$12) - ($7${9/$|(.+)/(?1: +
$1*0.)/}$13)}
That fills in everything, with appropriate mirroring, with one exception. I
want the text that's inserted if Salvage Value or Initial Cost are not
removed to include a tab stop. Thus I want the last line to look, I think,
like:
= ${14:($2${4/$|(.+)/(?1: + $1*0.${12:Table Lookup Value})/}) -
($7${9/$|(.+)/(?1: + $1*0.${13: Table Lookup Value})/})}
So that way if the salvage value/initial cost fields are removed in the
first part of the equation, the tab stop won't be there, but otherwise it
will so I can fill in the table lookup value. However, I've tried about a
dozen things and I can't get it to put that tab stop there. I understand
that $12 in that context would refer to the regex subexpression 12, but I
have tried escaping all sorts of character combinations to prevent that to
no avail.
If someone could please tell me how to insert those conditional tab stops in
there, I would be most appreciative.
Thanks!
--
View this message in context: http://www.nabble.com/Inserting-Tab-Stops-inside-of-Conditional-Insertion-t…
Sent from the textmate users mailing list archive at Nabble.com.
Hello Allan,
I found this on the net today:
http://www.simplehelp.net/2008/04/24/how-to-blurminal-your-os-x-terminal/
Its a hack of the terminal via SIMBL giving transparent backgrounds of
Terminal a 'blur effect'.
For a certain degree 'blurring backgrounds' improve usability, instead
of being GUI-toy only.
Also, it would integrate well into GUI changes of OSX that came with
Leopard.
Could something similar be on the roadmap?
BTW: This 'blurring' effect could be accompanied (fo' tha freakanoidz)
by effects like 'invertation of the background', making it B/W or
applying textures to it.
And Im thinking these kinds of effects will be supported by Core
technology, having in mind that you stated TM2.0 will be absolutly
build on core libraries of OSX 10.5 Leopard :0)
Thanks in advance!
Dennis
ps: But I also have in mind that you dont think TM will have its own
background-images, so I consider that you dont put any priority on
these GUI things :0(
hello,
don't really know if it's a feature request, bug report or my stupidity:
if i have a project opened in textmate like this:
~/project_dir
a_file.txt
and i call 'mate a_file.txt' from inside the project_dir everything is
fine
(file opens as tab in project window). but if i call mate from another
directory
with an absolute or relative path to ~/project_dir/a_file.txt, it
opens in a new
window which is very unconvenient for me.
if there should be a reason (can't imagine one) against this proposal,
i could live
with a command line option to specify the project's directory.
thanks in advance for considering it,
yours kodi
Hey fellow textmates!
I'd really really like to replicate something like eclipse's ability to hit
tab to move outside parentheses. However, all I really want to do is be able
to hit tab to move from |) to )| outside parens, I don't really even need it
to work when the cursor isn't directly adjacent to the closing paren.
I know I can make ( trigger a snippet that does that, but then I lose all
the regular functionality. I thought perhaps one could define a scope
('within-parens') for all source code, and then there could be a command or
something that checks to see if the next char is a ) and if so advances the
cursor past it that'd only work in that scope.
More advanced functionality would be great but not really crucial. If anyone
could help with this I'd REALLY appreciate it!
Thanks!
Nicolas Artman
--
View this message in context: http://www.nabble.com/Using-tab-to-move-out-of-parentheses-%28like-eclipse%…
Sent from the textmate users mailing list archive at Nabble.com.
I've recently starting using mercurial (using v0.9.5), and am using
the Mercurial bundle (2 Aug 2007 version - the latest, I think).
Sometimes it works great, and sometimes an attempt to use it fails
with "abort: There is no Mercurial repository here (.hg not
found)!". I've searched the list archives, and found one reference
to this issue:
http://lists.macromates.com/pipermail/textmate/2007-November/023219.html
But I don't understand the discussion, nor how to apply it to my
project. How can I create a TextMate project that has files from
several different nested directories, without having the Mercurial
bundle fail to work?
Thanks,
--
Kevin Horton
Ottawa, Canada
I have written a command to "Reflow comments" in my Stata do files.
The command is as follows:
#!/usr/bin/env bash
sed -E -e 's_^\s*//(.*)_\1_' | # strip leading // and whitespace
from each line
fmt | # reflow comment text
sed -E -e 's_^(.*)_//\1_' # prefix each line with //
Input is set to "Selected Text" or "Scope", and output is set to
"Replace selected text".
If I invoke the command with the cursor in the middle of the following
comment:
// this is a profoundly silly comment that I'm writing just to test
out how to reflow comments
// something strange happens when I select the text rather than simply
execute it within the comment scope
// i wonder what's going on
// maybe i'll write to the mailing list
I get the desired output:
// this is a profoundly silly comment that I'm writing just to test
out how to
// reflow comments something strange happens when I select the text
rather
// than simply execute it within the comment scope i wonder what's
going on
// maybe i'll write to the mailing list
However, if I instead select the entire block of text, I get the
following mangled result:
// this is a profoundly silly comment that I'm writing just to test
out how to
reflow comments // something strange happens when I select the text
rather than
simply execute it within the comment scope // i wonder what's going
on // maybe
i'll write to the mailing list
Can anyone explain what causes the differing behavior?
Thanks!
Michael Manti
statboy3000(a)gmail.com
Trying out the ActionScript 3 bundle, and I get this error when I try
to build using mxmlc:
Loading configuration file: flex-config.xml
/Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/
Support/bin/parse_mxmlc_out.rb:31:in `+': can't convert nil into
String (TypeError) from /Library/Application Support/TextMate/Bundles/
ActionScript 3.tmbundle/Support/bin/parse_mxmlc_out.rb:31 from /
Library/Application Support/TextMate/Bundles/ActionScript 3.tmbundle/
Support/bin/parse_mxmlc_out.rb:24:in `each' from /Library/Application
Support/TextMate/Bundles/ActionScript 3.tmbundle/Support/bin/
parse_mxmlc_out.rb:24
I can't figure out what's causing this. Any suggestions?
Hi!
At time I have no Mac as a laptop and therefore I use emacs when I'm
not in front of my iMac. I just found out that emacs has quite a
simple but cool outline-mode and wanted to ask if it is already ported
to TextMate. Does anybody know?
Niels
On Fri Apr 18, Kai von Fintel wrote:
> The minimal test case below shows that something in the parsing of the
> newenvironment command is throwing off the syntax coloring by the
> LaTeX bundle, at least on my system (TM 1.5.7 1464 on Leopard). The
> text in the document is incorrectly parsed as being in a math
> environment.
>
> \documentclass{article}
>
> \usepackage{amsmath}
>
> \newenvironment{choice}
> {\left\lbrace\begin{gathered}}
> {\end{gathered}\right\rbrace}
>
> \begin{document}
>
> Text incorrectly parsed as being in a math environment.
>
> \end{document}
>
> -----
>
> Any ideas of how to fix the parsing?
Hi Kai -- This isn't exactly the correct fix, but if you go to Bundles-
>Bundle Editor->Edit Languages... and pick the LaTeX->LaTeX syntax
definition, down about 1/3rd of the way down, you'll find the place
where it is looking for these mathy environments:
align|equation|eqnarray
| multline|aligned|alignat
| split|gather|gathered
soon below that, you'll find
end = '(?x)
(?:\s*) # Optional whitespace
If you change the (?:\s*) to (?:.*?) then you can get a sort of
approximation of the correct syntax coloring.
I really don't quite understand why it works, but the idea was
essentially to allow the { that precedes the \end{gathered} to be
ignored (it wouldn't have counted as whitespace). In the original
formulation, TextMate couldn't find the \end{gathered}, and so just
assumes that the environment ends when the document does.
This isn't actually the right solution, but it at least keeps you from
having the entire body of your document math-colored. The symptom of
why this isn't the right solution is that everything following
\begin{gathered} (including the closing brace of the first argument to
\newenvironment, as well as anything from then on until just before
the line containing \end{gathered}) is math colored.
Ideally, the LaTeX bundle would be able to handle \(re)newenvironment
specially, since each of the two arguments to these commands will
almost always contain a lone \begin or \end, and scope of any
mathification should presumably be restricted to the argument itself.
But I haven't got a clue how to approach this the "right" way.
-Paul
Hi.
I've recently moved from emacs to TextMate and am enjoying the shift.
When i first tested it, the Latex bundle option "Typeset & View"
worked fine. However that was short lived, and a week later i now get
"There was a problem reading the preferences file, continuing with
defaults".
I've noticed other people have experienced this before, and the
previous posts on the subject seem to say that this is a problem with
the python plist parser under Tiger, but that Leopard should be fine.
However i'm using 10.5.2 and the latest version of vanilla TextMate
(freshly downloaded), running on a PPC G4. I have also freshly
installed teTex from macports which works fine both in emacs and from
the command line.
Can anyone suggest where to begin?
Thanks.
Hey all! I have been looking around to see if anyone has made a script or bundle
that enables the functionality of MarkupMaker for TextMate.
http://www.accessify.com/tools-and-wizards/developer-tools/markup-maker/def…
In other words: take selected text, indented by spaces, and convert them to divs.
I did a quick search on the mailing-list and saw that people were talking about
this a while back, but I wasn't sure if anyone had figured this out. :) If not,
I may have to build my own script!
Thanks!
R
When I press Control-H in a Ruby document, I don't get documentation on
what's selected; instead, I get an error message like this:
/usr/local/bin/qri:17: undefined method `require_gem' for main:Object
(NoMethodError)
This just recently started happening (perhaps after updating some gems).
'qri' itself may have been updated, as its date is April 23.
What is 'qri'? It seems to be what's broken; if I just say "qri" in the
Terminal I get the same message.
Meanwhile, 'ri' works just fine in the Terminal.
Thx -
m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
On 1 May 2008, at 12:20, Allan Odgaard wrote:
> On 30 Apr 2008, at 17:37, Juan Falgueras wrote:
>
>> the original command to get man doc from Tcl commands in Tcl mode
>> was broken (at least in my system -with Developer Tools installed)
>> I have simplify it to a simpler and working script borrow from the
>> Shell script mode one:
>
> Is there any reason to actually keep this, instead of just removing
> it and relying on the command from the Shell Script bundle?
>
> I can imagine for Tcl you’d want to provide the manual section, but
> doesn’t seem like your command does that.
Here the reason is that Tcl has its man entries in the "n" volumen and
thereafter you must issue a command like:
man n regexp
- Juan Falgueras
I am looking at an upgrade for someone. All the files are ASP. I
dragged the folder over TextMate and realized that ASP Bundle is not
there.
What nobody on a Mac is editing ASP in TextMate? I don't get it!
;-)
--
Brad Tittle
Senior Systems Analyst
Trainnow.net
206-780-9555
Hi,
I've recently switched from Makefile based C++ projects to CMake
based. The Makefile bundle had a very nice compile HTML output were C+
+ errors/warnings were highlighted and clickable.
Is there any similar bundle for CMake for Textmate?
With kindest regards
Jonatan
Hi folks.
I have a problem with "typeset and view" with the latex bundle.
It used to work; now it doesn't. Whenever I 'typeset and view' the display
window doesn't display the pdf. The progress wheel spins indefinitely. I
tried changing the shell variable TM_LATEX_VIEWER to another pdf viewer
('preview') from my previous choice of 'TeXniscope' but that didn't help.
The latex engine is working, because I get the final pdf in my directory, i
just can't see the nice quick preview with cmd-R. Any suggestions?
May it be a problem with Acrobat? The display window, while trying to
perform its fruitless display, shows an Acrobat icon.
Thanks,
Sean
--
----------------------------------------------------
Sean McDaniel
personal: sean.m.mcdaniel(a)gmail.com
-----------------------------------------------------
Since I found this:
http://blog.macromates.com/2006/multi-stroke-key-bindings/
I'm using it a lot, and it is really nicer to type ⌘A than Cmd-A,
when writing all documentation, support mails etc.
I've tried to use those ⌘⇧⌥← when editing some markdown blog
post content, and I was quite surprised that TM displays them heavily
condensed, making them totally unreadable.
I tried with few fixed-width fonts, nothing helps. Is there any way to
cure that?
Cheers,
--
Adam Strzelecki |: nanoant.com :|
Hello,
I'm new to the Python Bundle in TextMate and was wondering how one
would go about formatting the docstrings in Python. The traditional
CTRL-Q did not work correctly. I then opened up the Bundle editor and
added the "string.quoted.double.block.python" to the scope of the
format "Reformat Comment" command in the Source Bundle. Again, this
did not work correctly. I then attempted to create my own command to
reformat comment, but when I read what is passed to the script, I get
the whole damn document, and not the scope.
Thanks in Advance,
- Nithin
As an interesting side note I attempted to copy the Reformat Comment
command and do some alterations to it, but for some reason, this is
not set: ENV["TM_BUNDLE_SUPPORT"]. I wonder why it's set in the Source
Bundle, but not in my own Bundle...
Hi all,
I really having trouble with TM. For some reason TM does not consider
the % sign within LaTeX. This means I get a lot of error messages. If
I comment out some included file (e.g. %\input{history}) TM still
reads the file and sends me errors like:
Latex Error: ./history.tex:6 LaTeX Error: Something's wrong--perhaps a
missing \item.
The file looks at this point as follows:
% \item parindent durch Option halfparskip entfernt
Why does that happen and so suddenly and how could I resolve it?
Thanks
Christian
Hi,
I'm not sure whether somebody has asked this before, but what is the
current status of Ruby bundle compatibility with 1.9, at least for
execution in TM preview window?
I'm trying to execute simple ruby script with ⌘R:
> #!/usr/local/bin/ruby-1.9
> puts "Ala ma kota".reverse
I get:
> RubyMate r8136 running Ruby r1.9.0 (/usr/local/bin/ruby-1.9) >>>
> test.rb
> :0:in `require': /Applications/TextMate.app/Contents/SharedSupport/
> Bundles/Ruby.tmbundle/Support/RubyMate/catch_exception.rb:13:
> invalid multibyte char (SyntaxError)
> /Applications/TextMate.app/Contents/SharedSupport/Bundles/
> Ruby.tmbundle/Support/RubyMate/catch_exception.rb:13: invalid
> multibyte char
> /Applications/TextMate.app/Contents/SharedSupport/Bundles/
> Ruby.tmbundle/Support/RubyMate/catch_exception.rb:13: syntax error,
> unexpected $end, expecting ')'
> ...ML e.message.sub(/`(\w+)'/, '‘\1’').sub(/ -- /, ' — ')...
> ... ^
> Program exited.
AFAIK 1.9 is getting closer towards stable release, so the final
syntax, and for sure it is much faster than 1.8, so for executing some
simple tasks but time consuming tasks it may be a good alternative to
1.8.
Cheers,
--
Adam Strzelecki |: nanoant.com :|
Greetings,
When I google the two terms "bbedit balance" (without the quotes) and
the resulting search ranks a textmate mailing list post as #1, I start
thinking, "I wonder if Allan is aware of this?"
I checked previous discussions (but only through 2006) to see if
anything had developed in the realm of balancing braces in the way that
"the app formerly known as the mac programmers first choice" did, back
in the day. And by the looks of things, I see only heavyweight solutions
to balance tags, which I believe is way more than I need and possibly
not what I want.
I also think it's undesirable to download an eval copy of "the app
formerly known as the mac programmers first choice" for this feature.
Perhaps my Christmas wish will be:
Oh please,
Oh please,
Deliver command b,
Under the tree.
Cheers!
the nameless popular programmers
On Apr 30, 2008, at 07:00, Jacob Rus wrote:
> Whether this will be implemented any time soon, or ever, is an open
> question, but several months ago we had some good discussions on
> ##textmate about how to make the most incredible indented softwrap
> the world has ever seen.
Is that conversation archived anywhere? I'd be curious to know what
people were attempting and what they were able to achieve.
Hi,
Creating a nomenclature with nomencl needs to invoke MakeIndex with
the following:
makeindex ⟨filename ⟩.nlo -s nomencl.ist -o ⟨filename ⟩.nls
The *.nlo file is successfully created after running LaTeX and I would
like invoke MakeIndex as I do it when compiling the document with LaTeX.
How could I do that?
Thanks in advance,
Christian
On 2008-05-01, at 07:00 , Allan Odgaard wrote:
> I have these notes from Jacob: http://pastie.textmate.org/189818
Thanks for that link, Allan. I thought, perhaps, someone had developed
some additional parameters for something like Markdown already. I like
everything that Jacob sketches out there.
Did anyone write anything that attempts the indented softwrap? (This
question is for the entire list.)
Hi,
When I work with new projects I often orientate on old ones. Therefore
I include these old files in the project drawer within my new project.
Often I copy something from the old ones. To prevent the old
(original) files from being changed during that, is there way to lock
it or give only rights for reading to it?
Thanks in advance
Christian
Hello,
For my glossary I use the package gloss. After a LaTeX run of the
document gloss creates a .gls.aux is created. In need to invoke BibTeX
on that file and would like to it with a nice shortcut as I do it when
using the command+L for creating my bibliography.
How could this be done with TextMate?
Thanks in advance,
Christian
Hi,
what is the best way to detect whether only DIALOG1 is available or
DIALOG2?
Up to now I would do this by checking whether the shell variable
DIALOG_1 is set. If yes I can use DIALOG2 features, if not I have to
use DIALOG1 syntax.
But I do not know whether there will be a change in the near future?
Thanks,
--Hans
Hi
the original command to get man doc from Tcl commands in Tcl mode was
broken (at least in my system -with Developer Tools installed) I have
simplify it to a simpler and working script borrow from the Shell
script mode one:
----------------
word=${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}
try_man () {
if man n -w "$word" &>/dev/null; then
page=$("$TM_SUPPORT_PATH/bin/html_man.sh" n "$word")
echo "<meta http-equiv='Refresh' content='0;URL=tm-file://$page'>"
exit_show_html
fi
}
try_man
echo "Couldn’t find documentation in 'man n' for “${word}”"
-----------------
- Juan Falgueras
Hi everyone,
Well here it goes. I am using TextMate to create ruby code. I can run
the scripts from the command line without issue. However when I run
the same script from with TextMate using command-R I end up with an
error stating it can not find the installed files seen from the
command line. I would appreciate any help with figuring this out.
Having quite a bit of editing to do in the future I would prefer to
remain in the same environment and not have to switch back and forth
during the development.
John Hannah
Hello -
When doing a "Find" within a file, the found item(s) is highlighted
but there is not really enough contrast to make it quickly noticeable.
I find my myself having to scour over the document to locate where the
highlighted word or phrase is. Is there a way to change this, so that
when doing a "Find" the found item(s) shows up in yellow (or some
other bright color)? I am using the Mac Classic theme... I did not see
anything within the preferences for that. Thanks!
- Jorma
I recently switched to Mac from Windows.... I have specific
keybindings that I want to use. Specifically, I want cmd-y to delete
a line, cmd-d to duplicate a line, and shift tab to reverse indent
selected lines.
In most apps I've been able to get cmd-y and cmd-d to work by adding
this to the
~/Library/KeyBindings/DefaultKeyBinding.dict file
"@y" = ("selectLine:", "delete:");
"@d" = ("selectLine:", "copy:");
I don't know how to do the reverse indent.
These keystrokes work for most applications, but not for TextMate. I
have also tried this file: ~/Library/Application
Support/TextMate/DefaultKeyBinding.dict
Could someone point me in the right direction?
thanks
phil
Hi all,
Just bouncing this idea…
I would like to be able to active a directory withtin the project to
be the TM_PROJECT_DIRECTORY until deactivated or another directory
activated.
Use case: With maven it's common to have a master project with lots of
modules, sometimes you want to target a command to a particular sub
module, not the master module which is the TM project.
You could argue that the commands should be smart about using the
project drawer selection, but IMO this can be confusing when dealing
with multiple selections.
Thoughts?
LD.
I have to manipulate some PDF files directly so I was looking for a TextMate
Bundle for PDF/FDF files.
They have a pretty weird syntax, so I'm not sure which bundle might be
useful as a starting point. I have the PDF reference (1,310 pages of
excruciating detail) but I'm looking for something simple to at least make
some logical sense from this 'non-human-readable' language :)
Any pointers to a similar or even a partial bundle would be appreciated.
Thanks
Darryl Zurn
Sample PDF internal syntax (PDF 1.7 Reference, page 1059):
%PDF−1. 4
1 0 obj
<< /Type /Catalog
/Outlines 2 0 R
/Pages 3 0 R
>>
endobj
2 0 obj
<< /Type Outlines
/Count 0
>>
endobj
3 0 obj
<< /Type /Pages
/Kids [ 4 0 R ]
/Count 1
>>
endobj
4 0 obj
<< /Type /Page
/Parent 3 0 R
/MediaBox [ 0 0 612 792 ]
/Contents 5 0 R
/Resources << /ProcSet 6 0 R >>
>>
endobj
5 0 obj
<< /Length 35 >>
stream
% … Page-marking operators …
endstream
endobj
6 0 obj
[ /PDF ]
endobj
xref
0 7
0000000000 65535 f
0000000009 00000 n
0000000074 00000 n
0000000120 00000 n
0000000179 00000 n
0000000300 00000 n
0000000384 00000 n
trailer
<< /Size 7
/Root 1 0 R
>>
startxref
408
%%EOF
--
View this message in context: http://www.nabble.com/Bundle-or-Language-Grammar-for-raw-PDF-syntax--tp1698…
Sent from the textmate users mailing list archive at Nabble.com.
Hi there,
sorry for getting offtopic, but I seek advise from all the Pros in here: I
am looking for a good JavaScript-Forum.
English language is very OK, Id be happy to find a german one.
More important is, that the board should be alive and its users are
advanced and encouraged.
The project Im working on is about basic AJAX and some JQuery.
Thanks in advance!
Dennis
When browsing documentation in a HTML preview window the hyperlinks
work as expected but I cannot find anything like the forwards/
backwards keys in a Web browser to retrace the path through the
hyperlinks. Do such keys exist?
Thanks,
Dave.
It's probably right in front of my face, but I've done a couple
searches, looked in the book and in the manual, and I can't find it...
Is there a bundle that provides the ability to open a URL that's part
of a plain text file (in a browser)?
--
Daryl
Allan,
I know, I know, 2.0 will be ready when it's ready. But can't you tease
us just a little? For example, let's say you have a todo list for 2.0
and you're working your way through it checking off items. Can you
tell us what percentage of that list is complete? It wouldn't really
give us any idea at all when the thing will be out, since that last
10% can take 90% of the time to develop and we don't really know when
you started on 2.0 anyway, nor what percentage of your time is devoted
to 2.0. But it would be a nice teaser.
(Not that there's anything wrong with 1.5.7...)
Fanning the vaporware flames,
j.
:-)
In another thread Allan Odgaard wrote:
> TextMate will not search binary files, granted it knows that the file
> type is binary. So right-click a file (using the extension you want to
> exclude) in the project drawer and select to treat it as binary.
That helps, but isn't perfect. For one thing, it can't handle files
without an extension, such as executables. If I just open a directory
as a project, it's likely to be a mixed bag of source, object, and
executable files. It's easy enough to tell TextMate to skip the object
(*.o) files, but how do I tell it that the executable named "xyzzy" is
binary?
There's another quirk related to filename extensions that drives me
nuts. For various reasons, I have a lot of files with the extension
"*.txt" which actually contain different types of data. We have, for
instance, configuration files, SNMP MIB files, and plain ol' text files
sharing that extension. I'd like different syntax highlighting rules to
be used for each. So I open "foo.txt" and change the language to
"MIB". Then I open "bar.txt" and change to "plain text", and so on. It
seems that every time I open a file with the *.txt extension I have to
fiddle with the language.
(Yeah, if it were up to me I'd give all these files different
extensions. Unfortunately the naming conventions were established long
before I was hired here!)
Since the majority of *.txt files I edit actually are plain text, I
think it'd be great if I could tell TextMate explicitly, "Treat *.txt as
plain text unless I tell you specifically otherwise" instead of having
it automatically change the definition of the whole extension whenever I
switch. I'd still end up changing types, but at least it'd cut down on
how often I'd need to. Bonus points for remembering which full filenames
have been manually mapped to something else.
What would be even better would be for TextMate to examine the contents
of the file as well as the filename to determine what language it is.
If the extension is ambiguous, check the first few bytes for a shell
shebang line, or an emacs-style modeline, or some other clue as to the
type. And I would absolutely swoon if the language definition itself
contained a way to specify what to look for, letting TextMate try each
language in turn until it found a match.
--
Steve King
Sr. Software Engineer
Arbor Networks
+1 734 821 1461
www.arbornetworks.com <http://www.arbornetworks.com/>
Hi there.
I am getting an error when I try and use the Ruby on rails bundle in textmate.
When I'm in a class file and I select Bundles -> Ruby on rails -> Models ->
Show DB Schema for current class, the following error shows up in textmate:
/tmp/temp_textmate.01e34I:9: in 'require': No Such file to load -- /config/boot
(LoadError)
from /tmp/temp_textmate.01e34I:9:
from /tmp/temp_textmate.01e34I:9:in 'call'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/progress.rb:3
6:in 'call_with_progress'
...
...
...
I am using Mac OS X Version 10.4.11, Rails 2.02 and Ruby 1.8.6.
If anyone has an idea how I could fix this problem, I'd really appreciate it.
Thanks
Gerard
Hi all,
I know that I can use Ctrl-Shift-> to cycle amongst the various forms
of <% %>, but it only seems to work on my full-sized keyboard. What is
the equivalent keyboard combination on a PowerBook (G4)?
Thanks,
Ian.
--
Hello,
Somewhere I saw a video where after a cite command and some initial
characters ( \cite{con}) a BibDesk search is invoked to make the right
selection for publication.
How is this BibDesk-Search and Completion used within TextMate?
Thanks
Christian
Thank you Paul!
You were correct, my MacPorts installation seems to have messed up the
tr command.
By explicitly setting it to the OSX path (/usr/bin/tr) within the drag
command, it is now working correctly.
Cheers,
Matt
> Hi Matt,
>
> When I drag an image, whether it be from the filesystem or the project
> > drawer, I get strange output where the alt tag should start.
> >
> > <img src="building.jpg" border="0" width="200" height="438" tr:
> > range-endpoints of
> >
>
> Just for the record it's working fine here (10.5.2, latest TextMate
> (1464))
> , which suggests to me that you might be bumping into a non-standard
> "tr"
> utility. That's certainly the point at which the command looks to be
> breaking. The string that you're seeing inserted in place of the
> "alt" looks
> like it comes from a linuxy tr, rather than the built-in /usr/bin/
> tr : what
> do you get when you enter
>
> which tr
>
> and then hit control-r within TextMate? If it's something other than
> /usr/bin/tr you can either adapt your PATH (see the TM manual) or
> explicitly
> point at the built-in version of tr (or move the impostor out of the
> way).
> Anyway, it's just speculation, but hopefully it sets you on the right
> track...
>
> Cheers,
> Paul
Hi,
I've done a basic search on Google but can't find anything specific about a
problem I'm having with Textmate, namely handling large textfiles or
textfiles with long lines.
It's driving me nuts. I'm having to deal with XML and HTML files which have
been 'compacted' so there are no carriage returns / line feeds and I want to
tidy them up in TextMate so I can make then human readable but TextMate just
takes forever to load the files. TextPad on the PC has no problems, but I
didn't switch to Mac for my Windows colleagues to point and laugh! :) Seems
like a basic capability of text editor that TextMate just can't deal with.
Had this been noted before? Is there a fix in the pipeline?
Thanks,
Ian.
--
Ian Kershaw
Save paper and the environment. Don't print this email unless necessary.
If you do, print up to four pages on one sheet with free software FinePrint
http://www.fineprint.com/
The default block comment in the PHP bundle is:
/*
Comment...
Comment...
*/
The industry standard seems to be this:
/**
* Comment...
* Comment...
*/
How can I change this in TextMate?
Hi all,
My apologies if this is a known bug - but a search didn't turn up
anything.
When I drag an image, whether it be from the filesystem or the project
drawer, I get strange output where the alt tag should start.
For example:
<img src="building.jpg" border="0" width="200" height="438" tr: range-
endpoints of
I haven't changed this drag command at all, and am using the latest
nightly "bleeding edge" build.
Not that big a deal, just checking to see if anybody knows anything.
Cheers,
Matt
I really don't like when I get to the lowest part of the screen
(wrote more than one page).
Now I normally add many blank lines after and center the screen,
but this is not very smart, and I think the
smartest editor of the world shouldn't do dumb things like that...
Any other ways??
THanks
Hi,
I get the following strange error when using ctrl shift G on a markdown
document that is part of a local Git repository:
/tmp/temp_textmate.fN7vjq:26 in `open': No such file or directory -
pages (ErrnoENDENT)
from /tmp/temp_textmate.fN7vjq:26: in `entries'
from /tmp/temp_textmate.fN7vjq:26
The weird thing is that if I change the language from Markdown to plain
text everything works as expected---no error message and the Git menu
comes up. With Select Bundle Item (ctrl cmd T) I checked and the ctrl
shift G is not being used by any other bundle. Not sure what is going on.
Best, Mark
On Apr 25, 2008, at 1:28 AM, Allan Odgaard wrote:
> On 23 Apr 2008, at 17:57, Thomas Allen wrote:
>
>> […]
>> I can't find a resource of all TM env. vars, but the PHP comments
>> preference
>> includes values of /* and */ for TM_COMMENT_START_3 and
>> TM_COMMENT_END_3,
>> respectively. What var can define my block comments' body?
>
> The generic Toggle Comment command is not designed to support the
> configuration of such style. But it should be fairly simple to
> create an overload which is only active in PHP mode, you can even
> write it in PHP: http://ciaranwal.sh/2008/04/04/textmate-tip-using-php-for-commands
> :)
>
I found this snippet a while ago:
${TM_CURRENT_LINE/(.*\*\/$)|.*?(\/\*(?!.*\*\/)).*|.*/(?1:
:
(?2: )* )/}
Activation: ↩
Scope Selector: source.php comment.block
This one lines up your * but I'm sure you could modify it to left-
align them all.
itp
Hi,
I just came up with an interesting question.
Imagine I have a TMProject. I structured my files in groups, etc. All
files are somewhere on my machine. Now I want to take this TMProject
with all files! to on other computer. How can I do this?
TMProjects only stores the pathes to the files but not the files by
themselves.
Thanks,
--Hans
Hi everyone,
I want my PHP comments to read:
/*
* Does something
* @param foo lorem ipsum...
* @return fubar lorem ipsum...
*/
instead of the default
/*
Does something
@param foo lorem ipsum...
@return fubar lorem ipsum...
*/
I can't find a resource of all TM env. vars, but the PHP comments preference
includes values of /* and */ for TM_COMMENT_START_3 and TM_COMMENT_END_3,
respectively. What var can define my block comments' body?
Also, is there a resource for all environment variables in TextMate?
http://macromates.com/textmate/manual/environment_variables feels incomplete
to me.
Thanks,
Thomas Allen
How do you export a theme that you have created? I created a copy of
blackboard, but even that copy will not show up in the themes folder of
textmate. Any help would be appreciated.
-Shoma
--
View this message in context: http://www.nabble.com/Exporting-themes-tp16815589p16815589.html
Sent from the textmate users mailing list archive at Nabble.com.
hi.
In my project drawer, i can click certain files and they open in the
textmate editor window: It's a Rails project, model files and other .rb
files are OK
but when I click on the files ending on .erb, nothing happens. For instance
a file in /app/views/reports/index.html.erb
It doesn't open. The only workaround i can figure out is to use command+T.
Did i unintentionally touch a switch? Am I overlooking something obvious?
I'm absolutely new to Textmate (bought my mac roughly a week ago) so please
point me to an obvious answer/link if possible.
/Jesper
PS. my version 1.5.7 (1464)
--
___________________________________________________________
Jesper Rønn-Jensen / Capgemini Denmark
Tel. +45 3977 8220 / Mob. +45 2373 6220 / Fax +45 7011 2201
www.dk.capgemini.com / Blog http://justaddwater.dk/
jesperrr(a)gmail.com (Private e-mail and Google Talk IM)
___________________________________________________________
Is there a way to customize which file types are hidden in the
project drawer? I notice that .pyc files are hidden automatically and
I'd like to do the same for java .class files.
If I get an answer on this (or figure it out myself) I promise to
document it on the wiki :)
Thanks!
Hi there,
the title already says it all: What i'd love to have is a status
indicator ('searching...') or a progress indictator ( 'x% of project
files searched') in the 'find in project'-window. I use it often on a
project of some thousand files on a network volume. Searching the
project always takes a few seconds (i'm cool with that) and i always
wonder whether textmate is already working or not because it doesn't
provide _any_ immediate feedback.
cheers,
Till Backhaus
---------------------------
Till Backhaus
mail: till(a)backha.us
blog: http://till.backha.us
Does anyone know if you can save your search results (in Find in
Project dialog), as a text file?
I tried selecting items in the dialog and copy and pasting into a
textmate document, but that doesn't work. I look at the manual online,
and it doesn't say anything about saving your search results.
It would be nice to get my results into it's own file. My situation
is that there are many instances of a particular email address(es) in
some webforms, and I'd like to give a nice list (like the dialog has)
to someone.
Thanks,
Kevin
The following is a legal and useful construct in Ruby:
begin
# do stuff
end until whatever
But TextMate's Ruby code folding rules don't grok it. Has anyone, offhand,
got a cure for this? Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Hi
I am trying to add a clause to my PHP language grammar that only
affects a variable between square brackets/braces, for example it
would match $bar from the following
$foo[$bar]
The language block I have is this
var_index = {
name = 'variable.other.index.php';
match = '(?x)
\[(\$+)[a-zA-Z_\x{7f}-\x{ff}]
[a-zA-Z0-9_\x{7f}-\x{ff}]*?\b\]';
captures = { 1 = { name =
'punctuation.definition.variable.php'; }; };
};
The problem is that it affects the square brackets/braces as well as
the variable inside them. How do I alter it to only affect the
variable and not the brackets/braces?
Thanks in advance for any help
Teifion
––––––––––––––––––
http://woarl.com/blog
Hi,
We have to buy Textmate (2 licences).
I've red about a "2.0" version.
Is there a release date ?
If we buy 1.5 today, could we have for free the new version ?
Thanks
--
Nicolas (Leopard)
Hi,
The Git bundle is great, but the GUI tools don't seem to be working.
View Branch History with Gitk does nothing, though Gitk works from the
command line.
View history with Gitnub launches two empty GitNub windows. Again nub
works properly from the command line.
Git Gui does nothing as well. Fine on the command line.
I thought it might be a path issue, but running echo $PATH inside of
TM with ctrl R shows that the paths are fine...
Others on the irc have the same problem.
Best, Mark
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I just created a bundle for literate programming in cweb. You can
find the bundle here:
git://github.com/a-priori/cweb-tmbundle.githttp://github.com/a-priori/cweb-tmbundle
Currently, the bundle only has a language definition. Let me know
what you think of it, and send me any suggestions you have for how to
improve it.
Regards,
Michael Melanson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
iD8DBQFID4fS5/wM81IeisIRAuwvAKCcOiRuZxdoLnuqD5uxb1A0W//tZwCdG45p
8e3J2EHrif3NwBC04tCwzXs=
=4vPH
-----END PGP SIGNATURE-----
Hi all,
Sorry if this has been asked before, but the instructions on the
textmate website don't work for me. If I open up bundle editor and try
to drag the bundle called "html" into my finder window, it won't let
me. Does anyone know a way of "manually" exporting a bundle, or
another alternative.
Thanks for any help.
Paul
Is there a way to customize the color of selected text? -- I.e., I want the foreground (text) color to be amber, but black when highlighted (the highlight itself would be another color, e.g., blue).
_________________________________________________________________
Express yourself wherever you are. Mobilize!
http://www.gowindowslive.com/Mobile/Landing/Messenger/Default.aspx?Locale=e…
Is there a way to modify the Open Terminal command so that it uses
tabs with Terminal.app? I have been trying to do this but my
applescript-fu is weak. :/
Best, Mark
It breaks identically on my Leopard laptop at home. I noticed in Subversion
that there's a blurb about it not working in Leopard, and I just thought I'd
mention it's broken in Tiger too.
Quad G5 2.5Ghz 4G AM
Hope this gets resolved soon. I'm doing a bunch of groovy work and having
to cut/paste into GroovyConsole is a drag!
Thanks,
-Chris
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: cpatti(a)gmail.com
"FORTRAN is just really good if you're really, REALLY twisted. Because the
obscene things people do in FORTRAN are just horrible." - James Gosling
Dear DIALOG2 popup developer,
I have a problem ;)
I want to insert a character which could have several names like
↓ arrow down
← arrow left
↑ arrow up
α greek alpha
β greek beta
My aim is to write e.g. "arrow" and the popup dialog shows all arrow
matches (only the glyph). Then I want to choose one and instead of
inserting "arrow" it should insert the chosen glyph. Fine. I tried it
and I had partly success.
####
First problem:
for the suggestions I have to write:
{display="↓";match=down;},{display="↓";match=arrow;}
this leads, of course, to having two ↓ in the list.
Why not write:
{display="↓";matches=("down","arrow");}
In other words to allow more than one match.
####
Second problem:
If I want to do that I have to use the options -w for wait, because I
want to replace e.g. "arrow" by my chosen glyph. Fine. But if I delete
5 characters to show all suggestions I do not see what I'm writing
whereby the popup menu does its job perfectly.
####
Third problem:
If I type e.g. "arr" the popup dialog finds all matches beginning with
"arr". But it would be nice to have an option to show only those items
matching exactly. E.g. I have to type "arrow" to show all 'arrow's not
only "a" or "ar" etc.
##########
Here's a first naïve example command:
Input: Selected Text or Word
Output: Replace Selected Text
Command:
RES=$(echo '{suggestions=({display="↓";match=down;},
{display="↓";match=arrow;},{display="↑";match=arrow;},
{display="←";match=arrow;},{display="α";match=greek;},
{display="α";match=alpha;},{display="β";match=greek;},
{display="β";match=beta;});}' | "$DIALOG" popup -iwf
"$TM_CURRENT_WORD")
RES=$(echo "$RES" | grep display | perl -Xpe 's/.*?display = "(.*?)";/
$1/;s/\\U([0-9A-F]+)/chr(hex($1))/iesg;')
echo -n "$RES"
My overall aim is to provide a possibility to insert a glyph by
looking for words in its Unicode name.
Or is the DIALOG2 popup dialog not the right tool for it, meaning
should one write its own rountine for that?
Or is there a better way to do it?
Thanks a lot for any hints in advance!
--Hans
In my Ruby script which is called somewhat indirectly, I tried saying
`CocoaDialog blahblah` but it didn't work; evidently the indirectness means
that I'm not inheriting some path trickery from TM. So I changed it to this:
`#{ENV['TM_SUPPORT_PATH']}/bin/CocoaDialog.app/Contents/MacOS/CocoaDialog
blahblah`
That works. But is there a better way? Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Hi--
This might already be doable in TM, and I just don't know it, but I
thought it might be worth mentioning in case it's new:
- Tear-off tabs. It would be great if, when working on a set of files
in tabs, I could just drag one over to the side, to have it in a new
window. Stacking in tabs works great in most cases, but occasionally,
it's necessary to see two files side-by-side.
- Many others have said this; I'll echo it: Split screen in
horizontal, vertical, and both directions (ala Emacs), both to
navigate the same file or different files in each pane.
- Advance to next tab bindings uses the ` key. Right now, Cmd+Option+-
> is the binding, and Cmd+` advances to next window. It would be
great if the default binding for advance to next tab was Cmd+Option+`
just to clear a few gray cells for other use :)
Just a few thoughts.
Hi,
imagine I have two documents open for Ruby or R. I wrote some scripts
and I know that these scripts are running for a while.
I select one doc and press APPLE+R and I switch to the other one and I
press APPLE+R. Fine. I see two HTML output windows working.
But just in the moment I switched to the second doc to execute it, the
first script finished its job. Thus my script from the second doc will
be shown in the same HTML window for the first document. And I had no
chance to read the result or error message.
How can I get rid of it. I thought maybe by naming the HTML windows
differently. But what will be the best way? Add a the starting time or
the name of my doc window?
But this leads to the problem that I want to have one HTML window for
one script. I do not want several HTML windows hanging around, I do
not know which belongs to which.
Is that possible in some way?
Many thanks in advance,
--Hans
hi all,
I found the "Hyperlink helper bundle" a very useful tool for creating
wikipedia and other links.
For some time now, however, running "Lookup Word / Selection on
Wikipedia and link" has lead to this error:
env: ruby\rrequire: No such file or directory
Has this function been rolled into another bundle or support dropped?
thanks for your help,
tim
FYI, the code is
#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/progress.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/exit_codes.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb"
require "#{ENV['TM_SUPPORT_PATH']}/lib/escape"
require 'cgi'
require 'open-uri'
require 'erb'
def cap_all_words(string)
return string.split(" ").map{|w| w.capitalize}.join(" ")
end
def follow_redirect(page)
pagename = page.match(/var\swgPageName\s\=\s\"(.*?)
\";/).to_a[1].gsub(/\\'/,'%27')
url = %{http://en.wikipedia.org/wiki/#{pagename}}
content = open(url).read
return url, content, pagename
end #follow_redirect
def select_link(links)
linklist = links.map { |p| p[0] }
item = TextMate::UI.request_item :title => "Multiple
Definitions", :prompt => "Please select a definition", :items =>
linklist
TextMate.exit_discard if item.nil?
return links[linklist.index(item)]
end # select_link
def check_for_search(page)
TextMate.exit_show_tool_tip "No definition found" if page.match(/
<title>([^<>]*)<\/title>/i).to_a[1].include? "Search"
return page
end # check_for_search
def check_for_multiple_results(page,phrase,pagename)
if page.match(/(<\/b>\scan\sbe:<\/p>)|(<\/b>\smay\srefer\sto:<\/p>)/
i) then
open("http://en.wikipedia.org/wiki/Special:Export/#{pagename}") {|
body|
links = []
body.read.scan(/\[\[([^|\]]*)[|]?[^\]]*\]\]/) { |link|
links.push(link) }
choice = select_link(links)
TextMate.exit_discard if choice.nil?
TextMate.exit_replace_text(%{<a href="http://en.wikipedia.org/wiki/#
{CGI.escape(choice[0]).gsub('+','_')}" title="Wikipedia Entry:
#{choice[0]}">#{phrase}</a>})
}
end
end #check_for_multiple_results
def check_for_disambiguation(page,phrase,pagename)
# if page.match(/#{phrase}[\s]?\(disambiguation\)/i) then
if page.include? "(disambiguation)"
# findlink = page.match(/\"(\/wiki\/#{pagename}_%28disambiguation
%29)\"/i)
# open("http://en.wikipedia.org#{findlink[1]}") {|body|
open("http://en.wikipedia.org/wiki/Special:Export/#{pagename}_
%28disambiguation%29") {|body|
content = body.read
links = []
content.scan(/\[\[([^|\]]*)[|]?[^\]]*\]\]/) { |link|
links.push(link) }
choice = select_link(links)
TextMate.exit_discard if choice.nil?
TextMate.exit_replace_text(%{<a href="http://en.wikipedia.org/wiki/#
{CGI.escape(choice[0]).gsub('+','_')}" title="Wikipedia Entry:
#{choice[0]}">#{phrase}</a>})
}
end
end #check_for_disambiguation
def getWikiDef(phrase)
TextMate.call_with_progress(:title => "Contacting
Wikipedia", :message => "Looking for definition of #{phrase}") do
escapedUrl = "http://en.wikipedia.org/wiki/Special:Search?
search=#{CGI.escape(phrase).gsub(/\\'/,'%27')}"
@response = open( escapedUrl,
"User-Agent" => "TextMate 1.5.5")
content = @response.read
if content.scan(/Redirected\sfrom/)
url, content, pagename = follow_redirect(content)
# confirmed = TextMate::UI.request_confirmation :button1 =>
"Accept", :button2 => "Cancel", :title => "Redirected to \"#{pagename}
\"", :prompt => "Accept Redirection?"
# TextMate.exit_discard unless confirmed
else
url = @response.base_uri
pagename = phrase
end
check_for_search(content)
check_for_multiple_results(content,phrase,pagename)
check_for_disambiguation(content,phrase,pagename)
title = "Wikipedia Entry: " + pagename.gsub(/_/, ' ')
return url, title, phrase
end
end
url, title, input = getWikiDef(STDIN.read)
print ERB.new(ENV['TM_LINK_FORMAT']).result
Hi,
I experience a problem with keybindings and the LaTeX bundle.
Specifically, the command "Insert Environment Based on Current Word"
does not get activated if I hit the corresponding key sequence (but I
can still activate it from the menu).
Other commands (such as "Insert Command Based on Current Word") work
perfectly, however.
I checked my Mac OS X keyboard preferences, and the corresponding key
sequence does not appear in the keybindings there. Perhaps someone had
this problem before, and can enlighten me about this issue.
Thanks in advance
Nicolas
I don't understand why every time I paste something (from external
programs or even textmate itself) it always indents it of at least one
level.
Is it done on purpose?
Any way to disable this?
Hi,
I'm trying to make RubyAMP (not hosted at macromates.com) work.
I installed rb-appscript using "sudo gem install rb-appscript", but
when I try to run with TextMate and require it in a script, it shows
me an error "LoadError: no such file to load ― appscript".
In irb, I could get "true" to require 'appscript'
irb(main):003:0> require 'rubygems'
=> true
irb(main):004:0> require 'appscript'
=> true
My ruby script is as simple as:
p require('rubygems')
p require('appscript')
and if I run Command-R, it fails to load appscript.
The script
require 'rubygems'
puts Gem.path
returns
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
gems/1.8
/Library/Ruby/Gems/1.8
My ruby version is: ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-
darwin9.2.0]
gem version is 1.1.1
The gem is installed at `/usr/local/lib/ruby/gems/1.8/gems/rb-
appscript-0.5.1`.
I'm running Mac OS X 10.5.2 on an Intel-based MacBook.
Looks like I need to add a gem path to TextMate(?)
Any help would be appreciated.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Dear community,
I am newly trying out Textmate, which I intend to use primarily with
LaTeX, with the hopes of possibly switching permanently from my
current text editor, TexShop. But I cannot get either the forward or
backward search function of pdfsync to operate with Skim, my
preferred viewer.
I have already done the following:
1) Selected Skim as my viewer in the Textmate preferences.
2) Selected "View in Skim" from the LaTeX preferences in Textmate.
3) Synced (from inside Skim preferences) with Textmate.
4) Put the pdfsync.sty file in \user\texmf\tex\latex
5) Inserted the \usepackage{pdfsync} in my document.
6) Attempted forward search with "shift-command-click" and backward
search with "Show in Viewer (pdfsync)".
Interestingly, the .pdfsync file, which is full of numbers that
describe the document geometry, is created in the current
directory... my understanding is these numbers are what is used to
locate one's position in forward and backward search. But the
functionality is certainly missing.
(Note: I am trying to run all these programs on a PowerPC-based
Powerbook G4.)
Any assistance in resolving this issue would be GREATLY appreciated.
I have scoured the internet and discussion groups in search of an
answer, but I cannot seem to fix this error.
Thanks in advance,
Yaniv
The minimal test case below shows that something in the parsing of the
newenvironment command is throwing off the syntax coloring by the
LaTeX bundle, at least on my system (TM 1.5.7 1464 on Leopard). The
text in the document is incorrectly parsed as being in a math
environment.
\documentclass{article}
\usepackage{amsmath}
\newenvironment{choice}
{\left\lbrace\begin{gathered}}
{\end{gathered}\right\rbrace}
\begin{document}
Text incorrectly parsed as being in a math environment.
\end{document}
-----
Any ideas of how to fix the parsing?
--
Kai von Fintel
fintel(a)gmail.com
If I have a single file open, is there an easy way to create a new
project with an existing file + the current file? I was hoping to
find a menu item, or key combination that will give a file dialog to
select new file(s) that would be added to a new project that includes
the current file.
--
Kevin Horton
Ottawa, Canada