I've installed TextMate, BBEdit, and XCode, and I seem to be caught
in the crossfire of a file association war. Example: TextMate wants
to be the editor for Fortran 90 files (.f90), but BBEdit wants to be
the editor for Fortran 77 (.f77) files, and XCode wants to be the
editor for plain old Fortran (.for) files. Does that make sense to
anyone?
What I'd like to do is remove all of BBEdit's and XCode's
associations, thus leaving TextMate as the editor for just about
everything (because it's set up to open unassociated files). Is there
an easy way to do that? I know of a program called RCDefaultApp that
can show the associations for a given app, but there doesn't seem to
be a way to do a "bulk unassociation," just one by one. Is there a
better way?
Trevor
Up until a few days ago I've used ctl-rightArrow to move to the end
of the current line in TextMate, and shift-ctl-rightArrow to extend
the selection to the end of line. Now it seems those commands move to/
select the next word, and are the same as opt-rightArrow and shift-
opt-rightArrow respectively.
It's entirely possible that I changed something on my end, but I'm
wondering if anyone else is seeing this? I'm using TextMate 1.5.3
(1258), and this started happening about two cutting-edge versions ago.
FWIW, ctl-rightArrow (and shift version) still work the way they
should in my other programs like Mail.app and TextEdit. It's only in
TextMate that they act weird.
- Dave
I am very happy to see remind being supported. (Thanks, Haris!) I
have two comments/observations, though.
First, though it is good practice to scope commands, there is a
reason to leave the display of your calendar unscoped. As it stands,
these receive the scope of source.remind. That means in order to view
your calendar, you need to navigate to your remind file(s). If they
are unscoped, you can view your calendar on the fly while working on
unrelated files.
Second, about the Remind-->Show-->This Month command. Why not use the
rem2html command? The output is more readable, and anyway it seems
odd to have html output of text---all that is being added is the nice
header.
A screenshot for comparison and an alternative monthly command can be
found at:
http://www.kalderon.demon.co.uk/Remind.html
(As anyone may gather from the screenshot, term here in London begins
in October.)
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
Hi,
I just had a glance at HyperEdit <http://www.tumultco.com/HyperEdit/>
It allows web preview of PHP pages. It would be very nice that
TextMate allows it too. Is this on the todo list? Or did I miss a step?
Anyway, I still be faithful to TextMate ;-)
Bonne soirée,
--
Jo <W:00°04'37" ; N:47°15'36">
1....'....12.....'....24.....'....36.....'....48.....'....60.....'....72
Hola Haris (and other LaTeX bundle maintainers),
is there a reason (philosphical?) that there is no command for \emph
{} but there is for \textit{}?
Dan
Hi,
I would like to report a minor bug. When editing a *.rb file, text in
quotations (double or single) appears green. I think there must be a parser
in TextMate that detects quotes, which sets off some flag indicating that
we're within quotes, which then causes that text to be displayed as green.
However, I think instead of detecting all quotes to set off the flag, Allan
should detect non-escaped quotes.
For example,
open("http://www.myspace.com/").read.match /<form action=\"(.*?)\"/
# Code from here on down appears green as though it were still within quotes
even though it was an escaped quote inside of a regular expression context.
Okay, that's my two-cent contribution to the world. I hope it really is
worth at least two cents.
Great program! Keep up the great work!
David :)
http://www.dbitsolutions.com/
intuitively, i would expect pasting in overwrite mode (⌥⌘O) to
overwrite instead of insert. doing an insert in this mode is
especially annoying since delete (⌦) cannot delete the text that was
shoved right.
---
michael reece :: software engineer :: mreece(a)vinq.com
I have a .h file written by a programmer of the school that believes
Whitespace Causes Cancer:
==============
- (void)applicationDidFinishLaunching:(NSNotification *)notification;
- (void)applicationWillTerminate:(NSNotification *)notification;
==============
I am trying to automate putting spaces after the )s with the search
RE /\)(?=\S)/, to be replaced with ') ' -- that's close-parenthesis,
space.
Doing this as a Replace All works as expected. But try pressing the
Next button, then Replace. The substitution does not take place.
Am I missing something?
-- F
I've been working on man pages for a bash script. It's been kind of a pain,
mostly because I don't know the formatting commands well enough. TM has made
so many other tasks easier, so I've wondered about using it for man page
writing.
Or ... what are other people doing so write these pages. I know there are
dedicated editors, but learning another editor isn't where I want to spend
my time. Maybe that's the best answer. That's why I'm asking this obviously
knowledgeable group. A man writing bundle? A different editor? Suffer? Give
it up and switch to ... no, I can't go on. ;)
Lewy
On Sep 19, 2006, at 10:50 AM, Allan Odgaard wrote:
> So the key bindings were not “messed up”, they were deliberately
> changed. And while it generally would appear as they do the same
> as ⌥(⇧)→ and ⌥(⇧)←, they also visit “sub word
> boundaries”.
Sorry, Allan, the new functionality doesn't buy me anything and it
took away something I've being using since I switched to TextMate a
year ago. There are probably people that benefit from the sub-word
jumps, but I select to EOL/BOL way too often to want to give up the
shortcut.
On Sep 19, 2006, at 10:50 AM, Steve Lianoglou wrote:
> [cmd] + [left/right arrow] jumps you around beginning/end of line ...
>
> For the record, that all works for me as intended: Version 1.5.3
> (1258)
It does for me too, but if you add the shift key to the mix (select
to BOL/EOL) the shortcut breaks :(
I'm generally open to change, love TextMate dearly, and rely on it
heavily. Consistency between apps is really important to me, and
TextMate does different things with shift-ctl-arrows than the other
apps I live in (like Mail, textarea boxes in Safari, and TextEdit).
So I either have to live with TextMate's inconsistency or keep
modifying TextMate's KeyBindings file or messing with iKey to map my
keypresses into something that works with TextMate.
BTW, what is TextMate's official "select to EOL" shortcut anyway?
- Dave
Even with the pervasiveness of XHTML, some web developers forget that the
XML specification only defines five built-in character entities and most
of the converted named entities that TextMate produces actually break some
apps that rely on this strict interpretation.
It would be convenient if there was another conversion command that would
use the numeric ISO character in place of the named entity. For example,
instead of of converting a ' character to ' the proposed command
would output ’ ...and – would instead be –
I would assume that TextMate would need to store an updated HTML -> XML
lookup table to do this, similar to the old command.
Has anyone else had problems with "Active GTD List View" and "Export
to Geektool" in the GTD bundle following the last couple of Textmate
updates?
When I run Active GTD List view I get the following error:
/tmp/temp_textmate.H0K13x:78: undefined method `pre_match' for
nil:NilClass (NoMethodError) from /tmp/temp_textmate.H0K13x:74:in
`each' from /tmp/temp_textmate.H0K13x:74 from /tmp/
temp_textmate.H0K13x:70:in `each' from /tmp/temp_textmate.H0K13x:70
from /tmp/temp_textmate.H0K13x:67:in `each' from /tmp/
temp_textmate.H0K13x:67
Export to Geektool throws up a different error that I can't copy and
paste, but it appears to be missing the 'pre_match' method as well.
Regular GTD List view still seems to work fine.
Thanks,
Adam
Over on the Markdown discussion list Jacob Rus writes:
> Incidentally, I recommend every Mac user on this list take a look
> at recent TextMate markdown support. The Markdown preview is now
> styled to look quite handsome IMO, and when using a theme which
> colors scopes such as lists, raw text, separators, etc. it is now
> quite easy to see syntax errors, etc. Michael Sheets and Allan
> Odgaard have worked together to make highlighting work for complex
> nested markup. If the official markdown spec were a bit more
> formalized and explicit, with coverage of edge cases, we make it
> just about perfect, I think.
I hadn't even noticed since I mostly work with MultiMarkdown
documents. Would it be possible to apply the CSS to the MultiMarkdwon
preview?
Thanks.
All the best, Mark
_________________
Mark Eli Kalderon
Department of Philosophy
University College London
Gower Street
London WC1E 6BT
Dept webpage: http://www.ucl.ac.uk/philosophy
Personal wepage: http://www.kalderon.demon.co.uk
I just updated the Latex bundle according to the instruction for
bundle updating in the help file.
Now the cmd-{ function does not work.
Also it cannot find TeXniscope:
/bin/bash: line 60: find_app: command not found Error locating
external viewer: TeXniscope
The shell variable TM_LATEX_VIEWER is correctly set.
All this worked fine until a moment ago.
What has happened?
I issued the commands:
christopher-brewsters-computer:/Library/Application Support/TextMate/
Bundles kiffer$ svn --username anon --password anon co http://
macromates.com/svn/Bundles/trunk/Bundles/Latex.tmbundle
Christopher
*****************************************************
Natural Language Processing Group,
Department of Computer Science, University of Sheffield
When committing with the SVN bundle, you have to manually deselect
any file that you don't want to commit. This is fine if the list of
files that has been updated is small, but when dealing with a list of
over 30 updated files, deselecting 29 files is a bit tedious when you
only want to commit one file. I'm asking the SVN Bundle maintainer
to add a button (or two) at the top of the commit dialog to allow
the ability for "Select All/Deselect All"
thanks.
Hello all,
I am using the ruby bundle a lot, and I like it so much! But there are
some annoyances where I have to decide between using TM/folding
or rewriting my code. IMO the editor/grammar should not be confused by
correct ruby syntax. I am using the latest textmate (downloaded today,
1258) and don't have any changes to the ruby bundle. I know, I could
fix these in my copy of the ruby bundle, but I'd like to see the fixes
in the distribution. Thanks in advance,
Patrick
--------------------------------------------------
lines=%{a
b # <--- I'd like to have no indentation here on 'reindent'
c} # missing folding marker
lines.collect do |line|
line
end.class # missing folding marker
tmp = lines.somemeth { |l|
l.upcase
}.foo # missing folding marker, wrong indentation
a = myvar.each do |x| x.foo end
def baz
a=case foo # missing folding marker (or the one at the end is one too many)
when :b # and incorrect indentation
c
when :d
e
end
end
--------------------------------------------------
Here is a command that i added to my XCode bundle to set a breakpoint
in the front most file. Note that this assumes that the project is
open in XCode. Thanks for the help on this list to make this work. In
case you are wondering why the name of the file and not the path
name.. The file reference type for XCode uses the name of the source
file only.
#!/usr/bin/env ruby
# import the frontmost opened project window in Xcode
proect = %x{"#{ENV['TM_BUNDLE_SUPPORT']}/bin/find_xcode_project.rb"}
named = File.basename(proect)
xCodeProject = named.sub(/\.(xcodeproj|xcode|pbproj)\/?$/, "").chomp
%x{osascript -e 'tell application "TextMate"
set myName to name of front document
end tell
tell application "Xcode"
tell project named "#{xCodeProject}"
set bp to make new file breakpoint with properties {line
number:#{ENV['TM_LINE_NUMBER']}}
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell'}
Tried to use the TODO bundle and it was taking an age (10s of
seconds) to give me a result. Some puts in the command code showed
it was parsing all the text files in the directory and sub
directories that the project file resided in. These files are a
super set of the ones in the project draw - I only expected it to
search in the project specific files. As a contrast using the 'find
in project command' to search for TODO returns instantly.
Dave.
There seems to be a bug in the Find function within the Bundle Editor.
1. Launch TextMate
2. Open the Bundle Editor
3. Navigate to, for instance, the C Grammar
4. Perform a Find for "function.c"
5. Perform a Find for "prototype"
6. Close the Bundle Editor and/or the Find window, reopen and try again.
7. Make a sad face
Sometimes, if I close both the Bundle Editor and Find windows, it
works, but usually not.
Oh, I just did an archive search and see that this was reported in
January. Well, maybe it was forgotten? *bump*
Cheers & thanks - this software is really great.
jb
Hi all,
I made some snippets using conditional
insertions for my declarations in Fortran.
For example, I have this one :
real*${1:8}${2: a/d}${2/(,a)|(,d)/(?1:llocatable)
(?2:imension)/}${2/,a|(,d)/(?1:\(\))/} :: ${3:name}${2/,d|(,a)/(?1:\(\))/}
$0
which does that :
http://guerom00.free.fr/clutter/Cond_insert.mov
What I would like to do is, in the “allocatable” or
“dimension” case, that the caret goes between the
braces after I type in the name.
In the snippet definition, that would be to somehow
define a $4 key but I really don't know how to do this...
Any help is much appreciated :-)
PS : Once again, due to my poor knowledge of RegExp,
if anyone has some suggestions/improvements for this
snippet, he is quite welcome :-D
Hi,
I found two sound files at /Applications/TextMate.app/Contents/
SharedSupport/Support/Sounds .
What are they for? I've been using TextMate for a while, but never
encounted them.
I can't sleep well until I get to know what they are. Searched this
list, to no avail.
This question might not *sound* useful, but what are the sounds for?
Takaaki
--
Takaaki Kato
http://samuraicoder.net
I have been working on the following script to set breakpoint is
XCode. I am not a Ruby expert and I am sure I am doing something
wrong. Any help would be appreciated.
Currenly my script looks like so:
proect = %x{"#{ENV['TM_BUNDLE_SUPPORT']}/bin/find_xcode_project.rb"}
named = File.basename(proect)
xCodeProject = named.sub(/\.(xcodeproj|xcode|pbproj)\/?$/, "")
breakLine = #{ENV['TM_LINE_NUMBER']}
print xCodeProject
astring = "osascript -e \'tell application \"TextMate\"
set myName to name of front document
end tell
tell application \"Xcode\"
tell project named \"#{xCodeProject}\"\r\n
set bp to make new file breakpoint
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell\'"
print astring
%x{#{astring}}
My output is:
iPhoto2PBase
osascript -e 'tell application "TextMate"
set myName to name of front document
end tell
tell application "Xcode"
tell project named "HelloWorld
"
set bp to make new file breakpoint
set file reference of bp to file reference named myName
set enabled of bp to true
end tell
end tell'
For some reason i have a bunch of white space after my project's name.
Also how do i put { and } into a string so they are printable?
Hi,
I really appreciate TextMate's implementation of Documentation. If
I'm correct, most of them are just webpages created by searching on-
line and/or creating HTML on the fly.
It would be great if, in the window, I could use a) Command-LeftArrow
and Command-RightArrow, b) Command-[ and Command-] and/or c) open in
browser.
Takaaki
--
Takaaki Kato
http://samuraicoder.net