Joachim et al,
There is one minor (but annoying) detail about the combination of
Objective-C completion and Bracket Matching. I have come to rely on
Bracket Matching quite heavily, but that frequently leads to
situations like this:
NSFileManager *fileManager=[NSFileManager defaultManager];
if(fileManager fileEx|
At this point completion (Alt-Esc) will not do anything because there
is no opening bracket before 'fileManager'. So the only way is to type
the closing bracket (which inserts the opening bracket), back-arrow,
and then Alt-Esc, and later having to skip over the closing bracket.
Not really a big deal, and I suspect it would be difficult to
implement, but in a perfect world I would hope code completion at the
above situation would insert the brackets along with a snippet that
lets me tab to any arguments and eventually past the closing bracket.
Gerd
Hello everybody,
as nobody answered my question regarding "Configuring syntax
highlighting programmatically", I suppose there is no easy/standard
way to programmatically configure syntax highlighting. Therefore, I
will try to modify the syntax highlighting file and the current theme
file programmatically and then tell TextMate to reload them. While
searching how to do this, I found OSX::PropertyList.load to read
property lists and after asking google I also found that there is a
function OSX::PropertyList.dump. However, finding this information was
more or less fortune.
Is there a central place where I can search for TextMate documentation
for bundle developers? How was I supposed to find out about
OSX::PropertyList.dump?
Best regards
Daniel Sadilek
I was thinking of making a screencast that shows off a bundle i wrote.
When I tried to test out some sample content and posted it to YouTube
and Google Video it looked like absolute crap.
I seem to recall that allan posted a guide on how he made the 'casts
somewhere in the wiki, but i can't find it.
If anyone has tips and tricks using snapz-x pro or a HOWTO please let
me know.
Thanks,
STeven
Hi -
Maybe a feature req or maybe there's
already a solution that I'm not aware of...
I was wondering, if there's a way either by
prefs or by some manual mod somewhere to
make 'delete reference' the default as opposed
to 'move to trash' in a project file that might
contain a large number of directory + file refs.
I've accidentally deleted quite a few files
this way, and would like to minimize
my cursing if possible. :)
-Shin
Hi,
During the last two days I've fought against my mind.
I tried to get rid of escaping a backslash in bash. I have a bash
scripts which reads the selection/line, does something, and finally it
returns the result as InsertAsSnippet back to TM. Fine. Among others
one has to escape '\'. OK. I did this in Leopard
T="123\\123"
echo "${T//\\/\\\\}"
Fine. BUT THIS ONLY WORKS UNDER LEOPARD!
Under Tiger I have to write this:
T="123\\123"
echo "${T//\\\\/\\\\}"
It took me two days to figure out that this is caused by using two
different versions of Bash.
Is this a known issue? If so, is there link to an article mentioning
more of them?
[I couldn't find an entry mentioning that macromates.com. Maybe worth
to have one.]
To be compatible with Leopard and Tiger I have to write e.g.:
T="123\\123"
echo "$T" | sed 's/\\/\\\\/'
Regards
--Hans
Hi folks:
I realize this a difficult question, but on 3 10.5.2 computers, I have
installed the "Edit in TextMate" bundle in /Library/InputManagers
On two machines it works fine, and one it appears to no longer work.
I am scratching my head to figure out why.
In each case I have copied, rather than symbolically linked, the
directory "Edit in Textmate". In the case of the one not working, I
have tried both linking and copying, but to no avail. The permissions
on each are the same and look like this:
ls -l /Library/InputManagers/Edit\ in\ TextMate
total 8
drwxr-xr-x 3 root admin 102B Nov 18 09:59 Edit in TextMate.bundle/
-rw-r--r-- 1 root admin 462B Nov 18 09:59 Info
ls -dl /Library/InputManagers/Edit\ in\ TextMate
drwxr-xr-x 4 root admin 136B Nov 18 09:59 /Library/InputManagers/
Edit in TextMate/
Is there anything obvious I could have skipped, or should try? I've
been using svn to sync my plist file in ~/Library/Preferences , so
these should be identical.
Thanks.
Bill
William G. Scott
Contact info:
http://chemistry.ucsc.edu/~wgscott/
Hello,
I recently built my first TextMate bundle (http://sadilek.blogspot.com/2008/04/dna-sequence-analysis-with-textmate.html
) for some simple DNA sequence analysis.
It was really easy to accomplish this with TextMate.
However, I'm missing one feature: is there any way to programmatically
configure syntax highlighting?
What I want to achieve is that a user can configure pairs of string
and color. All occurences of the string should be highlighted in the
given color.
I have already built a corresponding dialog (very similar to the
preference dialog of the TODO bundle) in which I can enter strings and
select a color for each. The "only" thing missing is using this
information for highlighting the text.
Best regards
Daniel Sadilek
P.S. This sort of function would be interesting for the TODO bundle,
as well: for highlighting the TODO markers in the text.
Hi,
I have the following HTML code [ | indicates the caret]:
<li>1. Einlesen des Textes</li>
<dd>
<b>Das Einl|</b>
</dd>
If I press ESC to complete "Einl" to "Einlesen" TM beeps. I believe TM
has a problem internally with the following "<foo>". If I have a space
or a bracket after the "l" like "<b>Das Einl| </b>" the completion
works fine.
Even if I have "Einl|foo" OR "Einl|<>" OR "Einl|</>" and I press ESC
TM tries to complete "Einl" correctly.
TM has ONLY a problem if between < and > occurs one or more characters
AND if the grammar is set to HTML (in Plain Text it works!).
Is this a bug? Is that behaviour configurable/changeable?
TM 1.5.7 (1464) on Mac OSX 10.5.2 (ppc)
Thanks,
--Hans
Hi all,
No I'm not asking for a PHP debugger in textmate, but I am curious what you
guys do to get around this. Currently I'm the only textmate user at the
company I work for, everyone else uses ZDE. While I wouldn't want to give
up all the things textmate offers, I am a bit jealous of the debugger they
have in their IDE as in some cases it really makes it easy to resolve
issues. So is there any options for us textemate users? Is there other
ways to use the debugger outside of ZDE that makes it possible to have a
debugger on the side?
Any advice would be appreciated.
Thanks,
Clark
hi there,
while fixing indentation of a php-file using 'indent selection' i
found that textmate is wrong in the following case:
if( condition ){
code;
}elseif( condition ){
code;
}
is indented like this:
if( condition ){
code;
}elseif( condition ){
code;
}
how to reproduce?
- enter the code above in an empty php-document
- select all
- indent selection
workaround:
put elseif on a new line
cheers
Till Backhaus
Hi,
Working in a TM project, I often have this problem:
I want to compare code with another file in the project. I want to
see them both at once; possibly to edit one or the other or both.
Then I find I can only look at one of the files at a time - the
second file always opens in place of the first one, inside the
project. I have to trust my memory about what the first file said.
Bad idea, usually. :-)
My current workaround is to create a new document, and copy code from
the second file into it, so it can float beside the project. But this
is a poor replacement for two active windows; takes several steps,
and only one of the files can be edited actively.
I could also close the project, and open both files. Again, a poor workaround.
Is there any other way?
If not, is there anyone else who'd agree this would be a nice feature for 2.0?
Especially this happens with CSS cascade files, where I need to
choose how the same parameters are controlled at different levels.
Steven Rowat
Hi all,
I got a Mac Book Pro and this is my first time using Mac. I have
been using the evaluated version of TextMate and found couple problems:
1) The top folder in the drawer occasionally closes when I switch to a
space and back. It doesn't remember which folders that I have
previously opened.
2) I have read the key binding help pages for page up/down keys.
However, I seriously cannot find the page up/down keys on my Mac book
pro keyboard. What is the alternative?
3) Will the split screen editing include in the next release? I find
it difficult without such feature.
Many thanks in advance.
Joe
Hi all,
I'm working on implementing an "Ammend Commit" feature to the git
textmate bundle. Anyone around here know if it's possible to pre-
populate the message? I'm trying to do is make it populated with the
text from the previous commit.
Thanks!
Tim
On Mon, Apr 14, 2008 at 8:31 PM, Derek Belrose <derekb(a)realgeeky.com> wrote:
>
> On Apr 14, 2008, at 2:19 PM, Niels Kobschaetzki wrote:
>
> >
> > Well, with no real meta-key quite hard ;)
> >
> > Niels *who wonders which the right meta-key in the cli outside of Xorg
> > is…right now he goes left control (on FreeBSD 7)*
> >
>
> Well, in linux 'alt' is my meta key and esc is as well...but neither of
> those work in textmate.
in FreeBSD alt isn't a meta-key (in a TTY) and I can't remap it to
meta because changing TTYs isn't possible anymore. I mapped control to
caps and meta to control (you still need esc for…well esc ;) ) -- and
then there's meta on the win-key but that's awkwardly placed above
backspace
Niels
Doing a ⌃H document lookup in a Ruby on Rails file won't lead me to
the desired documentation. Instead, the lookup disambiguation menu
loops infinitely.
This is, I assume, a problem with my Ruby installation, but it
particularly bites me in TextMate, and I hope someone here can point
me to a solution. I am running Ruby 1.8.6 (supplied with Leopard),
Rails 1.2.6 (supplied with Leopard), ri 1.0.1 - 20041108, and TextMate
1.5.7 (1455). I am not aware of having installed any additional Ruby
or Rails.
If I type "delete" in a Ruby on Rails document, and press ⌃H to look
it up in the documentation, I find among the many choices
"ActiveRecord::Base::delete". Selecting that does not produce the
documentation window, but shows a second context menu containing:
ActiveRecord::Base::delete 1
ActiveRecord::Base::delete_all 2
ActiveRecord::Base::delete 3
ActiveRecord::Base::delete_all 4
Selecting one of these simply reopens the menu, and I'm stymied. I
can't get my documentation.
"ri delete" on the command line produces a list in which every entry
is duplicated. Refining to ActiveRecord::Base::delete shows
ActiveRecord::Base::delete, ActiveRecord::Base::delete_all,
ActiveRecord::Base::delete, ActiveRecord::Base::delete_all
… and once again, I'm stymied. That's why I conclude it's a Ruby/
Rails installation problem. I'm not experienced enough to trace it.
Can anyone offer/point me to a fix?
— F
Hi,
Has anyone else found that it's far too easy to accidentally delete folded
code in textmate
(without noticing!)?
Several times I've found that the body of functions I thought I had safely
folded away
seemed to just disappear, because I must have accidentally hit backspace
onto the
"...".
Obviously this could lead to disaster -- does anyone know of a way to
disable deletion
of folded text? If I can't find a solution to this problem I may have to
stop using
textmate for coding (which would be a shame, because otherwise I like it).
thanks,
Ben
Hi,
Has anyone else found that it's far too easy to accidentally delete folded
code in textmate
(without noticing!)?
Several times I've found that the body of functions I thought I had safely
folded away
seemed to just disappear, because I must have accidentally hit backspace
onto the
"...".
Obviously this could lead to disaster -- does anyone know of a way to
disable deletion
of folded text? If I can't find a solution to this problem I may have to
stop using
textmate for coding (which would be a shame, because otherwise I like it).
thanks,
Ben
--
View this message in context: http://www.nabble.com/Accidental-deletion-of-folded-code-tp16662190p1666219…
Sent from the textmate users mailing list archive at Nabble.com.
Hi,
If I run a Command-R against RSpec file. I get an error as the
following:
/Library/Application Support/TextMate/Bundles/Ruby RSpec.tmbundle/
Support/lib/text_mate_formatter.rb:5: uninitialized constant
Spec::Runner::Formatter::HtmlFormatter (NameError) from /System/
Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rubygems/custom_require.rb:27:in `gem_original_require' from /System/
Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
rubygems/custom_require.rb:27:in `require' from /Library/Application
Support/TextMate/Bundles/Ruby RSpec.tmbundle/Support/lib/spec_mate.rb:
14 from /tmp/temp_textmate.bxz8HJ:3:in `require' from /tmp/
temp_textmate.bxz8HJ:3
Here is the file.
# text_mate_formatter.rb
module Spec
module Runner
module Formatter
# Formats backtraces so they're clickable by TextMate
class TextMateFormatter < HtmlFormatter
def backtrace_line(line)
line.gsub(/([^:]*\.rb):(\d*)/) do
"<a href=\"txmt://open?url=file://
#{File.expand_path($1)}&line=#{$2}\">#{$1}:#{$2}</a> "
end
end
end
end
end
end
Running tests from Terminal works. I think I'm supposed see a colorful
result in the window, right?
Any help would be appricated.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
I'm searching for a way to run a validate Web pages created in TextMate.
The site has headers and footers via php includes for each page.
If this possible?
Thank you very much,
Bob DeLaurentis
Hi there.
I seem to be running into issues with textmate's code folding.
Say I have a file open and folded to-the-max and edit the file in a
different application, the folding points get all screwed up? The data
seems to be persistent too, I have to tinker around in the file for a
minute or so till TM actually rebuilds the index.
Is there any sneaky way of forcing TM to rebuild the folding index or
something?
Cheers!
________________________/Az.________
is there a way to expand all the subfolders from a folder in the drawer?or
at least is planed to retain the state of opened folders when you close a
project and open again, in the next version?
--
Cristi
www.ralcr.com
Hi,
I try to use the wonderful tm_interactive_input (thanks a lot!!), but
I have a tiny problem.
I copied the latest version of tm_interactive_input.dylib into
$TM_SUPPORT_PATH/lib/.
If I create a tmcommand like this:
TM_INTERACTIVE_INPUT_DYLIB="$TM_SUPPORT_PATH/lib/
tm_interactive_input.dylib"
if [ ! -f "$TM_INTERACTIVE_INPUT_DYLIB" ]
then
echo "$TM_INTERACTIVE_INPUT_DYLIB doesn't exist, build it first"
exit 1
fi
export DYLD_INSERT_LIBRARIES="$TM_INTERACTIVE_INPUT_DYLIB$
{DYLD_INSERT_LIBRARIES:+:$DYLD_INSERT_LIBRARIES}"
export DYLD_FORCE_FLAT_NAMESPACE=1
TM_INTERACTIVE_INPUT=AUTO ruby -e "
puts 'decoy line'
print 'Enter Something: '
STDOUT.flush
puts gets
"
I see the dialog and the prompt but I cannot enter something and I
cannot close the dialog (only APPLE+. works).
What I'm doing wrong?
MacOSX 10.5.2 on ppc; TM 1.5.7 (1464);
compiled tm_interactive_input.dylib version svn 9338
BTW: How can I change the button's titles?
Thanks a lot in advance,
--Hans
Is there a way to fold (hide) C/C++ #ifdef's that are not defined in a
project? In emacs there is a minor mode "folding" that has a
hide-ifdefs/show-ifdefs command to auto fold sections of code embedded
between the #ifdef and #endif.
It seems like TextMate should be able to do something very similar. If
anyone knows of this, please let me know.
Thanks,
-- dv
--
View this message in context: http://www.nabble.com/Fold--ifdef%27s-tp16569251p16569251.html
Sent from the textmate users mailing list archive at Nabble.com.
Hi!
I have a repo to which I connect via https. The problem is that it
uses a self-signed certificate and I to tell svn each time to trust
the certificate (even so that I tell it to accept it permanently).
When I want to use now the svn-bundle nothing works because there is
no window where I can do any input of any kind for accepting the
certificate.
Any ideas what I can do about that? (It seems though the reason lies
in my svn-installation because the certificate doesn't get cached;
would be better if anyone would have an idea how to fix that).
Niels