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
I am looking for a way to highlight all the occurrences of the text I have
currently selected, or which is in the search buffer (trough command-e). Is
this possible with TextMate, or with a bundle?
(I could do a search and go through the occurrences with command-g, but when
you have a number of occurrences just visible on the screen, it is often
often more convenient to just have all of them highlighted, rather than
having to repeatedly hit command-g.)
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/Highlight-all-occurrences-of-selection-tp25140566p251…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I am having the same problem as Hooman...i'm no longer able to fetch posts
with the Blogging Bundle and I get the exact same error as him saying
something about times.
As Allan suggested, I enabled server logging. I did another Fetch Post, got
the same error, and now this is in the log (I **,d out my pswd and modified
my username). This means nothing to me...any help?
2009-08-25 23:50:02 Input: <?xml version="1.0"
?><methodCall><methodName>metaWeblog.getRecentPosts</methodName><params><param><value><string>0</string></value></param><param><value><string>kelle</string></value></param><param><value><string>**pswd**</string></value></param><param><value><i4>20</i4></value></param></params></methodCall>
thanks!
kelle
Hi all,
The latest minor update seems to have introduced a strange behavior.
When moving the cursor pass the end of a line, TextMate now pretends
that the line is full of an infinite number of spaces, instead of
moving to the next line. Same happens when clicking with the mouse.
Let's just say that after spending 20 years editing texts in editors
with the "good old" behavior, I'm quite annoyed that the new behavior
is imposed on me and that there's no option to turn it off.
Could anybody confirm that this is an intended feature of TextMate and
that there's no way to disable it?
Jasmin
Whenever I try to Typesetting the LateX file, which compiled properly
using command line or using TextMate on 10.5, I got the error message
"Could not open to check for packages
This is most likely a problem with
TM_LATEX_MASTER"
I am sure this is not a problem with the TM_LATEX_MASTER". First I am
trying to typeset a single file rather than a project. Second with
nothing changed, this file typeset perfectly on 10.5 with TextMate.
Does anyone have the same problem or can provide some clue for solution?
Hi all-
I'm working on a bundle for the J language, which has some unusual
features.
I wanted to know whether there's a way of altering what
TM_CURRENT_WORD's idea of "current word" is? I didn't have much luck
finding something in the manual or list concerning this. Particularly
if it can be redefined on a per scope basis. (I wouldn't want to make
global changes!)
I certainly can use TM_CURRENT_LINE and TM_LINE_INDEX, and examine
what's around the caret, but if there's a more elegant way, I'd love
to know about it.
Thanks!
Charles Turner
I am using Textmate with some macro functions to create a CSV file. Sadly I
have to do it manually cos the original file had no kind of persistent
pattern to define a structure.
Each like has 2 values separated by commas.
Each record is separated by a series of dots "."
So for example
.......................................................................
This is value 1,"This is value 2
More of value2
More of value2"
........................................................................
I would like to see "This is value 1" in one color and the rest of the
string including the quotes in the following lines in another color.
I am trying to make sense of the rules/language grammar in textmate. What
language is it?
Any help would be greatly appreciated.
--
View this message in context: http://www.nabble.com/Trying-to-figure-how-to-color-code-a-text-file-tp2508…
Sent from the textmate users mailing list archive at Nabble.com.
Here's a suggestion I'm sure will never see the light of day, but one
I would love to see -- rendered source code comments.
Basically, I would like to have the option of adding commentary to my
code in whatever text-based format works best for the type of comment
I'm making (latex, markdown, rdoc, dot, etc.), and have those comments
rendered in-line, hiding the original text behind the rendered view.
The editor could have a hotkey to toggle between rendered comments and
regular text comments. Some kind of 'meta'-markup could be used in
the comment to indicate to the editor how a particular block should be
rendered.
This is a lot like Knuth's literate programming concept, only less
invasive to your coding process and without requiring you to compile
your file to see the formatted commentary.
Imagine, you could have beautifully rendered diagrams, equations, and
discourse right in your source file.
Comments?
Hello everyone,
When working with the latex bundle on textmate, (specifically the New Item command which I bound to enter), it works fine when working on itemize and description environments (adding \item and \item[] respectively), but it also adds \item when working on other environments such as eqnarray.. Any reason for it to behave this way? And anyone knows how I can fix that?
Thank you.
Hiding in Plain site is the textMate Bundle.
Create HTML From Document......
for those of you who like to see a print out of your code. More important
for those of us trying to figure out what the last guy did.
--
Brad Tittle
Tech Support
I'm trying to set up a code folding rule that will let me fold sections
of CSS files I work on. I usually define sections in my code like this:
/* Section_Start <section name> */
...
/* Section_End <section name */
I've got the Pragmatic book, and I've looked at the included bundles,
but I can't figure out a working solution...anybody got some pointers on
how to accomplish this?
Keith
--
Keith Solomon - ksolomon(a)gmail.com
My Blog - http://reciprocity.be/
My Flickr - http://www.flickr.com/photos/zarath0s/
El 21/08/2009, a las 3:14, textmate-request(a)lists.macromates.com
escribió:
> On Aug 20, 2009, at 6:37 PM, Juan Falgueras wrote:
>
>> desperate looking for a way of a more relaxed way of searching a
>> string inside another, we need not to take into the account not only
>> the case
>>
>> s = "Abc"
>> if s =~ /abc/i then
>> ?
>>
>> but also if you have forgotten an accent, etc:
>>
>> s = "?Bc"
>> if s =~ /abc/i then
>> ?also should match!
>>
>> Changing the encoding to the simplest one: ASCII, does not work
>> since
>> iconv, nor ruby force_encoding() work and gives you errors in case
>> you
>> try to convert "?" to "a"
>
> This might be one option for you:
>
> $ irb -KU -r iconv
>>> s = "?Bc"
> => "?Bc"
>>> Iconv.conv("ASCII//TRANSLIT//IGNORE", "UTF-8",
> s).downcase.delete("^a-z") =~ /abc/
> => 0
>
> I hope that helps.
>
> James Edward Gray II
Thanks James!
I have narrowed the chars you should delete after transliteration. If
you try with the ~full range of accented latin chars
require "iconv"
ss=
"ÀÁÂÃÄÅĀĄĂÆÇĆČĊĎĐÈÉÊËĒĘĚĔĖĜĞĠĢĤĦÌÍÎÏĪĨĬĮİIJĴĶŁĽĹĻĿÑŃŇŅŊÒÓÔÕÖØŌŐŎŒŔŘŖŚŠŞŜȘŤŢŦȚÙÚÛÜŪŮŰŬŨŲŴÝŶŸŹŽŻàáâãäåāąăæçćĉċďđèéêëēęěĕėƒĝğġģĥħìíîïīĩĭįıijĵķĸłľĺļŀñńňņʼnòóôõöøōőŏœŕřŗśšşŝșťţŧțùúûüūůűŭũųŵÿŷžżźþßſÐð
"
# you can see a small set of chars that are used to transliterate: "'~^`
puts Iconv.conv("ASCII//TRANSLIT//IGNORE", "UTF-8",
ss).delete(%q{"'~^`})
This is a less aggressive way of patching this annoying behaviour of
transliterate. I would like to see new //CLEANDROP or so, to simply
drop out those accents to work with the chars. Or simply a regexp
search with a modifier that could make it just to ignore accents…
- juan
I'm trying out Subversion, and the associated TextMate bundle, for the
first time. Choosing "Checkout..." from the bundle menu gives me a
dialog box with the prefix "svn+ssh://" AFAIK my Subversion
implementation doesn't support that protocol, so I've replaced that
with "http://" and the appropriate url.
In response, TextMate gives me a status report with correct
authentication realm but that lists my Mac account name
("jonippolito") rather than my Subversion login on the remote server
("jon"). The report ends with these errors:
Username: svn: PROPFIND request failed on [my subdirectory]
svn: PROPFIND of [my subdirectory]: authorization failed [my remote
url].
The file [my local url] does not exist.
I don't see where I can change my username or password as recognized
by the Subversion bundle. Any advice appreciated!
jon
/RR (http://responserequested.com)
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
Dear Textmate users,
The auto-completion of bibtex entries (alt-escape) works very nicely,
but often when I am editing it would be useful to display what a given
label points to.
I would like to be able to put the cursor on a bibtex entry, hit a key
and have the bibliographic entry pop up in a tool-tip.
Is that possible? And if so, how?
Best wishes,
Nicholas
TextMate has a "Find in Project", but as my project contains a lot of files,
I often want to search in a subset of those files: specifically the files
contained in a given directory, and this recursively. What is the best and
simplest way to do this with TextMate?
(The best solution I found so far consists in creating a new project, adding
the directory from which I want to do the search, and running a "Find in
Project" in that new project. But I have to say that this is quite clunky.)
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/Find-in-path-%28subset-of-Find-in-Project%29-tp250501…
Sent from the textmate users mailing list archive at Nabble.com.
Hi
desperate looking for a way of a more relaxed way of searching a
string inside another, we need not to take into the account not only
the case
s = "Abc"
if s =~ /abc/i then
…
but also if you have forgotten an accent, etc:
s = "áBc"
if s =~ /abc/i then
…also should match!
Changing the encoding to the simplest one: ASCII, does not work since
iconv, nor ruby force_encoding() work and gives you errors in case you
try to convert "á" to "a"
MacOS does the work but it is not the appropriate way here…
Any help will be welcome.
- juanfc
Hello List,
I have a problem with the "Typesetiing & View" Feature on SL. Typeset
& View generates following output:
>Typesetting “test.tex”…
>
>Theme:
>/tmp/temp_textmate.NwPD9X:26:in `exit': no implicit conversion from nil to integer (TypeError) from /tmp/temp_textmate.NwPD9X:26
System:
MacBook
Clean SL Install
TextMate 1505
MacTex2008
Somebody else with this problem?
Kind Regards
S. Arns
Hello.
I'm making a small bundle for my own flyweight markup language and i
run in to a little problem.
Commands that takes the entire document as input acts strange. To be
more precice it's when I make a column selection, write something, and
then run the command. The command seems to run as many times as the
number of rows selected.
Is there a simple way to avoid this, for example make the command to
deselect all before it runs? The command is written in php.
Björn Jadelius
Hello everyone. I want to be able to highlight a word in TextMate and do a
Google search for it (primarily for looking up Rails API docs).
It seems to me that this feature is already implemented, but is not working
for me. In Hyperlink Helper, I see the Yahoo searches and the one for
"Lookup Selection on Google and Link". However, when I try this, I get:
"(this language is not supported, see … for more info)"
...replacing the highlighted text. (This is in a Ruby file if it makes a
difference).
Is there some way I can fix this?
Thanks,
Craig
Some of you may remember back in the mainframe days XEdit. One cool
feature of XEdit was you could type all <pattern> and only those lines
matching the pattern would be displayed. You could edit within this
view.
It seems like something similar could be done in TextMate by using
folds. I've tried to do it with a macro using find and bookmarks, but
I don' seem to have enough control to select text between matches so I
can send the Fold Selection.
I'm aware of Text->Filtering->Copy Matching Lines, but this creates a
new window and any edits in that window aren't felt back in the
original.
Anybody have an idea on how to do something like this?
Eric
My coworkers have finally dragged me, kicking and screaming, out of
vim and into TextMate.
And honestly, TextMate is great.
But one missing feature is driving me up the wall:
"slot-$name-$permid"
Shows up as a single color. There is no highlighting to call out the
interpolated variables.
Some people bash this approach, but I think this is a very useful
technique for composing things like HTML IDs and class names on the
fly as long as you make responsible use of it, and with a bytecode
cache there is no performance price for using it on the PHP side (if
there ever was... it's really not that hard for PHP to parse a string
literal).
Is there a way to enable this? Do I need a third-party bundle to do
it? I've begun to poke around in the PHP bundle, and I see references
to interpolation here and there, but it doesn't seem to do anything.
Thanks!
--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.comwindow.punkave.com
Hey there,
I'm having trouble getting the line end/line begin keyboard shortcuts to
work with Textmate in Snow Leopard (works in other apps like Word).
That's command + leftarrow and command + rightarrow.
Anyone else have this issue?
- Andrew
--
View this message in context: http://www.nabble.com/Snow-Leopard%3A-command-%2B-leftarrow-rightarrow-bust…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
I'm using TextMate on Leopart to use Latex. I've installed the full Latex
package for Mac.
When I try to typeset & view a document I get the error: "env: ruby: Not a
directory".
In the preferences, the Shell Variables are:
TM_LATEX_VIEWER -> TeXinscope
PATH -> /usr/texbin/kpsewhi (I've checked it exist on this path)
Do you know what could I do?
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.
I just installed Python3.1 using the .dmg from http://www.python.org/download/mac/
.
When TextMatre runs a program from the python bundle I get no output
or error messages except "Program exited with code #1 after 0.01
seconds." There are no syntax errors and I can use the Run Script
(terminal) option to get expected output.
How use the Run Script option in the Python Bundle? Why has output
gone away? TextMate is so much better than IDLE
Much thanks in advance!
Don Fox
For personal use, I use PrinceXML to generate PDFs from MMD files that
have a CSS file in their header. I'd really like to learn to use LaTeX
one day, when I have the time, but until then I get reasonable output
for my needs. (Any of my texts that get published go through some
publishing workflow in the first place, which obviates any necessity
on my part to "type set" them.)
john
--
John Laudun
Department of English
University of Louisiana – Lafayette
Lafayette, LA 70504-4691
337-482-5493
laudun(a)louisiana.edu
http://johnlaudun.org/
ResearcherID: A-5742-2009
Twitter/Facebook/Flickr: johnlaudun
help
i assume that text mate does have a built in updater that runs behind the
scenes. i have searched and cannot find a manual way to check for an update,
is there a way to check manually ?. current version on this machine is,
1.5.8 (1498)
copied from console,
2009-08-13 09:23:14.056 TextMate[5229] Error checking for new version: no
Internet connection
2009-08-13 09:23:14.056 TextMate[5229] Will try again in one hour
also, is there a way to see what the current available version to the public
is.
thank you
The proposed solution did not work as hoped for.
TtH operates like other standard "TeX programs (e.g. pdfLaTeX). It
reads a foo.tex input file and produces a foo.html output. The goal
is to then preview the foo.html output file. Hence I wish to view
pdfLaTeX output using Skim while I wish to view TtH output using
TexMate's standard HTML viewing facility.
Can someone suggest the appropriate code to do this.
Michael Goldweber
Hi,
I have the trial of textmate and I'm trying to generate PDF from a simple
markdown document.
I installed htmldoc from here:
http://www.brothersoft.com/htmldoc-for-mac-download-200361.html
I have all bundled synched against svn.
When I try to generate the PDF from markdown, I get:
ERROR: Unable to install license: Bad license characterPlease enter your
license key of the form AB34-AB34-AB34-AB34: The file /tmp/untitled.pdf does
not exist.
How can I fix this?
Thanks,
David
David Watson
davidthewatson(a)gmail.com
http://davidwatson.org/
I think the confusion is that both the Markdown (MD) and MultiMarkdown
(MMD) bundles have a convert to PDF command. The MD bundle uses
HTMLDOC to do the conversion whilst MMD uses LaTeX. I am not sure
exactly what the commands are called in the respective bundles as I
have changed both to suit my preferences. I would suggest that if you
want to use any of the MMD functionality that you delete the MMD
commands (and language) in the MD bundle and install the MMD bundle.
Here is a question with regard to the LaTeX bundle:
I wish to use both pdfLaTeX as well as TtH (a latex to HTML
converter). With pdfLaTeX, I have used TextMate as the previewer, but
have recently discovered Skim and the synctex (along with the
watching) facility. Hence in the LaTeX bundle preferences menu I have
selected Skim.
For TtH, I hacked up an very old version of the LaTeX current file
script to invoke TtH (attached below). The trouble is this script
requires TextMate as the "previewer."
What I don't want is to have to continually switch my preferences back
and forth since I might both LaTeX a document in addition to TtH'ing
it for posting on the Web.
In a perfect world, I would like the LaTeX bundle to have native
support for using TtH. In the absence of that, could someone suggest
edit changes to the hacked script I have, or better yet, provide an
improved version.
Michael Goldweber
If you place the cursor on a variable in NetBeans (at least in Ruby
code) it highlights all instances of that variable. This is a feature
I like very much.
Does TextMate or some bundle have a similar feature?
I have also asked this question on StackOverflow. If anyone wants to
get some points there:
http://stackoverflow.com/questions/1259604/how-to-highlight-all-instances-o…
Best regards,
-Markus-
Hi there,
does anyone uses succesfully Textmate with JRuby. Setting TM_RUBY =
<JRUBY_HOME>/bin/jruby seems to fail in my case. Hitting cmd-r prints:
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/process.rb:99:in
`run': JRuby only supports F_SETFL and F_GETFL with NONBLOCK for
fcntl/ioctl (NotImplementedError) from
/Applications/TextMate.app/Contents/SharedSupport/Support/lib/tm/executor.rb:84:in
`run' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:65
Regards,
Johannes
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser
Hi all, this is my first post to the mailing list. I'm having a problem with
my templates. It looks like CocoaDialog is acting up, I'm not sure - for
certain CocoaDialog results I get an error message as the result, with the
text "QT call results in 0". Specifically this happens in the Actionscript
3.tmbundle's Project template. I'm not sure if it happens in other project
templates, but it is effectively keeping me from creating new projects by
placing my new project inside the tmbundle and giving everything the wrong
name [like "QT call results in 0-config.xml", etc.]. Anyone know what's up?
Thanks!
--
Schell Scivally
efsubenovex(a)gmail.com
http://blog.efnx.com
>
>
> On 7 Aug 2009, at 22:17, brad tittle wrote:
>
> > When I click on textMate and drag a line that has already been
> > selected down
> > a line, it does not change the focus to textMate.
>
> This is by design. Generally click-to-drag has the purpose of dropping
> the dragged text in your currently active application and hence should
> not change focus.
>
> You should find this behavior in most other apps.
I am not complaining. I figured out what was going on and will adapt
accordingly. I haven't managed to find this behavior in any apple
application yet. I can't say have haved tried everything by any means, but
Pages, Numbers, and Neo Office focus themselves when I attempt to drag
anything.
I have to disagree slightly with your premise though. If you click in an
application to drag something and then drop it in another application the
focus should change according to the drop location. Whichever app received
the drop should probably get focus. I can see times where this might not be
preferable. If the drop is within the same application (in this case I
dragged from textMate to textMate), the drop location is textMate and should
make textMate the focus. I am having difficulty envisioning a time when
dragging something in one application should result in the previously
focussed app keeping focus unless that app receives the drop OR the drop
results in a message to the focussed app (which at this time is NOT the app
that is being manipulated).
As I said in my first post, I was doing it the backward way anyway.
I suspect that most people using textMate are keyboard maniacs and wouldn't
resort to something as crude as a mouse drag (especially doing the extremely
crude 1984 type debugging that I was doing -- resorting to log statements
followed by DIE to find out how I had managed to cut my own throat, which I
had.)
Have a great day. I love textMate. I can't get my boss to understand why
textMate is better than DreamWeaver (but that is his problem and not yours,
and results from his graphics background).
Hallo Guys,
I am making experience with TextMate, I like it very much, but I have
found a couple of problems with code validation and php colors. I'll
try to explain:
If I am coding a php page and I add an instruction like:
$result = mysqli_query($db, "SELECT LOWER(REPLACE(REPLACE(field_name,'
','-'),'\'','-')) AS test FROM test_tb");
the code above this line will be marked all of the same color and
errors are showed by TextMate... but there are not errors, the problem
here seems to be with the filter '\'' that TextMate detects like a
missing ' char.
Anybody knows how to fix such situation?
Further more I often use php HERE DOCUMENT feature so if I type
something like:
$test = <<<TEST
this should be normal html code and I would like to have it coloured
like html text and tags.
But this not happens in textmate.
TEST;
Is there any way to have it coloured like html code while inside there?
thanks!
--
yours
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=9391&d=9-8
I have recently moved my work on adding MultiMarkdown support to github.
I forked the original Markdown bundle on github, and the rewrote my
changes for improved MultiMarkdown support. My project can be found:
<http://github.com/fletcher/markdown.tmbundle/tree/master>
I thought by keeping the ".tmbundle" part of the name that it would be
picked up automatically by GetBundles, but a month or more later, that
is clearly not the case.
What am I doing wrong?
Thanks!
Fletcher Penney
--
Fletcher T. Penney
fletcher(a)fletcherpenney.net
Today I will gladly share my experience and advice, for
there are no sweeter words than "I told you so."
When I click on textMate and drag a line that has already been selected down
a line, it does not change the focus to textMate.
I drag the line, hit Command-S (save) and the save panel for Safari (the
application I was in, descends).
If I then click on textMate focus changes and I save.
If I consciously click on the selection after dragging, it also works.
If I were clever and used Command-Tab (to change apps), control-command
down-arrow (to move the line down), Command-R (to refresh running
browser), this wouldn't happen, but I acted like a damn user and did things
the wrong way. Just a heads up.
--
Brad Tittle
Tech Support
Hello list,
Usually lists (enumerate, itemize, etc.) are indented as follows:
\begin{enumerate}
\item A very long item which wraps to the next line.
Next line starts from the column 1.
\item Another item.
\end{enumerate}
Is there a way to make the indentation continue on the second and
third, etc. line of the \item? Something like this:
\begin{enumerate}
\item A very long item which wraps to the next line.
Next line starts from the column 1. The second line has slightly
more indentation
than the first line.
\item Another item.
\end{enumerate}
I remember this was happening automatically with Vim-LaTeX, but I
haven't worked with it for a long time.
Best,
Hooman Javidnia
Just for the record, I'm running Wordpress 2.83 and just posted my
first entry from Textmate this morning. Worked like a charm for me.
I'm using the Ruby that came with OS X:
$ which ruby
/usr/bin/ruby
$ ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
> From: Daniel Miessler <daniel(a)danielmiessler.com>
> To: textmate(a)lists.macromates.com
> Date: Sat, 1 Aug 2009 21:31:19 -0400
> Subject: [TxMt] Blogging Bundle WordPress Post Timeout
> Greetings List,
>
> I have been using the Blogging Bundle to post to WordPress for quite
> some time, but about two months ago I started getting an error when
> posting.
>
> None of my settings for my blog have changed, but I've upgraded my
> WordPress version in that time frame. The time of the error beginning
> might coincide with my upgrade to WordPress 2.8.x, but I'm not sure of
> that.
>
> Anyway, here's the error I'm getting:
>
> http://danielmiessler.com/images/tmerror.png
>
> This is clearly a timeout issue, but the interesting part is that the
> blog posts *ARE* making it to the blog--but I'm not getting the quick
> response and then the invokation of Safari to view the just-posted
> content like usual. Also, if I make changes to a post now it'll post
> as a duplicate instead of updating the one that's already there.
>
> I've tried the following things:
>
> * disabling pings on individual posts
> * disabling the ping notification services within WordPress
>
> ...with no luck.
>
> Anyone have any idea what could be going wrong here?
>
> Thanks in advance...
>
> --
> Daniel R. Miessler
> W: http://danielmiessler.com
> E: daniel(a)danielmiessler.com
> T: 510 585 9143
> P: 0x4048712D
>
>
>
> ---------- Forwarded message ----------
> From: Hooman Javidnia <hooman.javidnia(a)gmail.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Sun, 2 Aug 2009 00:48:11 -0400
> Subject: [TxMt] Re: Blogging Bundle WordPress Post Timeout
> Hello Daniel,
> I have a similar problem with blogging bundle, although it is not exactly the same and like you I think it has started to happen since I upgraded to WordPress 2.8.2. The error message that I get as a tooltip can be seen here:
> http://javidnia.org/images/TM_Blogging_Error.png
> I have no idea how ruby works, but what I found out from google search is that WordPress API provides some information that is not consistent with what the installed version of Ruby on Mac OS X Leopard expects to see. The only thing that came to my mind was to upgrade Ruby on Leopard, but I was very busy and I didn't get the chance to try it.
> I hope that other people with intimate knowledge of WordPress and Ruby can suggest a solution to this problem.
> Regards,
> Hooman
>
I'd like to make my CSS bundle compatible with {less}
{less} : http://lesscss.org/
mCSS bundle: http://minimaldesign.net/downloads/tools/textmate-css-bundle
For a start, I'd like to add a command to generate the CSS file to a
location specified by an environment variable in TM prefs. Shouldn't
be too hard... But language definition and syntax highlighting is more
than I can handle myself... I looked at the CSS one as a reference and
my regex skills are not up to snuff I guess...
I was wondering if someone on here would like to help with that...
Ideally I'd like to add extra syntax highlighting onto the default CSS
bundle if that's possible, instead of creating a whole new one, since
{less} uses almost exclusively CSS syntax but with the additions of
nested selectors, variables, etc (check out the link above to see all
the features).
Anyway, if anyone's interested, contact me directly (contact info on
my site: http://minimaldesign.net ). Off course I'll give you credit
for whatever you do.
I also put the CSS bundle on Github if that's any help:
http://github.com/minimaldesign
Thanks!
On Aug 2, 2009, at 8:00 AM, textmate-request(a)lists.macromates.com wrote:
> It's been pretty much removed at this point in favor of a custom
> dialog tool that now ships with TextMate.
That sounds great, James.
I'm still running TM 1.5.8 (1489), though I recall in your book on
TextMate (my primary summer reading!) you recommend opting for
"Cutting Edge" software updates. Is that how I would find the new
tool? If not, where else would I locate it?
jon
/RR (http://responserequested.com)
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
Greetings List,
I have been using the Blogging Bundle to post to WordPress for quite
some time, but about two months ago I started getting an error when
posting.
None of my settings for my blog have changed, but I've upgraded my
WordPress version in that time frame. The time of the error beginning
might coincide with my upgrade to WordPress 2.8.x, but I'm not sure of
that.
Anyway, here's the error I'm getting:
http://danielmiessler.com/images/tmerror.png
This is clearly a timeout issue, but the interesting part is that the
blog posts *ARE* making it to the blog--but I'm not getting the quick
response and then the invokation of Safari to view the just-posted
content like usual. Also, if I make changes to a post now it'll post
as a duplicate instead of updating the one that's already there.
I've tried the following things:
* disabling pings on individual posts
* disabling the ping notification services within WordPress
...with no luck.
Anyone have any idea what could be going wrong here?
Thanks in advance...
--
Daniel R. Miessler
W: http://danielmiessler.com
E: daniel(a)danielmiessler.com
T: 510 585 9143
P: 0x4048712D
CocoaDialog sounds like something worth playing with, but I recall
reading somewhere that its use in TextMate is or will soon be
deprecated.
While acknowledging that there's no set timetable for TM2, does anyone
have a sense of what CocoaDialog's lifespan for TextMate may be, and
whether there's any news of a potential replacement?
Thanks!
jon
/RR (http://responserequested.com)
______________________________
Still Water--what networks need to thrive.
http://still-water.net/
A few people asked me before so... just a quick note to let you guys know
that my bundles are now available on github:
http://github.com/minimaldesign
Thanks!
Say I have this snippet:
${1:function}(${2:param1}, ${3:param2})
using tab trigger: pairfun
(so this theoretical snippet writes the code to call a two argument
function)
So I type "pairfun" and hit tab. type a function name. Hit tab. Now I
want to fill my first parameter with the output of a snippet. If I want
to use a tab trigger here, it won't invoke the snippet, but instead tabs
to the second function parameter in the current snippet.
Is it possible to use another key combination to invoke a second tab
trigger within a snippet? My current workaround is to finish tabbing
through and then come back to fill in the parameter.
Apologies if I am asking in the wrong place.
When I plug in my laptop to my network, it appears in the finder as an
available shared device. The finder obviously gets notice that a new device
is available. Anyone know how to capture that particular message?
I would like to automount the disk
from the work computer (and also from the Home computer), but I would
rather be responding to an event rather than just running the script
every 5 minutes as a cron job.
The cron job might actually be the way to go....
--
Brad Tittle
Tech Support
I get an occasional email attachment that shows up with a begin 644
and a bunch of characters. I tried to run it through the uudecode and
get the following message:
uudecode: \n\tinput file: stdin\n\tencoded file:
IntCollect.txt-072709.txt\n\tcharacter out of range: [33-96]
Can someone help. Can I use texmate to fix files like this?
Hello, everyone
I am new to Textmate and all the snippets stuff, but I am recently
working on a Mediawiki file which uses the mediawiki bundle, and I made
some new snippets such as inserting images to the page, is there anyway
I can submit it to the svn? So everyone else can use it?
Cheers
Allen
After a year and half of development and testing and some hints to the world
at large now and then, I've finally decided to release RubyFrontier into the
wild.
RubyFrontier is a TextMate bundle. It implements a Web site framework
basically modelled after the UserLand Frontier Web site framework, written
in Ruby. In other words, it's a tool for writing and maintaining Web sites.
Documentation and description here:
http://www.apeth.com/RubyFrontierDocs/default.html
Incredibly great new screencast here (rather long, take it in stages or at
least have a coffee machine sitting next to you the whole time):
http://www.apeth.com/rubyFrontier.mov
The download:
http://sourceforge.net/projects/rubyfrontier/
Share and enjoy. Tell a friend (if you have one). m.
PS I don't want to make a big sentimental thing of this, but just for the
record, this would have been *totally* impossible without TextMate. I was
completely up a creek about how to migrate out of Frontier until I realized
that TextMate would handle the whole interface for me.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
Hi all,
has anyone had problems with specifying the master file in compiling Sweave
documents?
I've set the TM_SWEAVE_MASTER variable in the given Textmate project (also
tried with TM_LATEX_MASTER) but it wouldn't compile from the master file
when I run "Sweave, Typeset and View" from another Sweave file in the
project.
Thanks for any hint,
Stephane
> On 2/1/09 1:08 PM, in article A6DF15FC-7FE8-4C82-92CF-
> F9AFE6EA9BCF@...,
> "Gert van Oss" <gertmt@...> wrote:
>
> > Last week I read an article re. where a bundle 'RubyFrontier' was
> .......
> > confirm that it is not available yet.
>
> See me after class. :) m.
great an opportunity for me to learn Ruby and built sites in a
structured way!
Thanks a lot for the in-depth introduction via the screencast.
Gert
On Jul 22, 2009, at 8:00 AM, Allan Odgaard wrote:
> While recording the macro press ?F and enter the text, then click the
> find action you want (next). This saves a search for the given string
> (and options) in the macro, as opposed to just a ?find next? which
> you?d get, had you only used ?G.
Thanks, Allan, for identifying FindNext as the culprit. Works great now.
jon
Attempting to use the latest CVS bundle (checked out via git), I'm
finding that most of the CVS commands are not working in TextMate
v1.5.8 (1498). The History -> Log
and Revert commands worked, but others fail with errors like this
(from a diff attempt):
/Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:310:in
`to_plist': An object in the argument tree could not be converted
(ArgumentError)
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:310:in`block
in initialize'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:309:in`popen'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:309:in`initialize'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:20:in`new'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/ui.rb:20:in`dialog'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/progress.rb:42:in`call_with_progress'
from /Users/steve/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_diff.rb:13:in`diff_active_file'
from -:6:in `<main>'
or this (from a commit attempt):
/Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:212:in`eval':
wrong argument type Proc (expected Binding) (TypeError)
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:212:in`_capture_outer_self'
from /Users/steve/Applications/TextMate.app/Contents/SharedSupport/Support/lib/Builder.rb:145:in`method_missing'
from /Users/steve/Library/Application
Support/TextMate/Bundles/CVS.tmbundle/Support/cvs_commit.rb:19:in `'
Each failed command leaves an untitled, unclosable window in its wake.
Anyone else see this? Is there a place to submit bug reports for
bundles?
Thanks,
Steve
When I want to use the Markdown --> Headings --> Level 1 [setext] /
Level 2 [setext] commands, I get the error message
"/tmp/temp_textmate.qXjdGq:11: undefined method `rstrip' for
nil:NilClass (NoMethodError)".
Textmate is Version 1.5.8 (1505) on Leopard 10.5.7 with the stock ruby
1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0].
I updated Markdown.tmbundle to r11632 and Support to r11693 but it didn't help.
Any idea what is going wrong here?
The Code of the Headings Command is:
#!/usr/bin/env ruby -wKU
require 'jcode'
# Split document into lines. Get current line number minus one for
# previous, minus another for ruby being 0 based.
lines = STDIN.readlines
line = ENV['TM_LINE_NUMBER'].to_i - 2
# Get length of previous line, using jlength for unicode
length = lines[line].rstrip.jlength
# Print same number of =
length.times { print "=" }
Regards, Sebastian R.
I'm confused about how to record a macro using a pre-defined text
string *without* defaulting to whatever was last in my Find dialogue.
For example, for use after invoking Edit-in-TextMate for an email
reply, I recorded a trivial macro that searches for
"On dateblah Jane Rodriguez wrote:"
then captures the first name using something like this
^.+? (\w+) \w+ wrote:$
and finally plops this at the top of my reply:
"Hi Jane,"
(What can I say, I'm a lazy correspondent.)
I've tried setting the macro both to local and global clipboards, and
also editing the macro syntax (with which I'm not terribly familiar)
to something like this:
<plist version="1.0">
<dict>
<key>commands</key>
<array>
<dict>
<key>argument</key>
<string>wrote:</string>
<key>command</key>
<string>findNext:</string>
</dict>
...
Seems like this should be easy, but I'm stuck--any help appreciated.
jon
PS: thanks to Jay Soffian for solving my JavaScript-as-TextMate script
question!
The Ruby on Rails bundle has the Control-Pipe keyboard shortcut for the "Call
Generate Scripts" function.
How do I enter the shortcut on an Apple Wirelss Keyboard? The pipe symbol is
on Option-7 there but Control-Option-7 does not work.
Your help is greatly appreciated.
-Ralf
--
View this message in context: http://www.nabble.com/How-to-enter-Control-Pipe-with-Apple-Wireless-Keyboar…
Sent from the textmate users mailing list archive at Nabble.com.
I've update my Ant bundle to include macros in the symbol list, as we
use a few in our build process. If anybody is interested, a patch is
attached.
Adam
Has anyone tried the bundle repository recently? It seems to be down,
ping also times out. Not sure if this is specific to my network
environment.. Is there anyone who is seeing the same symptoms?
--
Sangwhan Moon
Hi,
The 'Cleanup Whitespace' command in the Python bundle is very useful but is
cleaning up some whitespace that causes errors when I check for compliance
with PEP8. In the following code:
class test(object):
pass
PEP requires that the second line has no spaces, whereas 'Cleanup
Whitespace' adds 4. Would it be easy to fix this to be compliant with PEP?
Thanks,
Tom
--
View this message in context: http://www.nabble.com/Python-bundle-and-%27Cleanup-Whitespace%27-tp24558866…
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
I was wondering if there's a neat shortcut in Textmate to jump to capital
letters in word directly. Say I wanted my caret to jump to "That" in
"VeryLongWordThatIWantToEdit" using something akin to Option+right arrow
Thanks,
Stephane
Makes perfect sense. Thanks you for the through explanation... "_if_
there is a bundle in the Pristine Copy folder" was the part of the
puzzle I was missing... Thanks again!
>>>> How do you guys do it?
>>>
>>> I keep the bundles I hack on completely in ~/.../TextMate/Bundles,
>>> and
>>> those I mainly just _use_ in ~/.../Pristine Copy/Bundles. That way,
>>> editing my own bundles in TextMate changes exactly the files I want
>>> to
>>> push out, while my changes to other bundles is kept outside of their
>>> source tree and won?t lead to merge conflicts.
>>>
>>> Going back to git, when you create a repository on GitHub it gets
>>> you
>>> to a page containing step by step instructions for getting your
>>> source
>>> tree or local repository into the new remote repository.
>>
>> I'm not asking help on how to create a git repo or using github etc.
>> That's fine... What I'm not clear about is how you manage the
>> workflow
>> so that you don't have to copy the bundles to a different place and
>> just make the bundles you're using within TextMate repos themselves.
>> Or if you shouldn't do that at all? How do you "keep the bundles I
>> hack on completely in ~/.../TextMate/Bundles"? Do you manually copy
>> from the pristin/ folder first? Because the ~/.../TextMate/Bundles
>> only contains the changes you've made to~/.../Pristine Copy/Bundles
>> right? So you can't just push that without including what in Pristine
>> too. Or am I over thinking this somehow?
>
> Ah, I see. Sorry I misunderstood you before :-)
>
> ~/.../TextMate/Bundles only contains the changes from ~/.../Pristine
> Copy/Bundles _if_ there is a bundle in the Pristine Copy folder.
> That?s the destination TextMate installs to when you double-click
> bundles in the Finder, but you can just as well place bundles directly
> in ~/.../TextMate/Bundles.
>
> To summarize:
> - Assuming you start with a ?clean slate?, i.e. there is no version of
> your bundle in either ?/Bundles or ?/Pristine Copy, and
> - assuming you have a complete current version of your bundle around
> somewhere _else_, you would
> - copy (recursively) the bundle into your ?/TextMate/Bundles folder,
> then
> - do any git/generic-scm/other setup hubbub you want.
> After making changes in the Bundle Editor, your bundle contents will
> be changed _in place_, and you can perform your favourite version of
> the commit/push dance.
>
> As for combining a bundle?s Pristine Copy and tmDeltas, I find the
> easiest way for that to be:
> Just drag the bundle out of the Bundle Editor and drop it onto your
> desktop; the dropped bundle will include all of the deltas you want.
>
> Hope that?s more helpful?
> Martin
So I was in IRC asking Allan about this earlier today, but he said it was
still working in Leopard and
I could look in the source for any Snow Leopard issues (I've been
developing off and on with SL).
Well, I'm back on my Leopard side and it's broken here too. I
reinstalled the InputManager and still a no-go. It beeps at me when I
try to use the command (but as in SL, the bundle IS loaded as I can
see the command is there.)
So is anyone else suffering from a break with the "Edit in TextMate"
InputManager? I'd figured I'd poll the group at large before I start mucking
around or write it off as a non-working hack at this point.
-- Jesse
>> I got a HTML + CSS bundles that a few people use and I've been asked
>> to put them on github... So I'm looking into how you do that.
>> Ideally,
>> I'd like to just edit my bundles in TextMate, and push the update to
>> github when I come up with new snippet improvement, command, bug fix,
>> etc... But that mean I need to combine both of those (using mCSS as
>> example) first right?:
>>
>> ~/Library/Application Support/TextMate/Pristine Copy/Bundles/
>> mCSS.tmbundle
>> ~/Library/Application Support/TextMate/Bundles/mCSS.tmbundle
>
> I can?t see how this is related to git; don?t you have to do that
> anyway when you make your bundle available anywhere?
It's not directly related to git. I was just giving a little bit of
context so that people can understand what I'm trying to do. Now I can
see how my email subject might not be optimum... sorry.
>
>> How do you guys do it?
>
> I keep the bundles I hack on completely in ~/.../TextMate/Bundles, and
> those I mainly just _use_ in ~/.../Pristine Copy/Bundles. That way,
> editing my own bundles in TextMate changes exactly the files I want to
> push out, while my changes to other bundles is kept outside of their
> source tree and won?t lead to merge conflicts.
>
> Going back to git, when you create a repository on GitHub it gets you
> to a page containing step by step instructions for getting your source
> tree or local repository into the new remote repository.
I'm not asking help on how to create a git repo or using github etc.
That's fine... What I'm not clear about is how you manage the workflow
so that you don't have to copy the bundles to a different place and
just make the bundles you're using within TextMate repos themselves.
Or if you shouldn't do that at all? How do you "keep the bundles I
hack on completely in ~/.../TextMate/Bundles"? Do you manually copy
from the pristin/ folder first? Because the ~/.../TextMate/Bundles
only contains the changes you've made to~/.../Pristine Copy/Bundles
right? So you can't just push that without including what in Pristine
too. Or am I over thinking this somehow?
Thanks again!
Sorry for the noob question but...
I've just started getting into Git yesterday... (finally...) and I
can't quite figure out the best workflow to keep bundles on github up
to date.
I got a HTML + CSS bundles that a few people use and I've been asked
to put them on github... So I'm looking into how you do that. Ideally,
I'd like to just edit my bundles in TextMate, and push the update to
github when I come up with new snippet improvement, command, bug fix,
etc... But that mean I need to combine both of those (using mCSS as
example) first right?:
~/Library/Application Support/TextMate/Pristine Copy/Bundles/
mCSS.tmbundle
~/Library/Application Support/TextMate/Bundles/mCSS.tmbundle
How do you guys do it?
I did google it, but whatever I try I get a million posts talking
about bundles on Github and not how they actually get there...
I'm pretty shaky on Git still, so I understand if you don't have time
to explain the specifics, what I'd like is a general idea of the
workflow... I can research the rest. Thanks for any pointer!
Allan, Ciarán, all,
I used the phpdoc snippets a lot in TextMate. I also go back and add
to those phpdoc blocks. When I go back and edit those blocks TextMate
doesn't provide any help.
I created a command and snippet to help:
The Command provides Auto complete when you use a @ in a phpdoc comment.
The second file is a snippet for when you hit enter it puts an
asterisk at the start of the next line.
Timothy
I'm making some custom templates (among other things) for my favorite
languages, and I need some advice/best practices about them.
1. I heard that people are moving away from normal Templates and towards
Snippets for this purpose; is this correct?
2. One advantage I see with Snippets is that it lets me set the filename
(which I can then use) before calling the Snippet, which is not possible
with a Template unless I'm in a project. Is there some way around that with
Templates?
3. As I make these Templates, I'm finding a lot of common text between them,
and when I want to tweak it across the board...well, it's like programming
without functions. What, if anything, can I do to reduce redundancy in my
templates?
Thanks,
Neil.
In developing my bundle, I've been issuing feedback to the user with Create
New Document. Now that things are working decently, I want to switch to Show
As HTML. Here's the problem. Throughout my routines, when I want to issue
some feedback, I just say "puts". Now, however, using Show As HTML, I want
to wrap this in some way such that every time there is a "puts" I grab it,
shove a <br> on the end, and pass it along, so that my output appears
streaming into the HTML window as the script runs.
So, yeah, I could look thru all my code, find every "puts", and append the
<br> myself. But I don't want to. I want to just wrap up what I'm already
doing and perform the transformation as the input appears. There must be
some simple way to do this.
Here's what I have so far:
def self.perform(command_name, *args)
require "#{ENV["TM_SUPPORT_PATH"]}/lib/web_preview.rb"
STDOUT.sync = true
html_header(command_name.to_s)
puts "<pre>"
self.send(command_name, *args) # FIX ME
puts "</pre>"
html_footer()
end
It's that "self.send" line that I want to wrap up in some way so that I can
intercept the output from each "puts" within my routines and modify it.
Oh, and while we're up: is there a way I can detect whether we are currently
set to Create New Document or Show As HTML? I'd like to funnel all my
commands thru this one bottleneck but NOT do all that stuff if we are set to
Create New Document (in that case I just want to pass the output thru
untouched).
Thx! m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
Hi guys,
I just started using Textmate recently and at the moment I am trying to get
some Python scripts working with it. Everything works great but I was
wondering how to you pass command line arguments to a python script when you
run it?
Thanks
Regards
David
Ah ok thanks,
Although it might not be a bad idea to have a different meant to run
it by expanding the python bundle to "Run scripts with Arguments"
Thanks again for a possible solution.
Regards
Dave
On 9 Jul 2009, at 19:53, textmate-request(a)lists.macromates.com wrote:
> There is no support for this, it?s not that we don?t want to provide
> it, just that it?s not really feasible to do without bringing up a
> dialog and that would be a pain for the 99% where you don?t want to
> provide arguments.
>
> What you can do is simply read from stdin then TextMate will show a
> dialog, this is how I handle it in most of my scripts, i.e. read the
> arguments from stdin instead of command line options (when I know I
> mostly run the script in TM).
Hi,
Many of my Textmate commands are slow and take up to 15 seconds. My
problem seems to be the same than the one described in this thread:
http://lists.macromates.com/textmate/2006-January/007647.html. The top
command shows that the bash seems to be taking up all available CPU
cycles while TextMate is loading. This is really annoying, since this
happens with even very basic bundle commands like bolding in LaTeX,
which renders the commands in LaTeX bundle virtually unusable.
I tried the solution provided in this post:
http://lists.macromates.com/textmate/2006-January/007705.html. However,
I don't have fink or any other suspicious lines in my .bash_profile,
.bash_login or .profile files. Does anyone have any idea on what might
possibly cause the problem?
Regards,
Juho
--
Juho Makkonen
+358 41 5022 683
>> This is probably old news to everyone, but the scope of the quote
>> toggle did not include source. [...] I added 'source' to the scope
>> list and this fixed the "problem". I figure toggling quotes is
>> useful in any source location.
>The command is intended to be used without a selection, as it will
>work on the current scope, which is string.quoted.*.
>By adding ?source? to the scope selector you break it for when there
>is no selection (as it will then receive the entire source as stdin).
That will make my life loads easier. Now it works. I swear I tried that
before. Now that I see SOURCE in the source area of the bundle item.
Everything is clear. The Key
Equivalent won't work if you have the quotes selected though, or
anything selected. It
will work if you have the quote selected and you select the bundle item from
the menu. This is what sent me down the wrong path.
Thank you.
--
Brad Tittle
Tech Support
I am working in a project that has many folders corresponding to real
directories. After working for a while, there may be some folders
that are expanded and others that are collapsed. The thing is that if
I close the project and open it again later, then all of the folders
will be collapsed. This is very annoying because I must expand all
the folders I want access to every time I work on the project. Is
there a way for TextMate to maintain the state of which folders are
expanded and which are not the next time I open the project?
Hi Allan, Ciarán, all,
My projects frequently have a git root that is outside the project
directory, sometimes I even use source files from multiple projects/
repositories at the same time.
The appended patch to ProjectPlus allows the git module to handle that
correctly.
Seems the release notes and maybe version are updated by some utility,
so I did not touch them.
Gerd
When I attempt to create a new project called "Foo", I get the following
error:
/tmp/temp_textmate.VmGETS:30:in 'read': No such file or directory -
/Users/jjones/Documents/Code/Foo/___PROJECTNAMEASIDENTIFIER____Prefix.pch
(Errno::ENOENT) /tmp/temp_textmate.VmGETS:30:in 'expand_file'
/tmp/temp_textmate.VmGETS:94:in 'process'
/tmp/temp_textmate.VmGETS:92:in 'each'
/tmp/temp_textmate.VmGETS:92:in 'process'
/tmp/temp_textmate.VmGETS:138
I see that the folder /Users/jjones/Documents/Code/Foo has been created and
a bunch of projects are in there. Not sure what the issue is here and I was
wondering if anyone here knows what to do to get around this?
Thanx,
Joe
For when a single regular expression is not sufficient for a mirror
transformation, is there any way to access current mirror values from
within interpolated shell code in snippets?
(I'm trying to write a transformation that will first convert a human
phrase to CamelCase /then/ lowercase the first character to generate a
StudlyCaps version of the phrase.)
--
Benjamin Hawkes-Lewis
This is probably old
news to everyone, but the scope of the quote toggle did not include
source. At least in my version of the bundle, it just had
string.quoted.double, string.quoted.single. If the quotes were
included in the selection, then the scope devolved to text.html.basic,
source.php.embedded.block.html (my file type
is set to html).
I added 'source' to the scope list and this fixed the "problem". I figure
toggling quotes is useful in any source location.
--
Brad Tittle
Tech Support
Hello,
I needed to write perl code with some arabic letters recently. While
right-to-left languages are (excuse me) pain in the *** on more than
one level, textmate is not really helping me.
if I edit RTL language in TextMate, cursor moves "as expected" (=
right key moves right, lef key moves left), which is not standard
behaviour with RTL languages (in other editors, when you press right
in RTL language, you move left, and left moves right). But that would
be OK.
But it doesn't end there - if you, in TM, edit something on one end of
RTL text, it appears on the OTHER end. So, you are writing something
at the other end of the line, where the cursor is, so you don't know
where you will be writing until you write.
If RTL is mixed with LTR, the letters appear/dissapear randomly, but
never where the cursor is.
Another thing, maybe more important? - the file is actually saved
differently from how it looks in textmate. Example: in textmate, it
looks like this:
http://i41.tinypic.com/b8n636.png
but in textedit (and how perl sees it) it looks like this:
http://i40.tinypic.com/2i2bke8.png
(notice the misplaced parenthesis and semicolon)
I don't really use Arabic much, but I think it is a bug worth fixing.
Karel Bilek
I have a fork of the Perforce bundle, except that I forked it from a
previous GitHub fork that did a SVN import.
When I try to follow the recent instructions for rebasing, I end up
with "no common commits" and no real idea of how to resolve that
situation.
Is there something I can try to get my fork rebased to the official
bundle (and get GitHub to note that), or am I better off just newly
forking the official mirror and replaying the changes?
-Adam Vandenberg
http://adamv.com/
Allan,
First, thank you for creating such a wonderful editor. I've been using
it full time for almost a year now and love it very much.
I've been trying to be mouse less when doing development with TextMate
and iTerms. One thing I feel a little inconvenient is when I have
opened too many tabs, I can not drag files from vertical list to tabs.
Also, there is no keyboard shortcuts to move current tab to re-order
tabs. Please add them to your feature requests if you feel they are
interesting.
Regards,
Cao
I keep seeing this message pop up from time to time, looks to be a
growl notification. Usually at boot, but I've seen it at other random
times.
Anyone have any insight as to what this is? I suppose it's nice that
my bundles are up to date, but I'd rather not have something updating
my bundles without my OK. Looking around in the standard places for
launch at boot items, crontabs, etc. I don't see anything that would
do this.
-Dave
I've asked this before and didn't get an answer that I understood, so I'm
trying again.
My bundle consists of a bunch of ruby scripts, and the output is shown as
HTML. Thus, when a command is given, I am running a ruby script and then
scrambling to transform any output for display as HTML, deal with
exceptions, etc. In other words, I am doing simply and crudely what RubyMate
already does perfectly.
So the question is, isn't there some way I can just *use* RubyMate to run my
scripts and display output and exceptions for me?
m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
On Sat, Jul 4, 2009 at 6:00 AM, <textmate-request(a)lists.macromates.com> wrote:
> ---------- Forwarded message ----------
> From: Scott Haneda <talklists(a)newgeo.com>
> To: TextMate users <textmate(a)lists.macromates.com>
> Date: Fri, 3 Jul 2009 12:40:55 -0700
> Subject: [TxMt] Re: The dreaded Regexp question
> On Jul 3, 2009, at 10:00 AM, Michael Newton wrote:
>
>> Sorry, I know this isn't particularly on-topic (aside from the fact
>> that I'm using Textmate!) but I'm not having luck with the search
>> engines.
>>
>> I have a bunch of HTML that needs to be converted to XHTML, notably
>> <input type="text"> needs to be <input type="text"/> which is easy
>> enough. Problem is, it's PHP so there are things like <input
>> type="<?php echo $type?>"> which I'm having troubles with. So how can
>> I create a regular expression that captures the guts of the HTML
>> brackets, while ignoring any PHP brackets it might come across inside
>> the HTML?
>
>
> I used this web tool to help me:
> http://www.gskinner.com/RegExr/
>
> I did my best to put in single tics, quote marks etc:
> <input type="<?php echo $type?>"> some type and then another input <input type="<?php echo $type?>" name='value' class="foo">
> <input type="some_value">
> <input type="$some_$value">
> <hr>
> <br>
>
> My regex pattern was:
> (</?\w+)((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)/?(>)
>
> My replace pattern was:
> $1$2$3/>
> * You could do less pattern grouping, I did so as I was working through it.
>
> Result was:
> <input type="<?php echo $type?>" type="<?php echo $type?>"/> some type and then another input <input type="<?php echo $type?>" name='value' class="foo" class="foo"/>
> <input type="some_value" type="some_value"/>
> <input type="$some_$value" type="$some_$value"/>
> <hr/>
> <br/>
>
> The one issue is it will alter plain closing tags, like </a> will become </a/> and I could not wokr that out. Either you can solve that in the regex by ignoring anything with a "/" in it already, or, I may be inclined to cheat. With the recording ability of textmate, I would try something like:
> find "/>"
> replace "#tmp#
> find (</?\w+)((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)/?(>)
> replace $1$2$3/>
> find "#tmp#
> replace "/>"
>
> It should happen pretty quick.
> --
> Scott * If you contact me off list replace talklists@ with scott@ *
>
Thanks, I actually figured it out just now as I was composing a reply.
Negative lookbehind assertion only matches ">" if it's not preceded by
"?" or "/":
find: <((?:input|img|link|meta|hr|br|area).*?)(?<![?/])>
replace: <$1/>
turns this:
<input name="foo"<?php echo $bar?>>
<input name="foo" value="<?php echo $foo?>">
<input name="foo" <?php echo $bar?>/>
<input name="foo" value="<?php echo $foo?>"/>
<a href="bar">baz</a>
into this:
<input name="foo"<?php echo $bar?>/>
<input name="foo" value="<?php echo $foo?>"/>
<input name="foo" <?php echo $bar?>/>
<input name="foo" value="<?php echo $foo?>"/>
<a href="bar">baz</a>
Just need to see if it works in TM when I get back to my office (and
my Mac!) Definitely bookmarking that site though, and will look more
into this "recording ability."
--
Michael Newton
http://mike.eire.ca/
Although only a TextMate newbie, I would be happy to pay for an
upgrade to version 2.
That said, I can imagine a purchase page that allowed upgraders to
choose from a number of possible "donation" amounts--say, via the sort
of pull-down menu you get when paying for music at http://
Magnatune.com. You could then bury the option to Upgrade for Free
somewhere deep on the page or on another page, so that it's an option
for the needy.
I would also love to contribute a few beers to bundle developers--
perhaps via a similar system or a "checkbox" list.
Thanks to everyone who's contributed to this vibrant community!
jon
/RNN (http://responsenotnecessary.com)
______________________________
Still Water--what networks need to thrive.
http://newmedia.umaine.edu/stillwater/
Sorry, I know this isn't particularly on-topic (aside from the fact
that I'm using Textmate!) but I'm not having luck with the search
engines.
I have a bunch of HTML that needs to be converted to XHTML, notably
<input type="text"> needs to be <input type="text"/> which is easy
enough. Problem is, it's PHP so there are things like <input
type="<?php echo $type?>"> which I'm having troubles with. So how can
I create a regular expression that captures the guts of the HTML
brackets, while ignoring any PHP brackets it might come across inside
the HTML?
Thanks in advance.
Hello,
I had an issue with the Show Outline command from the LaTeX bundle
when using multiple source files spread accross different (relative)
directories.
I took a look at the code and was able to fix it for me by modifying
the line
points += outline_points(filename.adjust_end($1)) if
line.match(INCLUDE_REGEX)
to
points += outline_points(LaTeX.master(filename).adjust_end($1))
if line.match(INCLUDE_REGEX)
Someone with a little more insight might want to check if that is a
good idea and possibly apply it for future versions. :)
Cheers,
Guido
I'm working on adding auto complete to my bundle. I can get the
suggestions to display, but not the tool tip.
The current code section is as follows
completion = {"display" => removed_block,"tool_tip" => "testing this"}
choices.push(completion)
options = {
:extra_chars => '_/' ,
:case_insensitive => false,
:initial_filter => "",
:tool_tip_prefix => 'prefix'
}
TextMate::UI.complete(choices, options)
The choices will display but the tool tip won't.
Timothy
After reading through the comments here:
http://blog.simongregory.com/09/as3-autocompletion-in-textmate/
I have so far failed to get any good looking AS3 autocomplete. What
do I need to do to work out what's going wrong? I am getting this
when I press Alt-Esc:
please select a class to locate the package for
Here's my sample code:
var s:Sprite = new Sprite();
s.(here I press Alt-Esc and get the tooltip)
I can't find the TM log file to look for errors. I have soft linked
my Flex SDK into /Developer/SDKs/flex_sdk_3 as suggested in the
comments on the original thread but I cant make it go. Any suggestions?
Thanks,
Gaby.
--
Sent from my email program on my computer sitting on my desk in my
house.
http://playr.co.uk/
Hey guys,
I wrote a couple snippets for event-based programming in AS3:
-- addEventListener
addEventListener(${1:MouseEvent}.${2:CLICK}, ${3:on${2/(_)?([A-Z])([A-
Z]+)/\u$2\L$3/g}}, ${4:false}, ${5:0}, ${6:true});
-- onEventType
${1:private} function on${2:Click}(event:${3:Event}${4: = null}):
${5:void} {
$0
}
--
I realize that addEventListener is also available in autocomplete.
Here's why you might use it anyway:
- Chording two keys (opt-esc) for a function that is supposed to save
you time (autocomplete) can feel clumsy.
- The tab trigger will autofill a onEventType as a callback for
EVENT_TYPE.
- The above feature works well if you use escape to trigger naive
autocompletion.
Thanks Simon for all your work on the AS3 bundle. Feel free to
include these if you find them worthy. =)
Brenton