This morning I downloaded version 1.5.5 (1138). I use TextMate with
Subversion every day. Today when I executed CTRL-SHIFT-A to do a
check in this got pasted into my document:
John Doe
12345 Main Street
Plainville
Any State 67890
USA
I searched through the bundles and did not see a bundle that used
that key sequence. I did notice that when I type that sequence the
Edit menu item at the top of the screen flashes briefly. Can anyone
shed any light on what might be causing this?
Thank you!
DigiLord
Hi
a newbie question, I think...
it was very easy :) to make a macro for quickfind the current word
(bind this to a Cmd-Opt-Shift-Left/Right arrows make move around the
source code really a charm).. but it has been a recurrent temptation
for me to wide the finding to the rest of the files in the project.
As I use the Cmd-Shift-F dialog I find it really more and more clever
(I used to miss the word boundaries check box.. but is ok as it is if
you know a little of regexps, of course, as it must be ;) The
problem is it was for me impossible to make the macro follow the Find
in project the current word... I suppose the problem exceeds the way
TM makes the project finding. TM establish a panel where you see
each line with the word highlighted (really clever) but it has no way
to jump to the word without the dialog... is it?
I can only remove one missing item from the subversion status window.
I if I try to remove another, it fails.
Steps:
1. Check the status on a folder.
2. A remove button appears next to files that are missing. Click the
remove button for a missing file.
3. Confirm the removal.
4. Try to remove another missing file.
5. Wait. Nothing happens.
The black loading gear just spins indefinitely in the top right hand
corner.
Andrew
The highlighting for the RoR bundle is wrong if an instance method is
named include:
object.include
highlights include as if it were an include at the top of the page.
It should recognize it as an instance method and leave it the normal
color.
TextMate colors the output of a diff (such as "svn di") which is
great, but I would like to change the colors. For example, I would
prefer that deleted lines are red on white instead of white on red (I
find the background color distracting).
I didn't see an entry in the TextMate Preferences for these. Am I just
missing it? Or can I change these via the defaults database or a
plist?
Thanks,
-Chuck
I have been running into a problem with Textmate that for me, anyway,
is a major hurdle. When I'm editing an HTML document, and I'm using
Textmate's project drawer, I often want to use the open document as a
basis for other documents. I go to "Save As..." and name the file, and
hit enter. In almost every other Mac OS X program that I know, that
command simply creates a new document with the old document as the
starting point.
However, with Textmate's project drawer, the old file has essentially
been renamed by the new one. I have to go back and re-add the old file
to have it show up in the Project drawer again.
I have searched the archives of the Textmate list, and one other
person has mentioned it - about a year ago. Some of the suggestions
included hiding the program and bringing it back, re-booting the
program, hiding the drawer - nothing works at all for me. I can't even
drag the old files form the finder, I have to go to FIle>Add.
So my question is: is there any hope for this bug to be resolved? Are
there any other fixes that I may not be aware of? I dunno - I would
think this would be a rather glaring problem that more people would be
clamoring to have fixed. I'm not a hardcore coder or anything - just
someone who writes his own HTML. It just seems sort of... well,
primary.
I do appreciate the power that Textmate has, and I can understand how
useful it can be to people's workflows. But every time I try to "get
into" it, something basic like this comes up as a roadblock and puts
me off from wanting to use it. (See my old discussion about the Open
Document in Running Browser command, which sadly still does absolutely
nothing) I want to love Textmate, I really do. Just any help at all
would be appreciated.
BTW: I'm on a MacBook Pro running OS 10.4.9 and using Textmate build 1.5.5/1368
Just noticed that getting documentation on a Ruby method (control H)
in TM 1.5.5. 1383 now gives an error:
web_preview.rb:70 in 'html_head' : undefined method '+' for nilClass
This was working for me on earlier TM versions and I haven't changed
anything in my Ruby setup for a long time.
Dave.
I've just been trying TextMate, trying to move away from TextEdit and
TextWrangler. One thing which is really bugging me is the way it underlines
hyperlinks on the 'Plain Text' setting. If I wanted that kind of behaviour
I'd use Microsoft Word! Is there a way I can set it up so that plain text is
exactly that, completely plain vanilla typing?
Thanks,
--
J. Simon van der Walt ----- Composer
<http://www.jsimonvanderwalt.com>
Is there a limit to the size of a plist for tm_dialog? If so, is
there a workaround? I think I'm hitting a limit, if I take this
shell escaped output and manually trim it, I can run it as a shell
script that seems alright:
/usr/lib/ruby/1.8/rexml/encoding.rb:22: command not found: /
Applications/TextMate.app/Contents/PlugIns/Dialog.tmplugin/Contents/
Resources/tm_dialog -mp \<\?xml\ version\=\"1.0\"\ encoding\=\"UTF-8
\"\?\>'
'\<\!DOCTYPE\ plist\ PUBLIC\ \"-//Apple\ Computer//DTD\ PLIST\ 1.0//EN
\"\ \"http\://www.apple.com/DTDs/PropertyList-1.0.dtd\"\>'
'\<plist\ version\=\"1.0\"\>'
'\<dict\>'
' \<key\>photosets\</key\>'
' \<array\>'
[...hugefrickin'SNIP...]
' \<key\>title\</key\>'
' \<string\>Vista\ Point\</string\>'
' \</dict\>'
' \</array\>'
'\</dict\>'
'\</plist\>'
' select_photoset
/tmp/temp_textmate.1kkRWq:88:in /bin/bash: -c: line 1: unexpected EOF
while looking for matching `''
/bin/bash: -c: line 4: syntax error: unexpected end of filecall'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:36:in /bin/bash: -c: line 1: unexpected EOF while looking
for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filecall'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:49:in /bin/bash: -c: line 1: unexpected EOF while looking
for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filefork'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:47:in /bin/bash: -c: line 1: unexpected EOF while looking
for matching `''
/bin/bash: -c: line 3: syntax error: unexpected end of filedialog'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:40:in
Hello,
I noticed that my TextMate updated this morning to Version 1.5.5
(1383). Along with this came a new feature in the HTML Bundle which
I have found is causing me some annoyances. The feature I am talking
about is in response to ticket 20CC5FF4.
I am using PHP with Smarty as my template engine, and previously I
would include <!--{literal}--> in my code to escape Smarty parsing on
script blocks. Now when I do this the entire block of code becomes
commented out. While this is not a crucial bug it is a new annoyance
for me as it is very useful to have syntax highlighting on script
blocks.
Here is an example of my code:
<!--{literal}-->
<script language="javascript">
function foo() {
return "bar";
}
</script>
<!--{/literal}-->
If you require more information please just let me know. If anyone
has any idea how to fix this I would greatly appreciate it.
Thank you.
---
Philip Plante
913-302-9933
mail(a)pplante.com
Yesterday on the TextMate irc channel the [gSpell service for OSX][1]
was mentioned, which is a fairly neat way of spell checking (more
details on the gSpell homepage.) I decided to try and simulate the
service as a TextMate command which takes a selection and looks up
the most reasonable alternative with Google.
[The tmCommand is Available here.][2]
[1]: http://nspindel.com/gspell/
[2]: http://homepage.mac.com/andy.herbert/.Public/Check%20Spelling%
20Using%20Google.tmCommand
Hello,
Is it reasonable to have a 'find string' fail only because I happened to
have all the text selected in the document window? Changing the
selection text back to an ibar cursor seems to have made the sought
after string to be found without any other changes to the contents of
the document. That seems to have been my experience however I have not
re-examined this to be sure.
Cheers
AZ
> regarding to the multiple word checking I found a way to do it, but
> in Ruby I have no idea to get the REAL length of a (I guess) UTF-8
> string. The point is that s="Fähre" s.length returns 6 not 5. I tried
> to set $KCODE = 'UTF-8' in the script but it doesn't work.
Take a look at the new Rails Multibyte character support, I think
they tackled this problem already and the patches might point you in
the right direction. Hell, you might be able to swipe their string
extensions outright ;)
- Ben
Hello,
After a recent update (I'm not sure which one) to TextMate, I'm
finding that every time I write a comment in Python:
# whatever
and press Return at the end of the line, that TextMate is filling in
"# " at the start of the next line. This is really getting in my way,
and I'd like to turn it off -- but I can't find which trigger is
responsible for this.
I thought at first it'd be the "Continue Line Comment" snippet in the
Source bundle, but that triggers on Enter.
Is there any way to find out which command/snippet is responsible for
this without going through all bundles one by one?
Andrew
>Thanks. I like the --with-file, but the --with-directory could get
>annoying if you regularly want to save copies to a different
>directory.
Duplicating to the same directory is my most common use case. However there's always scope for both, ie adding the second
version to shift-apple-D.
If I remember correctly then --with-file will only work when --with-directory is specifed.
El 23/04/2007, a las 14:00, textmate-request(a)lists.macromates.com
escribió:
> De: Allan Odgaard <throw-away-1(a)macromates.com>
> Fecha: 23 de abril de 2007 03:03:18 GMT+02:00
> Para: TextMate users <textmate(a)lists.macromates.com>
> Asunto: Re: [TxMt] QuickOpen included files
> Responder a: TextMate users <textmate(a)lists.macromates.com>
>
>
> On 20. Apr 2007, at 20:59, Juan Falgueras wrote:
>
>> I have change the source of the list of paths for QuickOpen
>> included files. It works fine:
>
> Thanks, seems to work fine here as well. Some comments:
>
> • we should differ between <system> and "user" include paths
actually the script does consider <system> and "user" paths and get
first the "user" path not looking for TM_HEADER.. when "user"
if (!$header) {
$line =~ /#\s*include\s*([<"])(.*?)[">]/;
$local = $1;
$header = $2;
}
if ($local eq '"') {
$t = $ENV{'TM_DIRECTORY'};
if (-f "$t/$header" ) {
print "$t/$header";
system("mate -r \"$t/$header\"");
exit 0;
}
}
> • TM_HEADER_SEARCH_PATHS should default to the output from gcc/g+
> + (to not require user setup)
I have thought about it but, when? If you ask for echo | g++ -E -
v -x c++ - and then analyze the output (with the A.Tomazos perl
script, for example), you then don't want any TM_HEADER_SEARCH_PATHS,
but instead, to call to the g++ compiler for this. I've thought this
must be slow, and the answer to the previous query is near always
the same.
> • search path could depend on whether we are in source.c or
> source.c++ (the former has a smaller search path)
yes. The difference is (in my system):
C++
/usr/include/c++/4.0.0
/usr/include/c++/4.0.0/powerpc-apple-darwin8
/usr/include/c++/4.0.0/backward
/usr/local/include
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
versus
C
/usr/local/include
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
/usr/include
/System/Library/Frameworks
/Library/Frameworks
I have used the most frequently used C++ :)
> • additional search paths should be taken from the current Xcode
> project file, if any (and Xcode’s products build dir should also
> be a search path for frameworks)
oups! don't use XCode, sorry. I think it must be done asking XCode
(via AS) or hacking the XCode project file... (complicated and dirty) :(
> • need to handle framework inclusion, e.g. <Cocoa/Cocoa.h>
you are again wright:
% locate Cocoa.h
/Developer/ADC Reference Library/documentation/Cocoa/Cocoa.html
/Developer/ADC Reference Library/documentation/Cocoa/Conceptual/
CarbonCocoaDoc/Articles/CarbonInCocoa.html
/Developer/ADC Reference Library/documentation/Cocoa/Conceptual/
CarbonCocoaDoc/Articles/CarbonUIInCocoa.html
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
Cocoa.framework/Versions/A/Headers/Cocoa.h
/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/
JavaEOCocoa.framework/Versions/A/Headers/EOCocoa.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
Cocoa.framework/Versions/A/Headers/Cocoa.h
/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/
JavaEOCocoa.framework/Versions/A/Headers/EOCocoa.h
/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/Cocoa.h
is not found by this simple script and there are:
% find /System/Library/Frameworks/ -iregex ".*\/Headers\/.*\.h" | wc -l
2112
many.
It was not a problem for me since I am working in a UNIX standard
programming way...
> • need to handle import as well as include (in the regexp)
is is easy to add it
>
> And if I understood Chris correctly, he’d like to optionally
> search under /Developer/SDKs/«chosen SDK».
As far as I have understood this is included in your Frameworks plus
XCode dirs expansion search
>
> Are there other things we’d like to support?
(;
Hi,
Two things tripped me up just now using the reST bundle:
(1) I'm not sure if it's broken or not, but the Validate Syntax
command didn't work for me as it stands, and it's the first line
that's tripping it up for me:
`TRST=${TM_PYTHON:=rst2html.py}`
I found that most of the rest commands used `TRST=$
{TM_RST2HTML:=rst2html.py}` and when I switched it in for that, it
seems to be working.
Just out of curiousity, where/how is this $TM_RST2HTML environment
variable getting set, anyway (and what's `:=`)?
(2) I feel like the "Convert Document to HTML" command should have
its output set to "Create New Document" instead of replacing the reST
in the file w/ the HTML so you don't blow out the file you've been
working on.
Thanks,
-steve
Hi,
I have to write much XSL stuff. I use among others the snippet
collection of Andreas Schöller (BTW thanks for that).
He was so kind to add information about the valid values of parameters.
example:
Snippet ou =>
<xsl:output
name=""
encoding="utf-8|ASCII|US-ASCII|iso-8859-1|utf8|KOI8R|cp1251"
indent="no|yes"
use-character-maps="mapping1 mapping2"
method="text|html|xml|xhtml"
/>
As usual I can use TAB to jump to each ${n:} token.
Now my question:
Would it be possible to convert e.g. the token 'text|html|xml|xhtml'
into a pull-down menu?
I tried it this way:
After pressing TAB TM highlights 'text|html|xml|xhtml'; I invoke a
command:
`echo -en "$TM_SELECTED_TEXT" | ruby -e '
require File.join(ENV["TM_SUPPORT_PATH"], "lib/dialog.rb")
words = STDIN.read().split("|")
print words[(Dialog.menu words)]
'`
and I can choose what I want. After that, of course, I cannot use TAB
to navigate through the snippet any more, unfortunately.
I also tried a snippet like:
<xsl:output method="${1:`echo -en "text|html|xml|xhtml" | ruby -e '
require File.join(ENV["TM_SUPPORT_PATH"], "lib/dialog.rb")
words = STDIN.read().split("|")
print words[(Dialog.menu words)]
'`}" encoding="${2:`echo -en "utf-8|ASCII|US-ASCII|iso-8859-1|utf8|
KOI8R|cp1251" | ruby -e '
require File.join(ENV["TM_SUPPORT_PATH"], "lib/dialog.rb")
words = STDIN.read().split("|")
print words[(Dialog.menu words)]
'`}"/>
In principal this works and the TAB behaviour isn't disturb but I
have no visual feedback what I'm typing while the menus popping up
and the TAB mechanism starts at token 1 which I already entered.
Would it cost much effort to implement such a behaviour? Meaning if I
press TAB and within the new selection occurs a given delimiter (here
| ) or tag or what ever that the snippet parser will show this
selection as pull-down menu automatically without distroying the TAB
mechanism.
And, would it make sense as a global snippet feature?
Regards,
Hans
Forgive me if this is way too rudimentary of a question, but: I use TextMate
to compose some of my blog posts, and sometimes I copy/paste in text from
interviews I've done via email (or even chat). Is there any way to make
TextMate recognize when there's been a line break between two paragraphs and
auto-insert break tags? As it stands now, I need to go in and insert two
tags after every line-separated paragraph my interviewees write, which is
becoming a PITA.
Any thoughts are much appreciated
David Chartier
--
My work:
professional blogger, The Unofficial Apple Weblog: http://www.tuaw.com
Assistant Lead Editor, Download Squad: http://DownloadSquad.com
My play:
1FPS: http://www.dcharti.com/blog/
Vox: http://dcharti.vox.com
Hi
using Perl and C/C++ etc.. I think it would be very useful to
recognize (grammatically) when a call to a function is done. I know
this can be near impossible to solve (with regexps) in the Perl case,
since there is no need and many people not use parenthesis after the
name of the function. Anyway if you use them it should easily be
easy to recognize as function call.
If function calls are grammatically recognized, then the power of TM
will be increased with thinks like colouring, jump to the definition
(only active when in a function call scope), etc.
Juan F.
I don't know if this has been suggested before, but I'd like to right
click on a selection or an identifier (without having to double click
it first) and choose "Find in Project" which would give search results
in all files in a project (or a directory if I had opened one).
This would be great for quickly exploring code bases.
Is there a way to hook this up now given TextMate's flexibility and
the existence of the Edit -> Find -> Find in Project ?
-Chuck
Hi!
I'm behind a proxy here, and I'd like to use the blogging bundle.
Unfortunately, there's not much of information on this in the
internet, so could someone here help me out?
My favourised solution would be that TM takes over the system proxy
out of OS X's "Location"s. But a hint on how to set the proxy via env
would help, too :-)
TIA
André
Hi All
I am slowly making language bundles for the various languages used on
the Tandem (HP) NSK systems. So far I have been working on TAL, DDL
and the Make file syntax used by ACI. I also hope to do a COBOL/
SCOBOL bundle as well, as time available happens.
My question is this. At the moment it appears that all languages must
have their own separate bundle. Given that quite a few of these (in
particular DDL/Make and a couple of others) are going to be just
syntax highlighting, is it possible to have a combined bundle of
languages? or do I just suck down each desired language (there's not
many - maybe 6 or 7 by the time I eventually finish) having its own
bundle entry?
Cheers
Dean.
I'm having a problem populating the symbol list in my files. I have
created the following preference item:
{ showInSymbolList = 1;
symbolTransformation = 's/(^KW: )(.*)(%)/$2/;';
}
My document is filled with lines such as
KW: postscript essenceoftruth freedom % (fold)
However, the symbol list remains empty. I have double checked that
the scope selector for the preference matches the global scope of the
document and have closed the bundle editor window. Can someone help
me figure out why this is not working?
Thanks,
Colin Hahn
»Geben Sie mir Kaffee, dann mache ich Phänomenologie daraus.«
"Give me my coffee so that I can make phenomenology out of it." --
Edmund Husserl
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, everyone.
It seems, that in Bulleted Lists the URLs don't get matched as
underlined, if they are in a scope of a bulleted list.
Wouldn't it make sense to change the Grammar, so it has begin/end
clauses for bulleted Items and then make an include rule for it ?
One Side effect also, of this is that hitting the Enter key has no result.
regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGL/LF8tSzPOYuZvQRArbrAJ41564Jp/4Qco4TkJCskRB69SDTVQCgjYYV
co5cFXikJOmH/FeoQkbrY64=
=NuSj
-----END PGP SIGNATURE-----