Salvete,
in 906, I observe the following behaviour:
- Open the Ruby language definition in the bundle editor (probably works
with others as well)
- Search for “indent”.
- Close search window
- Go to the beginning of the file
- Search for “def”
--> TextMate is still searching for “indent”.
Regards and thanks for a great editor,
Christopher
The new »Edit in TextMate« input manager only seems to work in
English apps. In non-english/localized (in my case German) apps the
new entry in the edit menu doesn't show up at all. Is that a known bug?
Cheers
Christian
Hi!
I develop my Rails pages with two monitors.
On the left Monitor, I have TextMate open, on the right monitor, I
have Safari with the current controller/action I'm editing open.
Instead of always manually:
1) Saving document in TextMate
2) Focusing Safari
3) Refreshing Safari
4) Put focus back on TextMate
I wrote the following Script in the Bundle Editor:
osascript -e "
tell application \"System Events\"
key down command
keystroke \"s\"
key up command
end tell
tell application \"Safari\"
activate
end tell
tell application \"System Events\"
key down command
keystroke \"r\"
key up command
end tell
tell application \"TextMate\"
activate
end tell
"
However, the last three lines make TextMate freeze, and Safari
doesn't even Refresh. As soon as I remove those three lines,
everything works (except of course, refocusing TextMate).
Any ideas?
Is there any support for TextMate? I bought TextMate a couple of
months ago.
Thanks a bunch!
R. Christian
Hi,
Since Tiger it is possible in Cocoa apps such as TextEdit to create
non-contiguous selections by holding command pressed. For example
command + double click can be used multiple times to select a few
words, or command + tripple click to select some lines. Seems like a
handy feature, would be neat to get that onto the ToDo list.
Gerd
Is there any way to change TextMate settings so that a string that is
currently selected in a document is automatically included in the Find dialog
when it is opened?
Cheers,
Steve
--
The reply-to email address is a spam trap.
Email steve 'at' shodgson 'dot' org 'dot' uk
Hi,
I'd like TextMate to provide better visual feedback when typing
characters that require multiple keystrokes. When you type Alt + e in
Mail.app, it displays ´ with yellow background, then you type e and
see the resulting é. In TextMate you see only the result. Not a big
deal for accented characters, but pain for some special keyboards -
like Russian phonetic that i use, where a lot of frequently used
letters are created by typing two, and sometimes three characters :)
Thanks
--
Ksenia
Rather than using just the *current* file as the source for
completions, I'd like to expand that a bit and make TextMate search
all currently open files for word completions.
I've searched around a bit, and I am aware of the standard
completions / completionCommand usage. However, it seems that there
is no way of getting the list of currently open documents in to the
shell. Is that the case?
TM_SELECTED_FILES appears to be pretty close, but it only works on
"selected" files within the project. Is the list of shell variables
in the manual a comprehensive list? I'm hoping there's a secret
something that I've missed :)
Regards,
Duane Johnson
(canadaduane)
http://blog.inquirylabs.com/
Hello everybody,
I have been trying Textmate for a couple of days now and am quite
stunned -- it really has improved greatly compared to an older
version I had tried before.
It seems to have most of the key features I am missing in TeXShop for
writing my Ph.D. dissertation (like tabs and code folding), so I am
seriously considering switching.
Let me ask one question about using it for LaTeX however:
I would prefer to keep TeXShop to control the LaTeX processing rather
than Textmate's own processing since I have some .engine file (i.e.
scripts that are started form within TeXShop) I would like to keep to
perform some specific tasks.
Of course I can simply set TeXShop to "external editor", open my
main .tex file there and process it, but this is not so nice because
of two reasons:
- You have to switch applications. Not a big deal, but pressing a
shortcut from within Textmate was nicer.
- Syncing does not work. I suppose TeXShop would have to provide a
feature to call an external editor and jump to a defined line, just
like in TeXniscope (where it works fine).
Is there any chance that there will be a solution in the feature that
would allow Textmate so tell TeXShop to begin the TeX processing
(with a given .engine used), and that would allow syncing?
Has there been a feature request for TeXShop already to implement the
needed features?
Or am I simply missing something?
Thanks in advance,
best
Matthias
--
Matthias Damm
mad(a)macpla.net
PGP key: http://macpla.net/MatthiasDamm.asc
PGP fingerprint: CED3 6074 7F7D 3148 C6F3 DFF2 05FF 3A0B 0D12 4D41
Hello,
I am a bloody newbie to both TextMate and TeXniscope, but I would
like to give this combination a try. Unfortunately, I could not find
an answer to the following problem (despite looking in the archives
and googling the web). How do I configure the LaTeX bundle: Typeset &
View that it starts TeXniscope from within TextMate ? Is anyone
willing to share the script ?
With best regards
Christof
I'm using the ruby run script cmd-r and have found that I can't get
statements inside the following block:
If __FILE__ == $0
Unless I extend it to:
If __FILE__ == $0 || File.basename($0) =='tmruby.rb'
Any help is much appreciated.
~tim
Hi,
there is a discussion about LaTeX editors going on in the BibDesk
users list (with some enthusiastic recommendations for TextMate ...).
Let me forward one mail that could be interesting here as well.
To sum it up:
- Someone is missing code collapsing for \footnote{} commands (very
good idea if you ask me ... I've seen that it is already in the Wiki
as a feature request.)
- Adam Maxwell offers a completion controller that could improve the
interaction between BibDesk and TextMate.
Best,
Matthias
--snip
> Von: Adam Maxwell <amaxwell(a)mac.com>
> Datum: 20. Januar 2006 01:14:01 MEZ
> An: bibdesk-users(a)lists.sourceforge.net
> Betreff: Re: [Bibdesk-users] Slightly OT: Changing editors
>
>
> On Thursday, January 19, 2006, at 04:03PM, Matthias Damm
> <macplanet(a)macnews.de> wrote:
>
>>
>> Am 19.01.2006 um 23:15 schrieb Simon Spiegel:
>>
>>> This does indeed look great. But does code folding work with
>>> \footnote in LaTeX? I haven't been able to set this up and I'm not
>>> sure whether it can be done. Any suggestions? If this works I'll
>>> switch immediately.
>>
>> It does not at the moment (as far as I know, I definitely have not
>> found all the magic yet ...), but the author of TextMate uses LaTeX
>> himself (and BibDesk ...), so the chances should be good to get this
>> feature implemented.
>
> That does look nice. I wish it used the standard completion
> mechanism, though, instead of that big window (our plugin won't
> work with it). If he's interested, we have a BSD-licensed
> completion controller that mostly works...
>
> Adam
>
> _______________________________________________
> Bibdesk-users mailing list
> Bibdesk-users(a)lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
--
Matthias Damm
mad(a)macpla.net
PGP key: http://macpla.net/MatthiasDamm.asc
PGP fingerprint: CED3 6074 7F7D 3148 C6F3 DFF2 05FF 3A0B 0D12 4D41
This will build in the current directory minus the .c extension.
TM_FILENAME_BASE=`echo $TM_FILENAME | cut -d\. -f1`
#echo Base Filename: "$TM_FILENAME_BASE"
echo '<pre>'
cd "$TM_DIRECTORY"
cc -I. -o "$TM_FILENAME_BASE" "$TM_FILENAME"
if (($? >= 1)); then exit; else echo "build successful"; fi
echo '</pre>'
# cc must be in your path, if you've installed OS X gcc package you should
be fine
This will build and run the file your working on and display the output.
The object file is filename minus the .c extension.
TM_FILENAME_BASE=`echo $TM_FILENAME | cut -d\. -f1`
#echo Base Filename: "$TM_FILENAME_BASE"
echo '<pre>'
cd "$TM_DIRECTORY"
cc -I. -o "$TM_FILENAME_BASE" "$TM_FILENAME"
if (($? >= 1)); then exit; fi
./"${TM_FILENAME_BASE}"
echo '</pre>'
# cc must be in your path, if you've installed OS X gcc package you should
be fine
'njoy,
Mark
Hi,
Is there some way to disable spell checking in Plain Text mode? I
find the underlining of "misspelled" words annoying. I've tried to
use some other modes, but they have their own quirks. Thanks for any
pointers.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
I was looking at some C source with TextMate and it seems the C
regexp for functions is broken when there is a new line in the middle
of the argument list. What I mean is that if your functions are
defined like this:
static int
AliasCreate(
Tcl_Interp *interp, /* Interp for error reporting. */
Tcl_Interp *slaveInterp, /* Interp where alias cmd will live
or from
* which alias will be deleted. */
Tcl_Interp *masterInterp, /* Interp in which target command
will be
* invoked. */
Tcl_Obj *namePtr, /* Name of alias cmd. */
Tcl_Obj *targetNamePtr, /* Name of target cmd. */
int objc, /* Additional arguments to store */
Tcl_Obj *CONST objv[]) /* with alias. */
{
Then TextMate will not see them as functions. I tried fixing the
regexp, which is
{ name = 'declaration.function.c';
begin = '(?x)
(?: ^ # begin-of-line
| (?: (?<!else|new) (?<=\w)\s+ # or word + space before
name
| (?<!&&) (?<=[*&>])\s* # or type modifier before
name
)
)
([A-Za-z_][A-Za-z0-9_:]+) # actual name
\s*\( (?=[^)]*\) # match "(" and use look-
ahead for ")"
(\s+const)?\s* # optional const modifier
(\{|\n)) # start bracket or end-of-
line
';
end = '\)';
beginCaptures = { 1 = { name = 'entity.name.function.c'; }; };
patterns = ( { include = '$base'; } );
},
But so far, I've been unable to make it ignore new lines in the
argument list.
Does anyone have any ideas?
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
Does anyone know if Textmate will still run on the MacBook Pro or iMac
with the Intel Duo processor? I'm assuming it will run with Rosetta.
Are there any plans for a Universal Binary for Textmate?
Hi Allan,
Quite a while ago there was the question how to search a document for
information, then come back to the spot and continue editing.
You mentioned the technique to scroll around, read what you need,
then press Command-J (Jump to Selection). Too bad that Find or Copy/
Paste move the selection.
How about a command "Jump to Last Edit" and bind it to Cmd-Shift-J?
Is this possible to have as a macro, or as a TextEdit extension?
One could design it with a few parameters
- How many edit positions to memorize? 5 sounds good to me.
(to cycle through them, recent to older)
- How far apart edit positions should be to be different?
10 lines, less than half a screen, sounds good to me here.
So if change happens "near" another edit position, the position
moves to the cursor spot.
- Jump across files? I don't think so.
Edit positions should be part of the Undo queue.
I'm not trying to interfere with future expansions or better ideas
like stacks of tags, except that simplest often works best.
BTW I'm an raving fan of two windows of the same file side-by-side,
because I copy a lot (and I forget a lot). For Projects this is easy
achieved, has just a few refresh hickups when I edit a point above,
then switch to the other window. I see twice the amount of stuff, so
split windows wound't cut it.
For single file edits, like in a Fugu session, it is utterly
impossible to open a second window. Then I resort to throwing chunks
in a scratch pad, and jumping around in the same file. Hence the
topic. ;-)
Regards,
Peter
I finally got around to creating a small screencast for using TM to
write LaTeX. You can find it here: http://skiadas.dcostanet.net/
afterthought/2006/01/09/textmate-latex-screencast-no-1/
(direct link to the vid: http://skiadas.dcostanet.net/uploads/
TextMateScreencast1.zip).
It's probably mostly aimed at new users I guess. It's about 25MB.
Let me know what you think and what you would like to see in future
screencasts. Be harsh.
Haris
At the screencast "Putting Flickr on Rails" right after the
beginning, a doctype is added to application.rhtml. After typing
'doctype' a dropdown menu appears (right behind the word) with the
XHTML doctypes to chose from. How is this done? I've tried to find
the shortcut, but no success ... or is this a user-defined macro?
'k?
<http://media.rubyonrails.org/video/flickr-rails-ajax.mov>
--
k 'E B O Y
. /|\/|\/|\/|\
. / \/ \/ \/ \
Hello!
(I'm new to the list and to TextMate. Let me know if this has
already been covered.)
Version 1.5 (906) --
Problem: Web Preview does not reflect changes made in a CSS file to
which an open, previewed HTML documents refers.
Steps:
Open separately a HTML file and then a CSS file that's used by that
document. Evoke Web Preview on the html document. Switch to the CSS
document and change something that will effect the visual
presentation of the html document.
Pause, waiting for something to happen. ... Nothing Happens. Web
Preview does not change;
Save the CSS document. ... Web Preview does not change;
Switch to the HTML document and make a small change ... the change to
the html is immediately available, but the change to the CSS file
does not appear;
Close the Web Preview window, save the html file, reopen Web
Preview ... The change to the CSS file remains invisible to Web Preview;
Open the Drawer on the Web Preview window and press the "Refresh Now"
button ... No Change -- modification to the CSS file still is not
reflected;
QUIT TextMate, reopen the two files in question and apply Web Preview
to the HTML document.
--> NOW, the changes in the CSS document are properly reflected.
Clearly, Something Is Wrong Here.
It is as if Web Preview has CACHED the CSS file and is using the
cached version, rather than the current version, when it parses (or
whatever) the HTML file for preview.
The current behavior substantially reduces the value of Web Preview.
I hope we can get a fix soon. After the skiing trip of course! ;)
Related to this, I'd really like a "persistent" Web Preview when
using a Project. Consider the simplest example: one CSS file and
one HTML file open in a project. I select the HTML file and choose
Web Preview. I switch to the CSS file to make some edits and ...
WHAT! the Web Preview window disappears.
Of course, what I need is for the Web Preview of the HTML file to
STAY OPEN open while I edit the CSS file. And for it to reflect
changes to the appearance of the HTML file as I make changes in the
CSS file. I imagine that this situation may apply to editing other
sorts of "include" files (PHP?). When I make changes to ANY TYPE of
file to which an open HTML file refers, a Web Preview of that HTML
file should be updated, AND include the changes to the included files.
Thanks,
eo
Hello,
the "copy condensed sql to clipboard" function removes newlines from
string literals as well, effectively changing the semantics of the
query. It would be nice if it replaced them with the correct escape-
sequences, or even left them in...
e.g. if you copy "SELECT 'line 1
line 2' " to you clipboard, you get "SELECT 'line 1 line 2'", that
actually does something else... Especially nasty with INSERT/UPDATE
queries etc.
regards,
Matthijs
Hi,
I just connected via FTP with CyberDuck and edited a file with
Textmate. Then I wanted to save it back directly to the server with a
new name. The file is saved to a temporary folder on my local machine
but is not automatically uploaded ...
Is there anything I forgot about?
Thanks for any help ... 'K
--
k 'E B O Y
. /|\/|\/|\/|\
. / \/ \/ \/ \
Hey all,
i get another PATH (or the like) RubyMate versus command line
discrepancy.
i wanted to test osx/cocoa install against previous rubygems installed.
then i've done (cut'n paste) a small script using both kind of ruby
extension :
#!/usr/bin/env ruby -w
require 'osx/cocoa'
require 'plist'
require 'iphoto2' #<<-- line 6
blaahblahblah
this script is working well using command line however using RubyMate
i got :
RubyMate r2496 running Ruby v1.8.4.
>>> ~/work/Ruby/RubyCocoa/test.rb
LoadError: no such file to load -- iphoto2
method require
in test.rb at line 6
at top level
in test.rb at line 6
something really strange to me i dis install 'plist' and 'iphoto2' at
the same time and using the same tool 'rubygems'....
ans, they are in the same directory :
[...]
/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1
/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1/iphoto2.rb
/opt/local/lib/ruby/gems/1.8/gems/iphoto2-1.0.1/test_iphoto2.rb
[...]
/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0
/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0/plist.rb
/opt/local/lib/ruby/gems/1.8/gems/plist-1.0.0/test_plist.rb
[...]
in case u've some light about that obscure cavern ;-)
best,
Yvon
When opening a folder in TextMate, sometimes the "file browser" thingy opens
on the right and sometimes it opens on the left.
Does anyone know how to make it always open on the left?
Thanks,
Simon
Hi,
there seems to be an error in the very first rule of the SQL Syntax
in the svn repository.
it starts:
{ name = 'declaration.create.sql';
match = '(?i:^\s*(create)\s+(aggregate|conversion|database|domain|
function|group|(unique\s+)?index|language|operator class|operator|
rule|schema|sequence|table|tablespace|trigger|type|user|view)\s+)
([''"`])?(\w+)';
but should have an additional
([''"`])?
at the end.
Because as it is now, the closing ` (e.g.) starts a string after the
frist CREATE TABLE for me and that makes syntax highlighting useles
for the rest of the file.
Soryu.
Hi all!
When documenting old code, I find myself trying to stick to ~80
columns, but plenty (well some) of my actual code lines is longer
than that. So what I'd like is to have the right-margin displayed at
say 78 chars, but soft wrap on the current window size.
Is this already possible? If not, is this useful in general?
Thanks,
Daniel.