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