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