Hi,
the basic version of this question is:
"Can I set which version of python the python bundle uses, and how?"
The extended version:
<disclaimer: you will see that I am not a specialist... />
in the Bundle editor under "Run Script" I can see that there seems to
be a variable called PYTHONPATH as well as one TM_PYTHON
Do I need to set PYTHONPATH somewhere?
Two additional things:
- under Preferences in the Advanced tab under Shell Variables, there
is a variable called PATH, which points to one python "distribution"
-- is this related to PYTHONPATH or to my problem?
- when I create a python script from a template (File--New from
Template -- Python -- Python Script), then the first line is
#!/usr/bin/env python
1) there's a link under /usr/bin which is called python which points
to one distribution -- could that be critical (the critical link that
needs to be adapted if I want to use another python distribution
2) there is a PATH statement in /usr/bin/env which points to /usr/bin
(see point (1) )
Thank you for your help,
Claus
Hi,
try to insert a query like this below in your php code and see what
happens with TM colours: they will be "broken" after the query.
The problem seems related to the fact that the query has been broken
into more than one line and there are filtered chars like \' or
closing ")" not related to the logic sequence.
Is there any fix to see things well in these situations?
thanks
$var = "SELECT
field_1
,REPLACE
(REPLACE(REPLACE(REPLACE(LOWER(field_2),'\'',''),'/',''),' (the)',
''),'.', '') AS test,
SOUNDEX
(REPLACE
(REPLACE
(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(LOWER(field_2),' (the)',
''),'-',''),'+',''),'(',''),')',''),'/',''),'.','')) as test2
FROM table ORDER BY field_2";
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Forza Motosport3: spingi pi� di 400 auto straordinarie al limite delle loro possibilit� su oltre 100 circuiti tra i pi� entusiasmanti al mondo!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9728&d=13-10
Hi,
The author of Ruby HAML bundle for the official TextMate repo
might want to consider renaming the bundle to "HAML" bundle.
This is because HAML is now supported in many other languages
than Ruby.
Also the bundle has no snippets support. Another user's bundle
<http://github.com/seaofclouds/sass-textmate-bundle> has snippets,
completions and drag/drop support.
There is also another bundle here. <http://github.com/mattpolito/ruby-haml.tmbundle/
>
I hope that somebody else will take over the bundle in the official
repository if the current committer is not active.
Takaaki
Dear textmate experts,
I often print textfiles created with textmate to a pdf. As I work on
Mac OS 10.6.1, I use "command+P" to open the print dialog. From there
I can choose the left-most button ("PDF") and then "Save as pdf...".
Now I realized that not only the text file is printed, but also
headers and footers. They can actually be adjusted/removed manually
from the print dialog (click the little arrow-button right in the
first line right next to "Printer"). However, I cannot remove the
horizontal lines that still separate the (empty) header and (empty)
footer from the text. Is there any way to remove these lines as well,
in order to simply have the txt-file printed to pdf?
If I use the textedit.app, I can simply choose "Print header and
footer", so leaving this option blank simply prints the text. Since
this feature is possible with textedit, I assume the problem comes
from textmate, that's why I post it here.
Many thanks,
Marius
Dear textmate experts,
I get the following message out of textmate (Version 1.5.7) on
compiling LaTeX documents (using latexmk):
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/texMate.py:433: DeprecationWarning:
os.popen4 is deprecated. Use the subprocess module. texin,tex =
os.popen4(texCommand)
How can I solve this? I tested on Mac OS X Tiger and Snow Leopard and
get the same error.
Many thanks,
Marius
Works here.
Make sure you have the placed the shebang at the top of the file.
#!/usr/bin/env python
That should help.
Here's the full file:
#!/usr/bin/env python
print('test')
> I'm new to TextMate and would like to use it for my Python
> development, among other things.
>
> My issue is that I am not able to get the default Python bundle to
> function.
>
> I am running OS X 10.6.1 with python 2.6.1.
>
> For example if I create a new file named test.py, enter the text
> "print
> ('test')", save it, and hit command-R, a window pops up saying the
> script has been run, but the output is blank.
>
> What am I missing here?
>
> My eventual desire is to be able to run the IPython bundle created by
> Matt as well, but I figured it was better to start with just the
> regular Python bundle and get that functioning first.
>
> Thank you for any help you can provide.
Hi all,
I remember that there was a way to disable reloading of the directory
contents of the sidebar (which causes timeouts of several seconds when
switching focus back to TM). I googled, looked in the wiki and the
blog, but couldn't find the post about it any more :-(
Does anybody know how to do it? Should be a quick answer.
Thank you for your help,
Nick
I'm new to TextMate and would like to use it for my Python
development, among other things.
My issue is that I am not able to get the default Python bundle to
function.
I am running OS X 10.6.1 with python 2.6.1.
For example if I create a new file named test.py, enter the text "print
('test')", save it, and hit command-R, a window pops up saying the
script has been run, but the output is blank.
What am I missing here?
My eventual desire is to be able to run the IPython bundle created by
Matt as well, but I figured it was better to start with just the
regular Python bundle and get that functioning first.
Thank you for any help you can provide.
As some of you know I've been working off and on on a new LaTeX
bundle. It started as an extension bundle “LaTeXtra” but lately
I've been focusing on merging that code into a fork of the LaTeX
bundle (http://github.com/alexross/latex.tmbundle).
One of my biggest gripes with the current bundle is that there are
MANY ways to do things. For instance there are 3-4 ways to insert a
new environment, each with different key combinations that I cannot
remember. There is a lot of room for simplification.
Simplification will require the removal of some commands, but I'm sure
there is at least one person using each command. What I'd like is to
get an idea of how people generally use the bundle. So, if you use
the LaTeX bundle, please reply!
1. What typesetting engine do you typically use? (ie. pdflatex,
xelatex, pdflualatex, etc …)
2. PDF Viewer? (Skim.app, Preview.app, …)
3. Do you use any of the completion commands? Which ones? What sort
of LaTeX macros do you commonly complete?
4. Do you use any of the snippets?
5. What commands (besides ⌘R) do you use the most often?
6. Anything that you'd miss terribly if it was removed?
Thanks for your time!
—Alex
Hi guys. I'd like to get rid of the terminal [for monitoring trace
output] while developing AS3 projects. I'd like to use a command like:
(code)
:>/Users/{me}/Library/Preferences/Macromedia/Flash\
Player/Logs/flashlog.txt #truncate the flashlog
echo "<pre>"
tail -f /Users/schell/Library/Preferences/Macromedia/Flash\
Player/Logs/flashlog.txt &
(/code)
in order to have the contents of my flashlog.txt spill into the html
output window. This would be great because I'd like to format my trace
statements with HTML.
That won't update in real time, so I've written this code instead for testing:
(code)
cat<<-HTML
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>untitled</title>
<script type="text/javascript" charset="utf-8">
function update() {
var updateCommand = TextMate.system("tail -f
/Users/schell/Library/Preferences/Macromedia/Flash
Player/Logs/flashlog.txt", endHandler);
updateCommand.onreadoutput = outputHandler;
function endHandler(s) {
}
function outputHandler(currentStringOnStdout) { // Code that
does something with the command’s current output like...
document.getElementById("flashlog").innerText = currentStringOnStdout;
}
}
</script>
</head>
<body>
<button onclick="update()">UPDATE</button><br>
<pre id="flashlog">
</pre>
</body>
</html>
HTML
(/code)
But with this code I never get any output. If I replace my 'tail -f'
with something like 'ping efnx.com', I get some output. Is this
because we're not allowed to access any files through this interface?
Anyone have any ideas?
--
Schell Scivally
efsubenovex(a)gmail.com
http://blog.efnx.com
In my opinion, one of the most useful things about the Textmate bundle
is the snippets feature. I use snippets all the time, many of them
customized. Thus, I type eq-tab and a nice equation environment
appears, enum-tab and a nice enumerate environment appears, etc etc.
If this were made less simple in any way, so that for example I had to
navigate a tree to get to the most-used snippets, or if I couldn't
design my own tab triggers, I would regard that as a retrograde step.
I may be misunderstanding something here and I am sure that is not the
intent, but I just wanted to make my point clear.
Relatedly, I mainly use pdflatex but sometimes latex (also bibtex,
makeindex). I use skim.app as a viewer, although the current version
of skim will sometimes freeze in snow leopard. I also sometimes use
xdvi.
I'm absolutely delighted that someone is looking at the latex bundle.
Geoff Vallis
>> On Oct 9, 2009, at 7:30 PM, Alex Ross wrote:
>>
>>> LaTeX users:
>>>
>>> My plan is to remove most of the completion commands and latex
>>> snippets from the LaTeX bundle. They will be replaced by a single
>>> command. I have a prototype under construction, you can see how it
>>> works here:
>>>
>>> http://lasersox.net/LaTeXCompletion.m4v
>>>
>>> Basically there is a tree of completions, and you can navigate them
>>> just by typing. We can work citation completion, and all existing
>>> snippets into this system.
>>>
>>> Thoughts?
>>>
>>> _______________________________________________
>>> textmate mailing list
>>> textmate(a)lists.macromates.com
>>> http://lists.macromates.com/listinfo/textmate
Hi,
Recently I wrote a bundle command to paste the selected TM text to a
terminal window.
Was working fine for few weeks, but then suddenly there was a lag of 2-3
seconds between when i launched the command (via bundles menu or keyboard
shortcut) and when it got around to pasting the text. Kind of irritating.
THoughts?
---------------
rawText="$(cat | sed 's/ / /g;')"
# send the code to the Terminal
osascript -e 'on run(theCode)' \
-e ' tell application "Terminal"' \
-e ' do script theCode in window 1' \
-e ' end tell' \
-e 'end run' -- "$rawText"
--
View this message in context: http://www.nabble.com/Textmate-bundle-command-delay-tp25769214p25769214.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi
I use TM 1.5.9 (1511) and I have again the problem with
tm_interactive_input.dylib.
I removed this file because I can't use LaTeX if this file
is here !
Best Regards
Alain Matthes
Consider the following code:
<gaga>
<bar at1="" at2="" at3="" at4="" at5=""
at6="" at7="" at8="" at9="" at10=""/>
gaga
</gaga>
Re-indenting this gives you the following, which incorrectly doesn't
decrease the indent level after the "/>":
<gaga>
<bar at1="" at2="" at3="" at4="" at5=""
at6="" at7="" at8="" at9="" at10=""/>
gaga
</gaga>
Moving all the attributes (at1 to at10) on a single line is a way around the
problem, but when there are a lot of arguments, it sometimes just makes
sense to have the attributes over multiple lines. I imagine that this could
be fixed by tuning the decreaseIndentPattern and increaseIndentPattern for
XML. Has anyone already done that?
Alex
-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/Re-indenting-XML-with-tag-on-multiple-lines-tp2567268…
Sent from the textmate users mailing list archive at Nabble.com.
Hello everyone,
Has anyone out there tweaked the markdown2book bundle to work with
multimarkdown? The bundle looks great, but I need multimarkdown's
ability to work with tables and bibliogrpahies.
thanks.
jeff.
Hi,
I am a click happy person for some reason. I am trying to fix this. I see my
bartender 3 times a week trying to fix my double click propensities. It
hasn't worked yet, but I have hope.
If I double click in column view on the file open dialog it opens the folder
in textMate. I know better, I do, but in detail view or icon view, I have to
double click in order to go to the next level. When you doubleclick on the
root directory of the 100 Gb partition (how in the hell it is that I can
fill up 100Gb of disk is something I don't want to reveal to my bartender /
shrink).
It occurs to me that one could stick a check on the front of the open
routine. Run du on the folder and alert the user to his impending doom if he
proceeds.
This feature is strictly for boneheads like me who can't seem to get their
double clicks under control.
Part of me doesn't want it to be implemented, because the best way to train
me to not do this is to have the negative feedback of my textMate locking
up, but I also feel obliged to at least suggest it.
--
Brad Tittle
Tech Support
Hi Allan,
This is a small feature request based on my experience of developing
Rails applications.
In rails, view files are named after action name, and thus we get a
lot of files with same names but inside different view folders. When
we use Apple+T to open file, we can only enter file name and use up/
down key to select file.
It'll be really nice if we could enter "/" and dir name to further
narrow down choices. For example, enter 'indexhaml/plan' to select
index.html.haml in plan directory below. It won't cause much confusion
to have dir after file name because the dialog show them in same order.
If you have any comments, please let me know.
Thanks,
Guoliang Cao
Hi,
I've just switched to Snow Leopard and I'm experiencing weird
Subversion Bundle issue. When I try to pop-up a commit window (via Ctrl
+Shift+A, 5 or via Ctrl+Shift+A, 0, then hit commit button) nothing
happens, and I see no error message too. Am I the only experiencing
this issue? Has anyone come up with a solution? TIA!
I'm using build 1510.
--
Filip Tepper
Hello all,
I recently downloaded and installed the ftp/ssh bundle, but no matter
what I put in the dialog fields textmate told me "property list invalid
for format ...."
How do I make it work?
Cheers,
Allen
1. I'm a relatively new user, and just joined the mailing list
2. is there a way to search the archives, so if this has been
discussed I can find it? (I manually reviewed the past 3 months)
3. Anyone know why I am seeing this in my console window about once/
minute, and how I can get rid of it?
10/5/09 1:57:18 PM defaults[32293]
The domain/default pair of (com.macromates.textmate.webpreview,
SelectedTheme) does not exist
Thanks,
joe
Attached is a patch for the Lua textmate bundle to validate the syntax of
the current buffer. It behaves similar to the ruby validate syntax command,
jumping to the first offending line if any.
Tim
Just downloaded the rspec plugin and when i try to run anything i get this
error:
/tmp/temp_textmate.RAORye: line 9: /opt/local/bin/ruby: No such file or
directory
At first i was receiving a similar error after i installed snow leopard and
couldn't run ruby tests with cmd+r, i fixed it by editing my
environment.plist to this:
/usr/local/bin:/usr/bin/ruby:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin/Users/richardschneeman/bin/bin/:/usr/local/bin
When i run echo $PATH i get this:
#!/bin/sh
echo
"$PATH"/usr/local/bin:/usr/bin/ruby:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin:/Users/richardschneeman/bin/bin/:/usr/local/bin
I'm also getting a similar error running other bundles, so i believe it is
with textmate configuration itself. From googling the only two documents I
have been able to find only mention editing the path directly, or the
environment.plist both of which show my correct ruby implementation:
which ruby
/usr/bin/ruby
ahead in the list of /opt/local/bin/ so i don't understand why textmate
would ever look there first. Either way additional troubleshooting tips will
certainly be appreciated
Textmate fails to check for updates with this message in the console
TextMate Error checking for new version: The requested URL returned
error: 403
I am running snow leopard and am behind a firewall that requires a
proxy.
Any help would be much appreciated
Thanks Anthony
Hi
I am trying to learn some of the nice features of textmate. One that
is not working for me is the completion by hitting the escape key
If i execute it from the menu edit->completion->next completeion it
works. but if I hit the escape [esc] on my MAC it does not complete,
then I get a green bar in the first character of the line the cursor
is on and from that point on the up down left and right arrow keys no
longer work nor do other keyboard commands.
Any suggestions what I am doing incorrectly, or what is happening.?
Steve
Hello everybody,
Textmate help states:
"9.4 Project Dependent Variables
Sometimes it is useful to have a command customized differently
depending on the project. For this reason, it is possible to set
variables for individual projects.
The way to do this is currently a little secret but if you deselect
everything in the project drawer, then click the info (circled I)
button, a panel will appear where you can set variables.
These variables are saved in the project file (*.tmproj) and will
exist only for snippets and (shell) commands executed in the context
of that project."
The problem I have since upgrading to Snow Leopard and Textmate build
1509 is that I am suddenly unable to deselect everything in the
project drawer. At least one file will remain selected and Get Info
and the info button will only show me the info about that file. Is
anyone having the same problem? Alternatively, is there any other way
to set a latex master project wide rather than doing it for each file
individually?
Thanks,
JJ
Hi - I'm using ViMate to have vi-style editing. The problem I have is
that the "Esc" is occupied to switch the vi mode, so the general "Esc"
key function is not available. For example, I use "Esc" to see
completions.
* http://sourceforge.net/projects/tm-vi-plugin/
* http://manual.macromates.com/en/working_with_text#completion
Does anybody know a way to keep the vi functionality and TextMate's
"Esc" functionality? No offense to TextMate itself, but I just want to
have a way to change the copy/cut selection range without using arrow
keys.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi all
I seem to have stumbled on a bug in or related to the groovy bundle.
To recreate - open a new file as
mate anyName.groovy
then type
x x.(
textmate will supply the right paren - so you have
x x.()
with the cursor between the parens
typing any other character at this point causes textmate to hang
TextMate Bundles - Revision 11766: /trunk/Bundles/Groovy.tmbundle
TextMate Version 1.5.8 (1509)
–LF
Is there a list feature i am missing in text mate to list out out all the
lines after doing a search and all the lines that have that search get
opened in a separate text-mate file?
I have just upgraded to, or more specifically - installed a parallel
distribution of, TeXLive-2009. Since doing so, I have found that
typesetting LaTeX does not work correctly when the document references
locally held "personal" class, style, bib or other files stored in ~/
Library/texmf. The errors are included below (with some personal info
redacted):
----------
Latexmk: This is Latexmk, John Collins, 2 December 2007, version: 3.21j.
**** Report bugs etc to John Collins . ****
pdflatex: Changes:
Non-existent destination files: 'XXXXXXX_XXXXXXXX.pdf' Rules to apply:
'pdflatex'
------------ ------------
------------
Running 'pdflatex -interaction=nonstopmode -file-line-error-style -
interaction=nonstopmode -file-line-error-style -synctex=1
"XXXXXXX_XXXXXXXX.tex"' ------------
Latexmk: applying rule 'pdflatex'...
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) restricted
\write18 enabled.
entering extended mode
(./XXXXXXX_XXXXXXXX.tex LaTeX2e <2009/09/24> Babel and hyphenation
patterns for english, usenglishmax, dumylang, nohyphenation, german-
x-2009-06-19, ngerman-x-2009-06-19, ancientgreek, ibycus, arabic,
basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish,
dutch, esperanto, estonian, farsi, finnish, french, galician, german,
ngerman, monogreek, greek, hungarian, icelandic, indonesian,
interlingua, irish, italian, kurmanji, latin, latvian, lithuanian,
mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, romanian,
russian, sanskrit, serbian, slovak, slovenian, spanish, swedish,
turkish, ukenglish, ukrainian, uppersorbian, welsh, loaded. ! LaTeX
Error: File `gregsarticle.cls' not found. Type X to quit or to
proceed, or enter new name. (Default extension: cls) Enter file
name: ./XXXXXXX_XXXXXXXX.tex:2: Emergency stop. l.2 \usepackage
{amssymb} %maths^^M ./XXXXXXX_XXXXXXXX.tex:2: ==> Fatal error
occurred, no output PDF file produced! Transcript written on
XXXXXXX_XXXXXXXX.log.
Latexmk: Missing input file: 'XXXXXXXXXXXX.cls' from line
'! LaTeX Error: File `XXXXXXXXXXXX.cls' not found.'
Latexmk: Did not finish processing file: 'pdflatex' did not make
'XXXXXXX_XXXXXXXX.pdf'
Latexmk: Errors, in force_mode: so I tried finishing targets
Application 'Skim' not running
The file /Users/XXXX/Desktop/XXXXXXX-XXXXXXXX/XXXXXXX_XXXXXXXX.pdf
does not exist.
execution error: Can’t make file "Macintosh
HD:Users:XXXX:Desktop:XXXXXXX-XXXXXXXX:XXXXXXX_XXXXXXXX.pdf" into type
alias. (-1700)
error number 256 opening viewer
Found 0 errors, and 0 warnings in 1 runs
/Applications/TextMate.app/Contents/SharedSupport/Bundles/
Latex.tmbundle/Support/bin/latexmk.pl -pdf -f -r /tmp/latexmkrc
"XXXXXXX_XXXXXXXX.tex" exited with status 12
----------
Now, I initially thought that this might be a problem with the TexLive
distribution. However, when switching between the 2008 and 2009
versions and using TeXShop as the frontend, there are no problems in
either version; TexLive-2009 recognizes files under ~/Library/texmf
and parses them correctly. The next thought was that it was an issue
with different versions of latexmk.pl - but TeXShop doesn't use that
script unless it is specifically added on; it's not part of the basic
distro.
Quite frankly I'm at a loss to suggest what the cause could be for
this behaviour. On the other hand, there is a fairly simple
workaround - just include the necessary class and style files in the
directory of the .tex document from which they are referenced. the ./
path seems to work without problems. Of course, this defeats the
purpose of having ~/Library/texmf, but at least it works.
Hopefully someone with more expertise with the guts of the LaTeX
bundle and/or TeXLive will be able to figure this out.
hi,
is there any way to display csv-files in textmate table-like?
It would be great if I could choose if I want the raw text when I open
a CSV-file, like;
col1; col2; col3
3;4;4
7;10;12
or a "table-view" where the columns and cells are separated by a thin
line (like in TextEdit).
Is there such a mode / plugin / way to get this?
thanks!
Is there a way to find the file you are currently working on in the
project pane?
Say you've used cmd-T to open a file somewhere deep down in your
project tree and now you want to open the containing folder in the
project panel... easy way to do that or do I just have to look through
it manually?
Thanks,
Nick
Hello,
i got an issue while run some lines of c-code
the code seems not to be the problem, because it works on my other
machine and with Xcode.
/Library/Application Support/TextMate/Support/lib/tm/process.rb:169:in
`fcntl': Inappropriate ioctl for device (Errno::ENOTTY) from /Library/
Application Support/TextMate/Support/lib/tm/process.rb:169:in `run'
from /Library/Application Support/TextMate/Support/lib/tm/executor.rb:
211:in `parse_version' from /Library/Application Support/TextMate/
Support/lib/tm/executor.rb:98:in `run' from /tmp/temp_textmate.jiIKfe:38
so long
Tim
I am working in html mode, which seems to work out when I switch to
php, html, or css just fine. However, there are tab triggers for the
JavaScript jQuery Bundle, for examples "ready -> tab" should put in:
$(document).ready(function() {
// Stuff to do as soon as the DOM is ready;
});
I just get "ready" as a literally string. The source is set to
source.js.jquery, and I am working in a <script type="text/javascript"
charset="utf-8"> block.
What am I doing wrong?
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hi
I would like to use ruby 1.9 under Snow 10.6
1) How to install Ruby 1.9 :
Side by side with 1.8.7 or remove 1.8.7 ?
What is the best solution ?
I will continue to compile LaTeX with TextMate
2) I'm interesting by the code of the command "Typset & View in Skim"
of the bundle LaTeXtra and also by the command "Preview Tikz Picture"
I would like to know the important points in these codes, perhaps
if it's possible to read some comments about the code
Best Regards
Alain Matthes
Hi,
I'd like to use an .Rprofile or .First with the R bundle of textmate.
Is there an easy way to have an .Rprofile and .First excute whenever I
"Run Selection in R"?
Thanks,
-Adam
Hi
I have Textmate 1.5.8, and I have not been able to get the feature
working that allows me to edit in textmate from other applications.
I have installed the install::edit bundle, at least from in side
Safari under the edit menu I see the "Edit in Textmate" menu
selection. But when I open up Safari and begin drafting a message
textmate does NOT Launch. I expected textmate to launch and shift
focus from Safari to textmate.
Maybe that is not how it works so I launch textmate manually and again
to a "^ Command E" manually shift to the Textmate editor start typing,
when I press "Command S" I expected the contents to be copied to my
Safari message window, but instead I get a dialog box asking where to
save the file.
Clearly this feature i not working, but I think I have activated it,
Any suggestions
Thanks
Steve
Hello,
I am not sure, how legal it is in YAML, but YAML::XS perl module is
sometimes saving multi-line value in key:value pairs like this:
---
key: "this is a multi
line value"
however, TextMate YAML bundle thinks the value ends on the first line,
the next line is interpreted probably as regular text, and the second
quotation mark is interpreted as start of never-ending string.
I think this is a bug in YAML bundle.
Karel Bilek
Hi,
Snow Leopard's developer documentation path was changed. Due to that I
have the following suggestion to get rid of that:
in docset_query.rb (Objective-C.tmbundle/Support/lib) line 11 add the
new location to the DOCSETS array:
DOCSETS = [
"/Developer/Documentation/DocSets/
com.apple.ADC_Reference_Library.CoreReference.docset",
"/Developer/Documentation/DocSets/
com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset",
"/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/
DocSets/com.apple.adc.documentation.AppleiPhone2_0.iPhoneLibrary.docset"
]
Furthermore one has to add to Objective-C's bundle command
"Documentation for Word / Selection" at the beginning
if [[ "$(defaults read /System/Library/CoreServices/SystemVersion
ProductVersion)" == 10.6.* ]]; then
"${TM_RUBY:-ruby}" -r"$TM_BUNDLE_SUPPORT/lib/docset_query.rb" -e
'documentation_for_word'
exit
fi
or one can combine the check for 10.5.* and 10.6* of course.
IMPORTANT:
This only works if the entire documentation is installed locally (as
far as I know this is NOT the default!).
To do it simply open Xcode 3.2 > Preferences > Documentation. Make
sure that the docset 'Mac OS X 10.6 Core Library' is downloaded (press
the Get button if grayed)
After that and reload bundles one has the new look&feel documentation
in TM available.
Best,
--Hans
Thanks for the help, corrections and suggestions!
> OK, then you can duplicate the HTML bundle drag command "Insert Image
> With Dimension" and rewrite it to your need. (Please have a look at
> manual chapter 11 'Drag Commands')
I will try, thanks!
>> That is what I usually do, but with the problem that Project Drawer
>> is
>> not correctly updated: the old file disappears from PD tree.
>> I have to restart TM to see it again. It is always there anyway, it
>> seems to be only a display problem of TM project drawer.
> Yes, this is known issue, but there's no need to restart TM. Simply
> activate any other app like the Finder and re-activate TM. This can be
> done automatically via AppleScript eg; or one could write a command
> which duplicates the selected file, set the focus to Finder, set focus
> to TM.
Why Macromates don't address this know issue in TM or adds a command
for that?
> NOT: CTRL + SHIFT + C! Please use SHIFT+APPLE+C instead.
> As I said TM doesn't listen to CTRL + SHIFT + C.
Ooook, I have found the problem :) thanks
> By myself I seldom click on a tab to select a file. Instead I'm using
> the short-cut APPLE+1..9 for selecting one of the nine tabs (have a
> look at Main Menu > Navigation > Go to Tab) and the title bar tells me
> the current file name I'm working on.
> And more often I'm using APPLE+T "Go to file".
hope TM version 2 will offer soon a better interface for this nice
software.
>>>> And I don't understand where TM places the new file if no
>>>> directory is selected.
>>>
>>> If you press ??N (New File) you will see a dialog with a field
>>> called ?Location?. This will be the place you're looking for.
>>
>> correct, but like before Project Drawer tree seems buggy:
>>
>> If I create a new file with SHIFT + CMD + N, and I set location to "/
>> models" and file name to "test.html", sometimes I see the new file
>> placed at the end of the list at the same level of the project root.
>> Sometimes I will see the file twice: once inside "models" directory
>> and also at the end of the list, out of models directory.
> Hmm, never did that before - by myself I select the folder before I
> create a new file - but I could reproduce it. I got a "ghost file" of
> the same name if I chose an other folder. weird.
Macromates? Please take a look to this too!
..and what are "untitled Group Folder" you get when hit "new folder
without selecting anything in PD ?
thanks
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Nuova Volkswagen Polo: nuovo design, comfort assoluto, pronta per un nuovo passo avanti. Scoprila adesso
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9582&d=16-9
I have just downloaded the 30 day version of TextMate, and really like
many of its features. However, I do much of my coding in Fortran 77
(I know, not the most modern of languages). I've gotten quite used to
AquaMacs formatting/aligned features and now hope to find the same
features in TextMate.
But what I have found for f77 files is that it doesn't appear to align
code correctly. Maybe I am doing something wrong?
Using opt-command-[ on various lines indents to column 1, doesn't put
line continuation characters ('&') in the proper column (column 6),
and doesn't know what to do at all with format statements.
Are there other f77 users out there with similar experiences? Any
hints, tips, suggestions are welcome.
Or should I just abandon attempts to use TM with f77? It does seem
that TM provides extensive support for 'punchcard fortran' (got to
love the name), so I was initially very optimistic that basic features
would be supported. But so far, I am disappointed.
with the latest textmate running under 10.6.1, i seem to have lost the
ability to save to the last used folder. every new document defaults
to save to the root of my disk. any way to change that?
thanks for any help.
Hi,
I've just installed Snow Leopard 10.6.1 + XCode 3.2. Due to a change
of "xcodebuild -project ..."'s output behaviour from Xcode 3.1 to
Xcode 3.2 the Xcode bundle's commands "Build" and "Build & Run" always
terminate with "Build Failed".
The reason for that is a single '\n' after "** BUILD SUCCEEDED **" in
Xcode 3.2.
To fix that and to be compatible with Xcode 3.1 I suggest to change
line 122 in parse_build.rb (Xcode.tmbundle/Support/bin):
old:
last_line = line
new:
last_line = line if line.chomp.length > 0
In other words remember the last_line only if it is not an empty line.
In the hope this fixes the issue,
--Hans
Hi!
I'm having some problems with a table where I need to include multiline text
(large text). I would like to have the same behaviour as a standard
paragraph but text is cut when arribing to the right margin instead of
continuating in a new line.
I'm using:
\begin{tabular}{|c|c|l|}
\hline
...
Any idea?
Thanks!
xxx
xxxx
Warning: This e-mail is privileged, confidential and contains private
information. Any reading, retention, distribution or copying of this
communication by any person other than its intended recipient is prohibited.
Hi, I am completely new to programming and am trying textmate out based on
some reviews I've read. I'm learning python as my first language.
My question is this: I am writing basic small programs in python and when I
run the program to see if it works, even if it works properly it always
finishes the output with the last data that I enter into it.
For example, if I enter:
n = input("Please enter a whole number: ")
fact = 1
for factor in range(n, 1, -1):
fact = fact * factor
print "The factorial of", n, "is", fact
When I run the program (with an input of '10'):
' Please enter a whole number: The factorial of 10 is 3628800
10'
When I run the program in IDLE I don't get the extra output.
Thank you.
Hi,
I am not sure if I'm just using an old version but it seems that
there's a bug with project plus.
If I am dragging a folder from the Finder to the TextMate-icon and
TextMate is closed, TextMate will open with the "old" drawer. If I
open the folder from within TextMate (e.g. via Recent Items) or if I
drag the folder to TextMate when it's already open the Project Plus-
drawer opens.
I made a short video that shows the problem: http://www.youtube.com/watch?v=b802UokTNjg
I am using Mac OS 10.6.1, TextMate 1.5.8 (1509) and I'm not sure how
to figure out which version of Project Plus I'm using.
Niels
A while ago, while on project view, I dragged a .gif file from the project
drawer to the main textmate window, which opened the file in the text
editor. I simply closed it and move on.
Ever since, everytime I select a .gif file on the project drawer it opens
the file on textmate, when most of the times I just want to drag it to my
dock and open fireworks. I've searched everywhere and couldn't find where to
cancel this behaviour, to no avail.
Help?
--
View this message in context: http://www.nabble.com/Opening-Gif-files-tp25530149p25530149.html
Sent from the textmate users mailing list archive at Nabble.com.
Hey is there a more advanced version of the Diff for textmate (like Exam
Diff or Beyond compare), that would allow us to look at individual words or
characyter differences per line rather then just line by line?
Thanks for the reply, please see comments below:
>> 1. New Project
>>
>> [...]
>> The question: is there any way to have the paths set from my "root"
>> element?
>> For example if I drag an image that is placed into /myroot/img/ the
>> html file that gets it uses a src link like "../../img/image.gif". Is
>> it possible to have "/img/image.gif" instead?
>
> I do not quite understand. But if you drag eg an image from the
> drawer/
> Finder to an HTML document TextMate will insert the relative path seen
> from that HTML document, this ensures that the HTML doc can see the
> image file later on.
I mean that I usually prefer to set all my image paths to something
like "/img/file_name.gif" instead of TM way: "../../img/file
name.gif", they both normally work yes, but when you are using apache
mod_rewrite or when, later, you want to move the file somewhere in
other directories, by using default TM path you should address all
paths to the new location (or mod_rewrite path).
By using the "absolute relative path" like "/img/image.gif" the image
will always work even if you move the file into a directory like:
test/small_files/long/path/myhtml_file.html
or
/short_path/myhtml_file.html
>> 2. Project Drawer and new files in project
>>
>> How can I create a new file or duplicate an existing one?
>
> If you did select the file in question simply press ??S (Save As)
> to duplicate it.
That is what I usually do, but with the problem that Project Drawer is
not correctly updated: the old file disappears from PD tree.
I have to restart TM to see it again. It is always there anyway, it
seems to be only a display problem of TM project drawer.
For Exemple, if open a file called "menu.html" that is placed inside /
models/menu.html, and then I choose "Save As..." and select /test.html
as the new saving location and name, Project Drawer will show me a
file called "test.html" placed into /models and no file in the project
root.
I have to close TM and restart it to see files where they really are.
Do you confirm?
>> 3. While I editing CSS or HTML files, sometimes I need the color
>> chooser, the default keys CTRL + SHIFT + C do not open it. That keys
>> seems to be used by the default Math bundle. Is the solution to
>> manually change such keys in Math bundle? Why TM provides such
>> overlapping keys?
>
> TextMate doesn't listen on the ?^C, thus deleting that short-cut in
> the Math bundle won't work.
>
> If you're inside a CSS doc or inside a CSS scope (ie if your caret in
> inside of "<style type="text/css">?</script> of an HTML file) press
> ??C. From others ^? > CSS > Insert Color?
correct, but when I have an open file like could be "test.css" and CSS
language is associated to such file, if I am creating a rule and I hit
[ CTRL + SHIFT + C ] why it does not open color picker but Math bundle
instead?
The same happens when I am inside a .html file and the caret is placed
into tags:
<style type="text/css" media="screen">
color:
</style>
> 4. A little "bug" with file tabs
>
> In addition ^?R will select the current doc in the drawer.
>
> If you need your own way to display the name simply create a new
> tmcommand in the bundle editor:
> Input: Discard:
> Output: Show as Tooltip
> Command:
> echo "$TM_FILEPATH"
>
> and bind it to any short-cut.
that is ok, but is always a patch to the wrong (in my opinion)
behaviour of TM with not visible tabs.
In DW CS3 for example, active tab is always displayed in tabs list. In
TM you need to see tab even if you want o drag the file tab near to
another for faster select. But you can't do that at the moment.
>> And I don't understand where TM places the new file if no
>> directory is selected.
>
> If you press ??N (New File) you will see a dialog with a field
> called ?Location?. This will be the place you're looking for.
correct, but like before Project Drawer tree seems buggy:
If I create a new file with SHIFT + CMD + N, and I set location to "/
models" and file name to "test.html", sometimes I see the new file
placed at the end of the list at the same level of the project root.
Sometimes I will see the file twice: once inside "models" directory
and also at the end of the list, out of models directory.
If I restart TM, the files listing in project drawer remains the same
(double file) and I cannot understand why.
If I want to delete it, I have to delete both files from Project Drawer.
In the finder the file is placed correctly, but again there is a
problem with PD tree.
That is very strange and is confusing me.
Thanks for the help!
--
Ciao
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Last Minute a Riccione. Scopri le offerte su vacanzedivertenti.it
* Buona Vacanza!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9525&d=15-9
Hallo,
I am trying to understand how to do some basic operations with text
mate but I didn't find help in the manual, wiki o faqs so I try here:
1. New Project
I used to have all my web project files and directories inside a main
directory, when I create a new project in textmate I drag such "main"
folder into TextMate icon and save project. That seems correct and
seems to be the only way that allows files or directories created
later in the finder to appear in the project without the need to
manually drag them.
The question: is there any way to have the paths set from my "root"
element?
For example if I drag an image that is placed into /myroot/img/ the
html file that gets it uses a src link like "../../img/image.gif". Is
it possible to have "/img/image.gif" instead?
2. Project Drawer and new files in project
How can I create a new file or duplicate an existing one?
The alternatives seems to be:
- go to the file menù and select "new" but in this way the new file
appears in a new window outside the project and I don't know why;
- go to project drawer, select the directory where I want to create it
and hit new file button. Seems ok but Project Drawer behaviour feels
a bit strange sometimes.
- use the file menu and "Save as..." to save the current file with a
new name to duplicate it. That's seems quite ok but Project Drawer
seems bugged about: If I do that, I cannot see the old file in PD, or
I can see it but it seems to have the same name of the new file
created (that is no true). To fix it I have to quit and restart PD. Is
there any way to have PD list updated correctly?
- go to the finder and make duplications from there. But this way is
longer than any other and I think it should be possible from TM.
Further more if I want to delete a file, the only way I found in PD is
to *select the file twice* (why?) and then hit the "delete" keyboard
button.
There is no "delete" command in the right click menu, as for duplicate.
If I use the new file or new directory button in PD without selecting
anything the behaviour is more strange: the file is placed or
displayed in a some strange location in the project tree. The
directory is called "group" but I don't know what it means.
3. While I editing CSS or HTML files, sometimes I need the color
chooser, the default keys CTRL + SHIFT + C do not open it. That keys
seems to be used by the default Math bundle. Is the solution to
manually change such keys in Math bundle? Why TM provides such
overlapping keys?
4. A little "bug" with file tabs
When opened files number exceed TM window width, other files are
visible under the ">>" button of tab list. Unfortunately if you need
to work on a file listed in ">>", you cannot see it selected in the
tabs so it is difficult sometimes to know on wich file you are working
or where it is placed.
Thanks.
Fabio
--
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Cerchi un hotel per le prossime vacanze a Riccione? Vai su vacanzedivertenti.it
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid28&d-9
I would like to use Textmate's built-in Tidy (Ctrl+Shift+H) functionality to
indent my HTML 'without modifying anything' in the code. I write pretty neat
HTML already, I just need Tidy to indent my code with Soft-tabs.
Currently it breaks a lot of things and the formatting isn't perfect either.
Can someone please write a Tidy config for me that does this:
1 - Indents only, nothing else.
2 - I don't need certain tags to be pushed on a newline. For example:
Tidy does this:
<li>
# link
</li>
Original Code (or What I need):
<li> # link </li>
..so if I can pre-define which tags to be kept inline, that would be great.
Basically, I'd like to duplicate Dreamweaver's HTML formatting functionality
with Tidy, but the two things mentioned above are really important.
I think this is my current (default?) Tidy config:
${TM_TIDY:-tidy}" -f /tmp/tm_tidy_errors -iq -utf8 \
-wrap 0 --tab-size $TM_TAB_SIZE --indent-spaces $TM_TAB_SIZE \
--indent yes \
${TM_XHTML:+-asxhtml --output-xhtml yes} \
${TM_SELECTED_TEXT:+--show-body-only yes} \
--enclose-text yes \
--doctype strict \
--wrap-php no \
--tidy-mark no`
I'd greatly appreciate any help. Thanks!
--
View this message in context: http://www.nabble.com/Configuring-HTML-Tidy-tp25420981p25420981.html
Sent from the textmate users mailing list archive at Nabble.com.
Thanks, Allan and Sam - your suggestion worked, and I've documented
the steps I took at
http://www.davidchinphoto.com/snow-leopard-and-adobe-unit-types-osax/
====
David Chin
http://www.facebook.com/people/David_Chin/528318091http://www.davidchinphoto.com/http://www.flickr.com/photos/davidchinphoto/http://www.pbase.com/dlcmh
> On Sep 13, 2009, at 20:57 , Allan Odgaard wrote:
>
>> On 13 Sep 2009, at 09:49, David Chin wrote:
>>
>>> [...] I get an error message that looks like this:
>>>
>>> 2009-09-13 15:38:10.711 osascript[5261:903] Error loading
>>> /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/
>>> Adobe
>>> Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit
>>> Types.osax/Contents/MacOS/Adobe Unit Types, 262): [...]
>>
>>> [...]
>>> Any ideas on where in the Blogging Bundle I can make this change? Or
>>> does the change need to be made in one of the Ruby libraries?
>>
>> You need to get rid of: /Library/ScriptingAdditions/Adobe Unit
>> Types.osax
> That's what I thought as well; and indeed, after removing this file,
> the warning was gone. However, Photoshop (CS3) started complaining
> that it had not been installed properly at every launch. Nevertheless,
> it worked just fine.
> Make your choice :-)
>
> Sam
I recently updated to Snow Leopard and I am having a really odd thing pop
up. Right now when editing a file I can click any where in the window and
the cursor will be inserted there. The funny part is that I can click to the
right of a line break and the cursor will stay there. If I start typing the
line break jumps to the right of my current position. Another funny thing
is with soft tabs. In my Ruby files previously if I entered a tab (2 space
soft) and then hit delete it would remove the full tab (both spaces). Now
when I hit tab it inserts the 2 spaces but if I have to press delete twice
to clear it because it only removes one space at at time.
Anyone else seen something like this? Or anyone kno
Peer Allan
Development Team Lead, e-Business
CanadaDrugs.com
24 Terracon Place
Winnipeg, MB, Canada
R2J 4G7
Phone: (204) 654-7951
Fax: (204) 654-7910
www.canadadrugs.com
After upgrading to Snow Leopard, I tried to post to my Wordpress blog
via Textmate's Blogging Bundle, which I've used with absolutely no
problems in the past.
Now, however, the post gets posted to the blog OK, but in the Textmate
document itself, I get an error message that looks like this:
2009-09-13 15:38:10.711 osascript[5261:903] Error loading
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe
Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit
Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image
found. Did find:
/Library/ScriptingAdditions/Adobe Unit
Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture
in universal wrapper
osascript: OpenScripting.framework - scripting addition
"/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no
loadable handlers.
Doing a Google search on this, I found a discussion at
http://forums.adobe.com/message/2225123, where it was suggested that
calls to osascript be done like this:
arch -i386 osascript scriptname.extension
Any ideas on where in the Blogging Bundle I can make this change? Or
does the change need to be made in one of the Ruby libraries?
Thanks for any help.
====
David Chin
http://www.facebook.com/people/David_Chin/528318091http://www.davidchinphoto.com/http://www.flickr.com/photos/davidchinphoto/http://www.pbase.com/dlcmh
I am getting errors when running "mate" only while logged in as admin.
Things work fine when logged in as a regular user. This involves textmate
1.5.9 on OSX 10.6 and I am seeing the issue with both of my macs (mid-2007
imac and feb 2008 mbp). I did not encounter this prior to the Snow Leopard
and textmate 1.5.9 upgrades.
Starting bash, then doing a "login admin" and then attempting to edit
produces this error:
mate test.txt
Tue Sep 8 03:09:15 Mothra-2.local mate[17070] <Error>: kCGErrorFailure: Set
a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
_RegisterApplication(), FAILED TO establish the default connection to the
WindowServer, _CGSDefaultConnection() is NULL.
the console is hung at this point until you hit Control-Z
Trying again with sudo changes the error to this:
sudo mate test.txt
2009-09-08 03:00:06.946 mate[17053:e07] An uncaught exception was raised
2009-09-08 03:00:06.949 mate[17053:e07] *** -[NSArray objectAtIndex:]: index
(-1 (or possibly larger)) beyond bounds (0)
2009-09-08 03:00:06.950 mate[17053:e07] *** Terminating app due to uncaught
exception 'NSRangeException', reason: '*** -[NSArray objectAtIndex:]: index
(-1 (or possibly larger)) beyond bounds (0)'
*** Call stack at first throw:
(
0 CoreFoundation 0x926b258a __raiseError + 410
1 libobjc.A.dylib 0x965a6f49 objc_exception_throw + 56
2 CoreFoundation 0x926f63f1 -[__NSArray0
objectAtIndex:] + 209
3 mate 0x000026e3 0x0 + 9955
4 mate 0x000037af 0x0 + 14255
5 mate 0x0000261a 0x0 + 9754
6 mate 0x00002535 0x0 + 9525
)
Trace/BPT trap
the console is not hung after this error message
Any help would be greatly appreciated.
thanks
Nick
Hello,
I am using Textmate 1.5.9. When I visit a .erb file or a .html.erb file the scope selector identifies the source as being source.ruby.rails rather than the text.html.ruby which I believe is the correct scope. As a consequence a lot of my snippets are unavailable.
Thanks for any suggestions you might have.
Cheers,
Santosh
------
The following is the definition of the language:
{ scopeName = 'text.html.ruby';
fileTypes = ( 'rhtml', 'erb', 'html.erb' );
foldingStartMarker = '(?x)
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|<!--(?!.*-->)
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
)';
foldingStopMarker = '(?x)
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|^\s*-->
|(^|\s)\}
)';
patterns = (
{ name = 'comment.block.erb';
begin = '<%+#';
end = '%>';
captures = { 0 = { name = 'punctuation.definition.comment.erb'; }; };
},
{ name = 'source.ruby.rails.embedded.html';
begin = '<%+(?!>)[-=]?';
end = '-?%>';
captures = { 0 = { name = 'punctuation.section.embedded.ruby'; }; };
patterns = (
{ name = 'comment.line.number-sign.ruby';
match = '(#).*?(?=-?%>)';
captures = { 1 = { name = 'punctuation.definition.comment.ruby'; }; };
},
{ include = 'source.ruby.rails'; },
);
},
{ include = 'text.html.basic'; },
);
}
Hi,
I use the ZenCoding Bundle for HTML/CSS, but frequently I need to use HTML
snippets in PHP files too. Yes, I can change the scope from just 'text/html'
to 'text..html, source.php' but editing hundreds of snippets would take
time.
Is there a shortcut method to achieve this?
Thanks in advance for your help.
Hi
JavaScript, a simple (I hope) question. Why the JavaScript Language
Grammar only recognize as foldingStartMarker the "function" key word
while Ruby, for example, recognizes all its possibilities for it to
build any kind of block?
I know, ruby has more followers in the TM community, I understand.
But JavaScript opening of blocks are much more standard than ruby ones
and it should be interesnting to have a repository from where to take
small code snippets as this pari foldingStartMarker/foldingEndMarker
that are so common in all the languages.
In the meanwhile I have borrow the ruby part of text and substitute
the JavaScript part (changing only def by function and end by }) and
it seems to work :)
- juan falgueras
Hello List,
This is a small problem, but since I encounter it many times a day I
thought that I'd ask it on the list, maybe there is a solution for it,
or there is something that I don't kknow.
Let's say I have a figure with \label{fig:plin-power-up}. When I want
to refer to this figure using \ref command, when I type "\ref{plin"
and press option+esc, the label that I am looking for is not properly
found. I have to scroll through a long list of labels (including
labels that don't have the word plin at all) to find the correct one.
On the other hand, if I type "\ref{fig:plin" and press the option+esc
keyboard shortcut, I am presented with the correct label (the list is
much shorter this time), but when I select it from the list and press
enter what I get is \ref{fig:fig:plin-power-up}. Then I have to go
back and delete the extra "fig:"
Is there something that I am doing wrong?
Any help is greatly appreciated.
Best,
Hooman Javidnia
So I've been trying to use TextMate for coding in c/c++ instead of Xcode as
of late, but any time I do a command-R to run my code, I get this error:
The current PATH is:
"/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/X11/bin
Please add the directory containing “g++” to PATH in TextMate's Shell
Variables preferences.
Alternatively, the PATH can be retrieved from Terminal but this requires a
relaunch: "
Even when I try to retrieve the PATH from Terminal, I still get this error.
Has any one run into this kind of problem before? Searching yielded no
results, so I was hoping that someone here could help me.
Thanks in advance,
-Matt
--
View this message in context: http://www.nabble.com/can%27t-find-%22g%2B%2B%22-on-PATH-problem-tp25410391…
Sent from the textmate users mailing list archive at Nabble.com.
I just installed GetBundles and it does not work for me.
If I invoke the GetBundles command, a tooltip appears
saying 'unknown command, try help'
Narrowing down the problem, the script breaks down
immediately at the first invocation of "$DIALOG".
Needless to say I have the cutting edge TextMate and
tm_dialog2 is at its place, which coincides with the path
given by echo "$DIALOG"
Any ideas?
Thanks
Piero
Hi all,
I believe I have fixed the issues with interactive input on Snow
Leopard. However, this should be considered beta until it gets
included in the TM distribution.
That said, if you are brave enough to test it it would be very much
appreciated.
To install, open up a document in TextMate and enter the following one
line:
curl "http://cloud.github.com/downloads/alkemist/interactive-input/tm_interactive…
" -o "$TM_SUPPORT_PATH/lib/tm_interactive_input.dylib"
With the caret on that line, press ⌃R to run the command. Interactive
input will be reinstated and you don't need to restart TM.
Please raise any issues on this list.
LD.
I have just discovered TextMate, and am so far very happy with it,
but I think I just hit a glitch...
I am trying to edit a SQL load file that is about 5M, which shouldn't
be a problem. However, some of the lines are very long, as a complete
website contents is in a single line. I have no idea how many
characters are in this line, but I suspect about 2M worth.
Anyway, TextMate hangs while trying to work with this file. I can't
do much at all. Even a simple act of scrolling hangs. TextEdit does a
reasonably good job with the file though...
Actually, I don't think it is hanging, as it eventually responds
(about 30 seconds later), but it is so slow that it is completely
unusable. Is this a known problem? For me, it is weird files like
this that we need an editor like TextMate to be able to easily handle.
Thanks...
Jim Leask
Hi,
I'm sure this must've been asked a hundred times already, but I couldn't
google a decent answer for this: How do I enable syntax color for HTML in a
PHP file, or vice versa.
If its a PHP file I'm working on, HTML turns grey.
I'd greatly appreciate any help. Thanks!
Hello
I'm a bit stumped...
I have a simple Python script containing a call to raw_input(). When I run
the script with Cmd-R, the 'Running' window pops open, the script runs, but
upon reaching the raw_input() call I'm not prompted for any user input.
Instead the window displays an error:
EOFError: 'EOF when reading a line'
Running the script via the terminal works as expected: the script pauses for
my input, then continues.
Any ideas? I've googled about and only found one other reference to this
error (on this very forum) but the issue was resolved with an update to
TextMate.
TextMate is up to date (1.5.9)
Python Bundle is up to date (r11739)
Thanks in advance
Steve C.
--
View this message in context: http://www.nabble.com/Problem-running-a-simple-Python-script-containing-cal…
Sent from the textmate users mailing list archive at Nabble.com.
Hello together,
i have some problems with the LaTeX-Bundle of TextMate.
I got the following error message:
File "/Users/sacher/Library/Application
Support/TextMate/Bundles/Latex.tmbundle/Support/bin/texMate.py", line 54
print "Using Tiger Compatibility version of Popen class" ^ SyntaxError:
invalid syntax
I have tried to reinstall TextMate, to update the Bundle with the
GetBundles-Bundle and from http://svn.textmate.org/trunk/. Nothing worked
for me.
I have installed the latest versions of:
- Mac OS X 10.6 (Snow Leopard)
- Textmate Version 1.5.9 (1510)
- MacTeX 2008
- Python 3.1 (r31:73572)
Thanks for your help.
Oliver
--
View this message in context: http://www.nabble.com/Problem-with-the-LaTeX-Bundle-tp25364171p25364171.html
Sent from the textmate users mailing list archive at Nabble.com.
Wanted to get this out there in case anyone else was having these issues.
Snow Leopard changed my PHP configuration. (In fact, it might have come
with no php.ini set up altogether... I've already forgotten.) The
configuration killed any bundles that ran PHP code (like the wonderful
but quirky FTP/SSH bundle), since it was not passing environment
variables from Textmate to PHP.
I was getting errors like:
PHP Notice: Undefined index TM_PROJECT_FILEPATH
PHP Notice: Undefined index TM_DIRECTORY
etc.
and FTP/SSH reported "Remote settings file not found", when really that
was the least of its problems.
The fix:
* Make sure you have a file, /private/etc/php.ini -- you may have to
copy or rename 'php.ini.default'
* Search for the variables_order configuration line. It should be
uncommented, and have an E in it, like this:
variables_order = "GPCSE"
That's it.
hello everyone,
i have installed the phpbundle with svn co http://svn.textmate.org/trunk/Bundles/PHP.tmbundle
in ~/Library/Application\ Support/TextMate/Bundles/
the problem is that the php bundle doesnt appear in the bundles
menue[1]. but it is listed the bundles folder[2].
another problem is, when i start a new project and would like to add
an file with a .php file extension i cant choose the .php file
extension from the menue[3]
i have reload the bundles with osascript -e 'tell app "TextMate" to
reload bundles'
hope that anyone can help me out. sorry for my bad english!
regards,
sebastian
[1] http://img443.imageshack.us/img443/9637/bild1q.png
[2] http://img159.imageshack.us/img159/4888/bild2y.png
[3] http://img524.imageshack.us/img524/9931/bild3te.png
---
() ascii ribbon campaign - against html mail
/\ - against microsoft attachments
Hello,
I have been using TextMate (licensed) for several years. A few days
ago, I did the most recent update. Now, TextMate will not launch at
all. I get a dialog box telling me TextMate is not supported on this
architecture. But I have NOT upgraded to Snow Leopard, so I can't
figure out why it is happening. I'm still running Leopard, version
10.5.8. Does anybody know what's wrong and how I can fix it?
Thanks,
Crystal
Hi!
I'm just working on some Tex-Document which uses several dialogues
which I want to enclose in "< "> (the result are those <<
>>-enclosures in the document). Would be cool if that could be added
to the language grammar.
Thanks in advance
Niels
It seems that the `par` binary included with the Mail bundle was
compiled for PowerPC only. I don't have Rosetta installed, so I got a
warning. Just an FYI.
Maybe someone could scan the Support folder for all the current
bundles to look for such binaries?
--
Rob McBroom
<http://www.skurfer.com/>
If you need something, that doesn't mean someone else owes it to you.
Hi,
I'm evaluating TextMate as a MacVim replacement for my LaTeX writing.
What bugs me is that it does not seem to indent and hard wrap text
automatically at all when editing existing paragraphs. MacVim does
this very nicely when the appropriate "format-options" are turned on.
I found this message regarding indentation:
http://lists.macromates.com/textmate/2009-August/029269.html
>> Is there a way to make the indentation continue on the second and
>> third, etc. line of the \item? Something like this:
> I assume you are asking for indented soft wrap, in which case the
> answer is no.
What would the answer be for indented *hard* wrap?
What I would like is to be able to just remove some words of any
indented line (e.g. within a
\item line) and have TextMate continuously reflow and re-indent the
text for me.
- If I press backspace before the first non-white space character of a
line, it should just jump back to the end of the previous line instead
of removing the indentation tabs or spaces.
- If I'm changing a line that begins with \item to \end{itemize}, it
should automatically outdent to the correct indentation level.
- etc.
In other words, if at all, it should only be possible to change
indentation manually using opt-tab and opt-shift-tab.
For some limited time, I could maybe live with having to press a key
to manually trigger the re-flowing and re-indenting process, but none
of the provided commands seem to do much good in this case.
I attached a macro I've developed that handles the latter (only soft
tabs are supported); please let me know if there is an alternative way
of achieving this.
I wonder if any enhancement regarding automatic reflowing of hard
wrapped text is planned for TM 2?
Thanks,
Sam
This is probably a bit of a noobish question, but since most recently
updating TextMate I've been having problems making programs which require
input run correctly through TextMate. Before the recent update I had no
problems.
For example, if I write a simple C program such as the following
(getchar.c):
#include <stdio.h>
int main() {
printf("Please type a character:\n");
printf("You entered %c", getchar());
return 0;
}
and then hit Command-R to run the program, TextMate doesn't bother to ask me
to type anything but just defaultly takes EOF as its input. Before updating,
TextMate would come up with a dialogue box telling me that input was
required, with the option to send EOF to the program, but this no longer
happens.
The above program runs fine in terminal, via "gcc getchar.c;
./getchar.c.out" for instance.
The problem persists with other languages too, such as Ruby. Presumably
there must be a simple way to fix it. Has a setting that tells TextMate what
to take as STDIN been changed?
Thanks in advance.
--
View this message in context: http://www.nabble.com/Running-programs-that-require-input-in-TextMate-tp252…
Sent from the textmate users mailing list archive at Nabble.com.
I'm not sure if this is a textmate problem, but I don't seem to be
able to generate a pdf with images using princeXML from a
multimarkdown document anymore. The only real change in my system in
snow leopard. Is anyone else having troubles with this?
j.
Dear Users,
Erm, I spent the better part of the last few hours working on a custom
language grammar for assembly languages and then with just one keystroke
the language definition was deleted without me being able to bring it
back? How is it possible that when I do not have the focus on the text
editing region of the language editor (mind you this can happen
accidentally very quickly when you have to constantly close and reopen
the dialog!) and I press backspace that my language definition is
deleted without being asked if I really wanted to delete it? This is so
incredibly fustrating.
Do any of you know a trick how I can save any of it? Is there a cache
somwhere or someting that I can exploit. I already checked the tmBundle
and under the Syntaxes folder my definition is already gone :(((
Please if you do know something.... it would be a shame if all this work
would be lost. I really did not expect this behaviour. I otherwise love
TextMate but this is a design flaw. I should at least be asked if I
really wanted to delete the syntax file I have been editing the last few
hours.
Thanks for reading!
André
I just upgraded to Snow Leopard over the weekend, and when re-installing all
software, decided to use GetBundles to grab all of the bundles I'd been
using. However, when trying to list everything on the repository, it doesn't
seem to work for me.
I went into show_bundles.rb, the support ruby script which is called when
you "Show Bundles on Repository". I updated the website's hardcoded in that
script to svn.textmate.org/trunk/Bundles, but no dice. I did notice the
general note on TM/SL incompabitility with Ruby scripts due to 1.8.7, but
I'm not a Ruby guy so I dont know the details.
Is anyone else seeing the same thing?
Much thanks
Joe
With SL upgrade, as discussed before there is problem with LaTex and
other bundles don't work while the tm_interactive_input.dylib exists.
I find another problem when I tried to configure the LaTeX bundle
preference, it appears a tooltip says,
/Library/Applications Support/TexMate/Bundles/LateX.tmbudle/Support/
bin/configure.py:8: DeprecationWaring: os.popen4 is deprecated. Use
the subprocess module. sin,result = os.popen4(command)
What is this?
Hi All,
I downloaded TextMate today and am evaluating switching to it from Emacs.
There are many things I like about it so far, but I have three questions.
I code in C++. When I try to re-indent a selected chunk of code, using Text
-> Indent Selection, it seems to do the wrong thing for any code that
appears after comment lines. Am I doing it wrong?
Also, is there any way to invoke Make from within TextMate. And finally, is
there a gdb mode for debugging apps, like Emacs has?
Thanks!
Mark
I have asked this before, and I can not find the post, or any notes or
emails on it.
When remotely editing code via for example, Interarchy, or any other
ftp/ssh/sftp app, I can not get saving of code foldings.
Is this supposed to work? I seem to recall back in the days of using
BBEdit I would be able to tick off a "save state" and it would
remember everything, from window position, line numbers on off, and a
bunch of other things.
Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *
I have two bundle commands with identical input and scope settings.
One of them sees the TM_INPUT_START_LINE_INDEX environment variable,
the other does not.
Any idea why that may be?
Thanks
Gerd
Hi,
I found a small bug. Since this is part of a bundle, the macromates
website asked me to report it here.
Summary: sort does not with euro symbol, and some other non-Latin
characters.
Steps to reproduce
1. Open new text file.
2. Add text with a EURO symbol, e.g.
aaa €
bbb ¥
ccc $
ddd £
3. sort the file with F5 (Text > Sorting > Sort lines in document)
I get the error:
sort: string comparison failed: Illegal byte sequence
sort: Set LC_ALL='C' to work around the problem.
sort: The strings compared were `AAA \302\202\254' and `BBB ¥'.
Most non-Latin characters work fine. Just this one fails. If I save the
file and simply run "sort test.txt" all is fine. Both in my shell and in
TextMate, "echo $LC_ALL" return "en_GB.UTF-8".
Typing the following script in TextMate and "run script" works fine:
echo "ccc\naaa€\nbbb" | sort
What would be different for the "Sort lines in document" (which simply
calls "sort") and the above script?
Any clue?
Is this reproducible by others?
Regards,
Freek Dijkstra
Hi,
I have made the following
blunder a couple of times. I go to open a file in textMate using
File->Open and am in column view. I accidentally double click on the
folder instead of single clicking. In list view or icon view this
would just open the folder and go to the next level. In column view
this actually opens the folder in textMate. If you are unfortunate
enough to do this at low enough a level, textMate will then start
scanning the entire folder hierarchy.
I seem to remember seeing a command that would stop this process. I
searched the archives of the list, but apparently I didn't on the
right word choices.
BTW. Part of the beauty of textMate is that it doesn't protect you from such
blunders. My chain saw expects me to know not to run it while the chain is
directed at my own leg. If I put a guard on the chain, it would make the
tool REALLY hard to use.
Currently I just force quit textMate and start over. I just wonder if there
is a better way.
Have a great day.
--
Brad Tittle
I'm constrained to use Subversion 1.6.x, and this breaks the
Subversion bundle I have. I did try checking out the current bundle
into /Library/Application\ Support/TextMate/Bundles, but that seems
not to have helped.
Is there any relief for this? Either a new bundle or some Subversion
properties I can set?
I searched the Nabble archive for this list, and looked back a few
months, but found nothing relevant.
— F
Attached are two services written to take advantage of Snow Leopard's
context menu/automator integration.
TxtToTM sends text selected in any application and opens a new TextMate
window with that text inserted. There is a rudimentary heuristic set up to
check if the text is Javascript/HTML/CSS/Applescript and set the textmate
bundle type accordingly. This is implemented through an Applescript in
Automator. So this can be extended/improved/hacked by the many textmate
users who are, no doubt, more proficient in Applescript than me.
Edit in Textmate will open any file or folder selected in Finder in
Textmate. Folders open to Projects.
These services show up when contextually appropriate (i.e. when you have
text selected it will be in your right click menu).
To install unzip, and put the two files in ~/Library/Services. You may need
to go to System Preferences/Keyboard/Services and make sure the box next to
each of them is checked for them to show up in your context menu.
These are written using Automator's new Create Service function in Snow
Leopard, so are 64 bit compatible. I have no idea if they would work in
10.5.
Hi all,
Is anyone else getting r1509 from the automatic updater (set to "minor
updates"), but seeing 1510 on macromates.com?
And it's not just a typo in the site, the build there really does have
a revision number of 1510, but its changelog only shows to 1509.
Slightly confused,
-NK
I have setup textmate as the default editor in terminal.
so, when I type 'hg commit' it opens textmate. I enter the message on the
first line after the headers and hit save and close textmate and nothing
happens. What am I doing wrong?
--
View this message in context: http://www.nabble.com/Textmate-and-Mecurial-tp25216773p25216773.html
Sent from the textmate users mailing list archive at Nabble.com.
If I have for example this code:
function foo() {
var list = [];
}
Note there is 4 spaces indention.
I work in 5 spaces soft tabs.
If I move the cursor to just before the "v" in "var", and left arrow,
I move to the left one space. Somehow, I need to reformat this code
to be 5 spaces. Then when I move the arrow to the left, it moves 5
spaces, or one apparent tab stop.
I have tried selecting the code, while I have my tabs set to 5, hard
or soft, using reformat selection, in this case, in the JavaScript
bundle area, or, convert spaces to tabs. Neither gets me where I need
to be.
I end up re-tabbing all the code, which is a tedious process.
I I just add one space, or select the 4 spaces and replace with a tab,
I get the functionality I want:
function foo() {
var list = [];
}
That example, the space before the "v" becomes a tab, either hard or
soft.
Thanks.
--
Scott * If you contact me off list replace talklists@ with scott@ *
Hello,
Thanks for posting how to fix all the other issues with Snow Leopard,
but I haven't seen anything about master files in Latex mode.
So, I have my latex file split up in several files and on top of each
separate file I have;
!TEX root = [...]thesis.tex
And under Snow leopard, textmate seems to be ignoring that line (i.e.
compiling with or without that line gives me the same error)
Any idea about this issue?
Thanks again,
Jerome
I spent yesterday watching a handful of screencasts for learning
jquery. I was shown perhaps 5 or more editors, and started to see
value in workflows I am not able to replicate.
I'm sure I'm just missing some prefs, pointers appreciated.
Vertical grid on tab stops. How do I turn this on? Seeing where a
statement begins and then closes at a glance is very powerful. In
jquery with all the parens and brackets, this visual alignment would
help a lot.
I think this may not be possible. I figured I could get by with show
invisibles. I'm not seeing tabs or spaces, just returns. I would also
want to set returns and spaces to the same bg color to hide them. Too
much noise.
I tried multiple themes, I can not get invisibles to show other than
returns, which I don't need to see anyway.
Code reformatting. If I take any small chunk of jquery, select it,
navigate to the bundle for JavaScript and tell it to reformat the
code, it more or less reformats to a few lines. What am I doing wrong?
Indenting. If sample code is copied in with say, 1 or 2 spaces used as
indents, and I like to use 5 soft tabs, I'm finding no way to adjust
that code to my tab stops. I end up retabbing it by hand.
Next up would be where the open or close brace or paren is thought to
be. I see I can get a blink on some parens but not others.
What are the rules that define this blinking and can it be expanded?
Also, the blinking is not quite enough for me. Having the actual open
and close characters actively highlighted when your cursor is to the
left or right, massively helpful to me.
Current word highlighting. If a variable, class, method etc are
clicked on, how can I get all occurances of that word also highlighted.
Projects. I don't often get a chance to clone down an entire site and
work locally. Is it correct there is no way to get a remote FTP based
site to remember code folding or work in a project?
I would be happy to figure out how to drag a window into a tab from a
remote site, that would go a long ways.
I don't always get ssh access, and I'm sure some will suggest
expandrive. To be honest, I've tried it. There are too many reports of
it failing on FTP to even list a directory. I worry it may delete
remote files. I worked a little with the expandrive people, giving
them access to an FTP server that matched the issues many others were
reporting, currently still seeing broken behavior.
I'm a little stubborn in that if I'm going to use a tool, I would want
to use it everywhere, not just on ssh connections. Jumping from one
toolset to another tends to take my brain too long to shift back into
being productive.
Saving. Is there a way to get save to have the entire filename
selected? The trailing .html is something I'm always having to trim
off. Usually I just command-A then start typing. Looking to save a step.
Is there a way to select the current line only up to the first and
last characters?like select word, but for a line.
Is there a way to tell a line to best guess the correct indent level,
and shove it in place?
I have a feeling some of these issues have solutions and I just don't
know where to look. Others i suspect I may be stuck on. Looking for
any old hats that have been down this road before.
Thanks. As a side note, watching some of these screencasts, I can
certainly say, TM's features certainly should be adopted by other
editors, I don't know how some people get by.
If I had to put two items on a list, vertical tab grid lines and
remote conection meta data saved would be pretty high up there.
Thanks everyone.
--
Scott
Iphone says hello.
Hi, I'm newbie with Textmate, but I like it very much :) very nice editor...
but I could not find ine very helpful for me thing..
When I click (or select) some user function name (PHP), I want to see
source it (i.e. defenition) How I could get it ? especially when declaration
of this function in separate file..
Thanks.
--
View this message in context: http://www.nabble.com/Go-to-defenition..-tp25151144p25151144.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I install snow leopard (update) but now I can't compile LaTeX document
with textMate
I get :
Could not open to check for packages
This is most likely a problem with TM_LATEX_MASTER
After installing snow, the symbolic link /usr/texbin is destroyed
so
cd /usr
sudo ln -s ../Library/TeX/Distributions/.DefaultTeX/Contents/Programs/
i386 texbin
Upgrading to Snow Leopard also remove /usr/texbin from my default PATH.
I create a text file named TeX with contents
/usr/texbin
and then I move this file to /etc/paths.d. I give this file read-write
permission for everyone
Well now I can compile with TexShop and from the terminal but not
with textmate
I read some tickets on the net and after that, I rename
tm_interactive_input.dylib in textmate.app and in the pristine copy,
now I can compile
but I would like to know if this solution is correct?
Best Regards
Alain Matthes