On 4. May 2007, at 15:56, Simon Gregory wrote:
>> if find_app >/dev/null «bundle identifier of iTerm»; then
>> echo 'We got iTerm installed!'
>> fi
>
> I'm assuming that the «bundle identifier of iTerm» is the value
> from this key found in iTerm.app/Contents/Info.plist
>
> <key>CFBundleIdentifier</key>
> <string>iTerm</string>
Yes, unfortunately that bundle identifier is in the wrong format. It
should be something like: “com.«company».iTerm”.
It will likely work though. Alternatively you can do: find_app
iTerm.app (then it looks using the app name instead of the bundle
identifier, normally the former would be more ambiguous).
> One thing, would iTerm need to have been run once in order for the
> system to register it's presence?
If it is in /Applications and possibly ~/Applications, the system
will automatically register the application (at boot time) -- maybe
some other locations are also magic.
But at least running the app, will ensure the system has it in the
index.
Maybe I'm just missing something here, but:
Please make it possible to use a filter for the files scanned using
Find in project. I almost always have a situation where I'm searching
for something in my HTML files only and that something will be present
in almost all of the PHP files, thus adding a lot of noise to the
search result dialog.
There will also be situations where I'm searching for instance all
index.php files in a large project.
And while I'm at it, please make the Find in project faster ;^)
--
Sven Axelsson
I love the "Find in Project" command - especially when I'm working on
lots of HTML files. But it lacks something that the regular "Find"
command has - the ability to see multiple lines in both the "Find" and
"Replace" field. If the "FInd in Project" had that feature, it would
be much, much more useful. I work mainly in HTML, and it would really
help with things like updating menus across the site - pieces of code
that are rarely on a single line.
I know that you CAN replace multiple lines of code with "FInd in
Project", but having the ability to *see* them would help immensely.
For some reason whenever I try to replace multiple lines of code, I
get weird duplicates and other strange things. Granted, that could be
more indicative of my own ability ; ) - but if I could see all the
code at once that I'm using, I think I would run into fewer problems.
Any thoughts?
Hi,
A nice feature in TextMate is the automatic update of a dragged
folder inside the project drawer. But when you work with latex
projects and compile your document you'll get some help files, such
as aux, toc, lof, lot and so on. For this reason it would be nice to
have some kind of filter which is applicable for hiding certain
extensions when the folder is rescanned.
Would this be possible...?
Christian
Is there some way to control the appearance of the spinning progress
indicator on the HTML output pages? Some CSS, maybe? I'm writing a
command using the standard themes given by webpreview.rb, but the spinner
is practically invisible. I don't want to turn it off (I know about
TextMate.isBusy) or make any drastic changes, just change the color.
--
Steve King, <steve(a)narbat.com>
Hi all, I'm a Textmate newcomer. I'm using it to write my dissertation
in Latex. I ditched TexShop and I really love Textmate. I've watched
the video tutorial, read the documentation and have everything setup
and working. I have a master file and the compilation works
flawlessly.
The one thing I haven't been able to use is the \ref{} and \cite{}
completion. I have a bib file linked to the master file and my
bibliography shows fine when I compile the document. I just can't get
completion to work. Same thing with \ref{}, I added colon (:) to the
set of word characters but nothing. When I'm in a \ref{} or \cite{}
and press escape, nothing happens, I press option-escape and nothing
happens. Type the first few letters and press escape, nothing. If I'm
outside of \ref{} or \cite{} and type eq: and then escape I DO get
completion to work but not if I'm inside of the {}!!!!
If I'm anywhere outside an {} and press option-escape I get:
Label based on current word.. 1
Citation based on current work... 2
but if I choose either I get a crosshair pointer, what is this for?
I'm running Textmate version 1.5.4 (1360) and both the Lattex bundle
and support folder are the latest from SVN. Mac os X 10.4.8.
Thanks for your help,
Andres
--
Andres Gonzalez-Mancera
Biofluid Mechanics Lab
Department of Mechanical Engineering
University of Maryland, Baltimore County
andres.gonzalez(a)umbc.edu
410-455-3347
Hi
I am hoping someone has solved this problem.
I use latekmk.pl script as $TM_TEX_COMPILER to compile my LaTeX documents
from within Textmate and it works wonderfully on every document I've made,
except for any document that uses the exam package.
The problem is small: I must execute cmd-R twice to get it to compile the
number of points correctly. This is only a problem within Textmate; if I run
the script from the command line it works perfectly. And while it is a small
problem it is vexing, since latexmk.pl was made specifically to deal with
the need to run LaTeX etc. multiple times.
My guess is that there is a bug in either cmd-R (though I can't find one)
or somewhere in the bowels of Textmate.
Seeing as how I used this package frequently, almost daily, I'm guessing
that this need to cmd-R twice will cost me about an hour and a half of my
life in the coming year.
Best wishes
----
David
Maybe this is already in the works, but anyways:
Show invisibles needs a (separate) option to show spaces. Even better,
I'd like to see an option to show leading spaces only (Komodo has
this). Makes it easier to see the correct indent level.
--
Sven Axelsson
Hi there,
Sorry to raise an old question, but I can't find a definitive answer
in the archive - is it possible to turn off the tab bar? In a
previous post (Re: [TxMt] new beta, in Dec, 2004) Allan said, in a
rersponse to a question about hiding the tab/status bars:
> > Why remove the option to show/hide tab/status-bar ?
>
> I didn't thought anyone would actually use them, and if possible, I'd
> like to enforce that they're always enabled (since I'll rely more on
> these elements in the future).
>
> I can bring back the option to hide the tab bar.
Did this ever get brought back in? Is it a 'hidden' preference that
can be accessed? I never use the tab bar and would like to be able to
toggle it off if I can.
Thanks,
Nigel
Hi Folks,
A lot of my projects include some images and for getting a nice
overview, I also arrange these images, together with other related
files, within the project drawer.
If I right click on an image, I can open it with the standard
application (for example preview.app). Would it not be nice to have
an option "Open with..." and then be able to open it in the favorite
graphics program?
I know, it is possible to drag and drop the image on the dock icon of
the graphics program, but an option would easier.
Thanks
Christian
I have a command that relies entirely on the applescriptability of iTerm over Terminal. However as I can't guarantee that iTerm
is installed I'm looking for a way to detect it. Does anyone have any suggestions, specifically when it's not running?
Thanks,
Simon
Hello,
When I work with large projects and using the project drawer it would
be very comfortable and more usable if the folders and files could be
highlighted in some way. I mean exactly the same feature that ships
with OS X. When you right click on a folder/file you can choose a
colour (red, orange, green...) for this item.
Thanks
Christian
> Hi,
>
> I found a tiny error. Here the corrected utf-8 version of gspell.
>
> BTW In addition to that it is very easy to write out all google
> suggestions delimited by a '|' within the multiple word spell
> checking. With the help of a small command which shows this list as
> pull-menu you can edit each error very handy ;)
>
> Cheers,
>
> Hans
Thanks Hans, before reading your recent replies with the attached
files, I had already started work on UTF-8 version with environment
variable support (I receive the list in digest form, so I'm not
always up to date with the activity here.) I'm not quite sure if my
contribution is any better or worse than yours because I essentially
cannibalised the HTML bundle for encoding and decoding UTF-8 for POST-
ing and GET-ting with Google's servers. As a result my effort relies
on entities.txt existing in the Support directory in the Textmate
bundle (this means that I can no longer supply it as a singular
tmCommand), I genuinely do not know if this is a better method for
handling this sort of thing - perhaps someone on this list could help
clarify.
Incidentally, I think there was an error in the original version
which was inherited by the version you've supplied - the final tab
stop was not being preserved, to correct this remove the line 'text
+= "$0"' and replace 'print $text' with 'print "#{$text}$0"'.
[The GSpell bundle is available here][1]
[1]: http://homepage.mac.com/andy.herbert/.Public/GSpell.tmbundle.zip
Hey all. I just downloaded version 1.5.5 (1368) on OS 10.4.9.
1. Apple + Enter no longer moves the cursor down one line.
2. The ERB tag creator no longer works (I believe it was CTRL + Z)
Any ideas?
Hi Folks:
I just installed TM 1.5.5 (1383). I have perltidy installed in /usr/bin:
ls -lr /usr/bin/perltidy
-r-xr-xr-x 1 root wheel 97203 May 3 13:46 /usr/bin/perltidy
When I execute tidy from the perl bundle in TM, I get:
Couldn't find perltidy
Perltidy is available from here.
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialo
g.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
I'm not sure why TM doesn't see perltidy in /usr/bin. Does anyone know
how to fix this?
Thanks,
David
Hi,
I'm used to TextMate with Full-screen, which is offered by SIMBL, but
when in full-screen, the drawer disappears for the screen. In fact,
it is still there, but moved to the other ede of the other screen
(yes, i have dual-screen).
To fix it, I've installed the Plugin from Hetima "The Missing Drawer"
which basically includes the drawer into the main panel. But it is
realy not convenient when the drawer is not needed, cause I haven't
found how to make it disappear...
Whatever, this led me to a feature request: a floating drawer.
Is there a way to have one? Even better, has anyone already built a
plugin or something for that purpose?
What do you think of it? A floating drawer, accessible via a
shortcut, controlled and navigated from the keyboard, would you take
benefit of this feature?
Xavier Cambar
I just noticed I get this from the command line on both individual
file and directories.
2007-04-30 19:52:04.221 mate[5199] An uncaught exception was raised
2007-04-30 19:52:04.221 mate[5199] [NOTE: this exception originated
in the server.]
*** Object does not implement or has different method signature
2007-04-30 19:52:04.221 mate[5199] *** Uncaught exception:
<NSInvalidArgumentException> [NOTE: this exception originated in the
server.]
*** Object does not implement or has different method signature
Trace/BPT trap
I just upgraded this morning. Not sure what I've done here...
Thanks,
Brett
>> I've got the completion set-up to complete from a document-parser
>> and a preference item. The parsed completions still work, but it's
>> stopped pulling completions from the preference item. I've checked
>> the item name in the bundle editor and the finder, and even tried
>> re-creating the completions from scratch, to no avail.
>
> It works while it's still lowercase, once it goes upcase it doesn't
> work anymore.
>
> thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
Yes, you need to be matching lowercase letters. But sometimes the
match fails anyway.
I just tested again and it seems to be working. This is the worst
kind of bug, one that pops up randomly. I'll try to nail it down more
specifically and get back to you.
Hello,
I made some simple additions to the Objective-C Bundle, and was
wondering if anyone was interested in them.
* Comment Reflow - based on the Screencast by Allan
* Comment Code - comments out the current line of code (or the
selected lines of code), useful for debugging
* Uncomment code - undoes above
I know they are not very glamarous, but I was surprised they were not
already included in the bundle.
- Nithin
I'm having a problem with Code Completion. Here's the deal:
I've got the completion set-up to complete from a document-parser and
a preference item. The parsed completions still work, but it's
stopped pulling completions from the preference item. I've checked
the item name in the bundle editor and the finder, and even tried re-
creating the completions from scratch, to no avail.
Deleting the bundle and reinstalling it seems to fix the problem, but
only for a while. I've tried to track down what triggers its failure,
but I can't seem to isolate it.
Download: http://ollieman.net/files/beta.zip
If you could, install the beta and in Screenplay Mode type the
following:
int. location - d
And attempt to trigger the "Time of Day" auto-complete from the "D"
at the end of the line.
Any help is appreciated.
-- Oliver Taylor
I am getting the same problem when asking mate to open a file. If I use only "mate," TextMate opens. If I use "mate ~/Sites/file.html" TextMate comes to the front window, but the terminal gives the same "***Uncaught Exception" noted earlier.
Running on an intel Macbook Pro 10.4.9
Robert
On Wednesday, May 02, 2007, at 02:48PM, "Andrew Jaffe" <a.h.jaffe(a)gmail.com> wrote:
>Allan Odgaard wrote:
>> On 2. May 2007, at 23:23, Brett Terpstra wrote:
>>
>>> This is from mate.crash.log, sorry for the long paste:
>>
>> The crash log basically says ?the system function to send a message from
>> mate to TextMate crashed? -- so this says less than the Terminal output.
>>
>> But maybe there is some output (from TextMate) in the system console --
>> the first message you quoted said the error happened in the server
>> (TextMate), so if that is the case, details would likely have to be
>> found in hte console.
>>
>Alas, it just appears to say "mate crashed" and "crash report written
>to: /Users/jaffe/Library/Logs/CrashReporter/mate.crash.log"
>
>It seems to be happening with any use of 'mate'...
>
>Andrew
>
>
>
>
>
>
>______________________________________________________________________
>For new threads USE THIS: textmate(a)lists.macromates.com
>(threading gets destroyed and the universe will collapse if you don't)
>http://lists.macromates.com/mailman/listinfo/textmate
>
>
Could the Markdown bundle be modified to use a TM_MARKDOWN variable
(similar to the way the Subversion bundle uses TM_SVN) in the
"Convert document/selection to HTML" and other relevant commands?
I envision that the variable would contain whatever command(s) you
want to use for Markdown stuff and would default to the current
"Markdown.pl|SmartyPants.pl|perl…".
For example, I like to add the "--html4tags" option and get rid of
SmartyPants, but to do it currently, you need to modify the bundle.
(Which is fine in theory, but I worry that in practice, updates will
be missed.)
Or perhaps the "--html4tags" option should just be used/not used
automatically based on the value of TM_XHTML.
The current chunk of perl would probably be awkward to store in a
variable or to use as a default value, but perhaps it could be made
into a script in the Markdown bundle's support dir?
Just an idea. Thanks.
---
Rob McBroom
<http://www.skurfer.com/>
I didn't "switch" to Apple... my OS did.
Hi All,
I've run into a glitch related to the C++ bundle of TextMate and
since I'm new to both TextMate and this list, I'm quite unsure how to
proceed with the bug report.
Here it is anyway. The symbol is not properly detected with
constructor in the form of:
Foo::Foo() :
boo(1)
{
}
"boo" is incorrectly detected as symbol instead of "Foo::Foo". My
bundle collection is quite up-to-date (rev. 7108).
Let me know if I should report this elsewhere.
Best,
Antoine
--
Antoine Beyeler
PhD Student
Ecole Polytechnique Fédérale de Lausanne
Laboratory of Intelligent Systems
EPFL-STI-I2S-LIS
Office ELE 132 - Station 11
CH-1015 Lausanne
Voice: ++41 21 693 73 54
Fax: ++41 21 693 58 59
Home page: http://lis.epfl.ch/119413
Project page: http://lis.epfl.ch/microflyers
Hi,
I have a question about TM's preference "word characters":
I also want to match a word if the word contains '\ '
Is this possible?
If I write into TM's preference "word characters" '_/\ ' it works
partly because TM takes all four characters, but I only want to match
'_' '/' '\ '
Any comments are helpful.
Thanks in advance.
Hans
I think TM do the things fine, as it simple and powerful renaming
files in the file drawer. That function has been for me really a
time-saver and is very natural that it was there as is. The solution
to the problem, IMHO, is to add a more complete behaviour to TM,
allowing Option-Drag of files in the drawer. Also, perhaps, info
for files (to make them executable, for example, via a dialog...
although I think this is not so important...)
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-----