Anyone got a bundle for python that works better? The built in one uses
bizarre colors, the folding support doesn't work properly (and, less
importantly, the nifty automatic quote closing doesn't handle """ and
''' quoted strings).
I looked at the wiki, but didn't see anything for python. Any hints on
improving python support would be appreciated.
Regards,
-- Russell
I got curious. Here's no-frills (and no-warranty) ctags lookup suitable
for use with the TM command editor. Select the identifier you're
looking for and run this command to find it. Tested with the output
from the ancient ctags command installed with Mac OS X. It doesn't
support any 'ex' commands except pattern matching. It probably does not
work with the extended ctags format, but it would be trivial to make
the necessary modifications.
There is one problem, however: either my URI syntax is wrong or
TextMate's 'txmt://' handler doesn't seem to be handling the 'line'
parameter.
It would be nice to be able to access this command from the contextual
menu.
ruby <<END
search_string = ENV['TM_SELECTED_TEXT']
exit if search_string == ""
# find the tags file in the folder containing the active file
tagfile_path = File.dirname(ENV['TM_FILEPATH']) + "/tags"
tags = File.open(tagfile_path, "r").read
tagarray = tags.scan(
/(#{search_string})\t(.*?)\t\\/\\^(.*)\\\$\\/\n/ )
linearray = tagarray.collect do |t|
puts t.join("\t")
identifier = t[2]
path = t[1]
sourcefile = File.open(path, "r")
while( sourcefile.gets )
break if \$_ =~ Regexp.new(Regexp.escape(identifier))
end
sourcefile.lineno
end
tagarray.each_with_index do |t, index|
puts "#{t[1]}:#{linearray[index]} #{\$_}"
command = %Q{open
txmt://open?url=file://#{File.expand_path(t[1])}&line=#{linearray
[index]}}
puts command
system(command)
end
END
Hello
ATM, in the find & replace dialogs (both for the signle file and
project-wide), there are single line areas to type the text, even tho
you can paste multiple lines there, its difficult to scroll through
them. I think it'd be really good to have a box with a few lines (i.e
assume the multi-line capability)
Regards
Duarte Carrilho da Graça
>> it seems to me, that the project drawer does not allow automatic or
>> manuel refreshment. [...]
> It refreshes if you deactivate and activate TextMate. A gesture I think
> I read somewhere that users have come to expect from many programs.
Alright, I missed that feature :-)
But anyway, I still think, that a preference for automatic refreshs
would be a nice-to-have feature. And since the auto-refresh capablity
is already there, it shouldn't be too difficult to do.
regards,
christian
I have been writing a little app that lists text files. When I double
click the NSTableView containing the file name I want it to open in
TextMate, place the caret on a specific line and scroll down to that line,
just like for example xcode does when double clicking in the error list.
Is there some way to accomplish this (preferably from Cocoa)? I don`t have
any problems opening the file in TextMate. Its the caret positioning that
is getting to me.
Joachim
Hi
Can you turn on/off horizontal scrolling? At the moment, my lines wrap
to the next line. I know its indicated that its the same line, but id
prefer it to scroll, if possible?
Thanks
Eoghan
Ok, I looked around the website, in the help files and in the menus and
I can not figure out how to turn on and off column typing...
Asking the dumb question,
Eric
I've got a part-timer about to start work with me on a Windows machine
on some Rails stuff, and I need to recommend a free or cheap text
editor for him to get started on (until I buy a macmini for him).
In particular, I think he needs the project drawer, because there's a
heap of files to work with in Rails, and something that has a PHP &
Ruby syntax highlighter included.
Sorry for being a little OT, but surely some of you must be recovering
Windows types and can recommend something??? I haven't touched a PC in
years :)
---
Justin French, Indent.com.au
justin.french(a)indent.com.au
Web Application Development & Graphic Design
Hi.
I just read the latest news on the TextMate site about a "quick launch"
thingie for selecting a project file
[
http://macromates.com/blog/archives/2005/01/28/elevating-the-standard/
]
I haven't tested this out in the beta but I think this is a great idea.
However, I have a much simpler request that is related to navigating
around TextMate mouse-free. How about a key command to switch focus
from the editor pane to the project-file-list pane. This is about the
only thing left that I have to touch the mouse for when editing!
Currently I manually click on a file in the project-file-list pane, use
the arrows to find another one, then press enter to open it for editing
(unless I'm in the mood for mousing). now... if there was a way to
jump back to the file-list pane via key-command while editing that
would be great. Of course, the quick launch will be helpful but the
above request seems like an easy feature to add, no? Net News Wire
Lite, which has the same drawer-content window layout, allows for
movement between these panes via left/right arrows ... making RSS
reading completely mouse free. Emacs users will love you for it Allan
:)
thx, K
I want a perl snippet that does this:
open($1, "$2") or die "Can't open file: $!\n";
while(<$3>) {
$4
}
I enter this into the snippet editor. What happens is:
1. The "entry point" is always $2. (in other words, type 'openTAB', get the snippet, but the insertion point is at $2)
2. hitting TAB after entering some text moves the insertion to $1, but any attempts to hit tab to move to the while ($3) fail; it just inserts a literal TAB.
3. escaping the $! with something like \$! has no effect; it always inserts '!n'. I even tried \\n and variations thereof with $! to no effect.
I'm not sure if this is a side effect of the Perl syntax rules/bundle (using the stock one, I long since abandoned mine in favor of the other, superior one :) or another weirdness.
As a side note, I want $1 and $3 to be the same thing; is it enough to just call 'em both $1?
Do Bookmarks not persist between sessions? I just spent an hour setting
up bookmarks in a markdown syntax template, thinking I'd be able to
open the document in the future and F2 (Next Bookmark) through the doc
to make changes.
It seems bookmarks are not permanent. Why not? Is there plans to make
them so?
-t
Just a little tip, the Append to Lines in Selection can also have
new-lines appended, so e.g. we can select:
case NSHomeFunctionKey
case NSEndFunctionKey
case NSPageUpFunctionKey
case NSPageDownFunctionKey
Append to lines in selection and type: “:<LF>break;” to get:
case NSHomeFunctionKey:
break;
case NSEndFunctionKey:
break;
case NSPageUpFunctionKey:
break;
case NSPageDownFunctionKey:
break;
Or select:
if([nonBase characterIsMember:ch])
else if([upcase characterIsMember:ch])
else if([alnum characterIsMember:ch])
And type: “<LF>{<LF>” to get:
if([nonBase characterIsMember:ch])
{
}
else if([upcase characterIsMember:ch])
{
}
else if([alnum characterIsMember:ch])
{
}
hi everyone
the bad news is that the latest beta (or how I installed it) ended up
deleting all my previous Custom snippets, macros etc. The good news I
guess is that I'm re-doing them (not so many anyway) in a much better
way :)
Separately I wanted to adapt the default SQL to colorize some of the
COLLATE and CHARSET data, partly just as a tutorial. My CocoaMySQL
creates table definitions including the following (unfortunately with
the "`" included), e.g.:
> `user` varchar(20) collate utf8_bin default NULL,
> [...]
> ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin
I wanted to offset the collate and CHARSET content so I cut-and-paste
within the SQL bundle to create the following:
> <dict>
> <key>foregroundColor</key>
> <string>#ff3300</string>
> <key>match</key>
>
> <string>^\s*\w+\s+(collate|utf8_bin|DEFAULT|CHARSET|utf8|COLLATE)\s*</
> string>
> <key>name</key>
> <string>Charset Types</string>
> </dict>
Alas nothing happens ;)
Could anyone give me a hand? This is hardly urgent, but I am just
curious what I am doing wrong... FYI I based it on the following; I'm
hardly a regex expert or anything but I thought I knew what was going
on...
Thanks!
Paul
> <dict>
> <key>foregroundColor[1]</key>
> <string>#CCBA33</string>
> <key>match</key>
>
> <string>^\s*\w+\s+(bigint|bigserial|bit|bit\svarying\(\d+\)|boolean|box
> |bytea|character\s(varying)?
> \(\d+\)|char\(\d+\)|var\schar\(\d+\)|cidr|circle|date|datetime|double\s
> precision|inet|int\(\d+\)|integer|interval\(\d+\)|line|lseg|macaddr|mon
> ey|numeric(\(\d+,\d+\))?
> |oid|path|point|polygon|real|smallint|serial|text|times(\(\d+\))(\swith
> outstimeszone)?|timestamp(s(\(\d+\))(\swithoutstimeszone)?)?
> |varchar\(\d+\))\s*</string>
> <key>name</key>
> <string>Data Types</string>
> </dict>
Hi,
I've defined a sinppet that automatically expands the " character to
"`"' used for quotation in latex.
However, I want this behaviour only to work, when editing a *.tex-file.
In the bundle-editor, there is a field named Scope and I suppose that's
the one I need - However, I don't know what exactly to specify there.
Any hints are gladly appriciated,
Regards,
Christian
I'm hoping I've just overlooked something to be able to do this:
Instead of having to drag a folder from the Finder on the project
drawer to add a live updating folder, it would be nice to be able to
add them with a folder chooser much like "Add Existing Files..." .
Also, I can't seem to reorder folders inside a group. Whereas I can
reorder groups. Is this a current limitation?
Thanks,
Patrick
P.S. Love the file chooser in the latest beta. It's like being in
IDEA, except for my rails development. :-)
AS a long time windows and mac user, prior to OS X and TextMate, my
environment for coding PHP and HTML was HTML-Kit which is the most
extensible and light environment there is for PC...and it features a
project panel much like the project drawer.... it is also quite easy to
develop additional plugins for it if there isn't already a syntax
plugin for Rails. It cames with a plug-in editor which is quite easy to
figure out.
Oh, and it's also Free.
http://www.chami.com/html-kit/
> From: Justin French <justin.french(a)indent.com.au>
> Date: January 27, 2005 10:23:20 PM EST
> To: TM Users <textmate(a)lists.macromates.com>
> Subject: [TxMt] comparable windows editor?
> Reply-To: TM Users <textmate(a)lists.macromates.com>
>
>
> I've got a part-timer about to start work with me on a Windows machine
> on some Rails stuff, and I need to recommend a free or cheap text
> editor for him to get started on (until I buy a macmini for him).
>
> In particular, I think he needs the project drawer, because there's a
> heap of files to work with in Rails, and something that has a PHP &
> Ruby syntax highlighter included.
>
> Sorry for being a little OT, but surely some of you must be recovering
> Windows types and can recommend something??? I haven't touched a PC
> in years :)
>
Hello all,
Stupid question here...I have:
ruby /Users/dc/Documents/txt/scripts/todo2log.rb $TM_FILEPATH
as a command, but it has suddenly stopped working, saying:
/bin/bash: line 1: ruby: command not found
the script:
#!/usr/local/bin/ruby
task_text = $stdin.read
task_text.gsub!("\\[ \\] ","[X] ")
from = File.basename(ARGV[0],".txt")
File.open("/Users/dc/Documents/txt/LOGS/
completed.txt",'a'){|archive_file|
archive_file.puts
archive_file.puts task_text
archive_file.puts " in #{from} #{`date \"+%H:%M %Y%m%d %a\"`}"
}
ruby is to be found there (/usr/local/bin), and it worked yesterday, so
I can't tell at all why this is happening...
but I know I'm missing something obvious
hints?
d
On 27/1/05 2:48 pm, "textmate-request(a)lists.macromates.com"
<textmate-request(a)lists.macromates.com> wrote:
> There are plans, yes... ;)
Ooh secretive.. Go on, tell us...
I'm very new to the group and TextMate so I hope that this has not
already been hashed out.
I'm having a problem when I "Save As" with an open document. What
happens is the original document disappears from the project list. The
new document takes its place. I have to reboot the app to get it to
refresh properly so I see both the new document and the original
document in the list.
For now, I can work around this (by simply creating new documents and
then cut and paste), but I think it's probably a bug...
I'm using OSX 10.3.7 and TextMate 1.1b1 (v1.1b1).
Thanks, v
Hi,
I just managed to create a custom Drag Command that works similiar to
the IMG-Dragging in HTML-Mode.
However, after dropping a file, TextMate inserts the correct code but
the focus stays with the project Drawer.
Since I insert the code as a snippet, I have to press Shift+Tab in order
to focus the editor pane before I can step through the different
snippet-variables. So please, set the focus to the editor pane after
drop-events or at an option to configure this behaviour.
I'd also like to see a popup displaying the various auto-completion
options instead of the ESC-cycle solution.
Thanks in advance,
Christian
I was wondering whether there were any plans to alter the way TM
auto-completes? The current system is good, but Id like it to be able to
auto complete from files other than the current one, say all open files or
all files in the project. Another probably even more useful ability would be
if the syntax files could specify a list of keywords that could also be
auto-completed on any file.
Any other thoughts on this anyone?
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Hi,
Firstly, heartfelt thanks and congratulations to Allan on the latest
beta. TextMate is getting better and better, seriously quickly.
There's still one key feature from SubEthaEdit I'd *love* to see in
TextMate, and that's the ability to highlight changes made to a
document as they're made, using a background colour -- in much the same
way that TM can now highlight the current line.
By way of context, much of my work involves updating and tweaking code
I've already written, and a great side-effect of the way SEE implements
its collaborative editing is that any changes you make to a file can be
highlighted as you go using a background colour of your choice. This
makes it incredibly easy to see just what I've changed in the current
session, so when I introduce bugs, I can very rapidly find what I've
done and put it right.
Could such a feature be included in TM? Or would it conflict horribly
with the new syntax highlighting system?
Cheers,
Andrew.
--
::
article seven Andrew Green
automatic internet andrew(a)article7.co.uk | www.article7.co.uk
Hi!
I wonder if I am the only person that would love to see nested
snippets. Apparently, at the moment, snippets are processed by regular
expression matching, which rules out nesting of placeholders. But
wouldn't it be great if one could do something like this (that's for
Prolog code):
findall(${1:X}, ${2:member(${1:X}, $4)}, ${1:X}s)
If you deleted $2, of course, the placeholders inside it would not be
activated any more.
And sorry if this has already been discussed, but I couldn't find any
references to this particular subject.
Ole
Hi Allan and List,
Sorry if this already exists, but I didn't find a way to do this with
the current beta. If I fire up TextMate (or activate it, because it
runs all the time) I often just do some normal writing of text. For
this I have a basic highlighting which just highlights URLs. But in
this situation (after pressing command-n) there is no highlighting
activated.
I would be very pleased if there could be some preference to define a
default highlighting which gets applied to new files or the ones
without a defined highlighting so that I not always have to adjust it
from hand to see blue URLs. :)
--
Torsten Becker
howdy,
is there a way to setup a default fold level for a particular mode so
when you open a file in that mode it will automatically fold at that
level? i looked in the help and at some syntax highlighting examples
but didn't see anything of the sort.
also, i would like to say i LOVE cmd-T!! i'm not using the project
drawer at all anymore. i have 2 requests concerning it tho. 1) can the
list 'wrap' so when you get to the top or bottom using arrow keys, it
will wrap to the bottom / top respectively? 2) can there be an option
to show the 'path' of the file, either in a tooltip or after the file
name because i have many files with the same name in some of my
projects and i can't tell which is which.
thanx!
- jamal