hello:)
I've some difficulties with the macro "Convert ASCII Symbol to LaTeX",.
arrowShortcuts.rb is there :
/Library/Application Support/TextMate/Bundles/Latex.tmbundle/Support/
bin/arrowShortcuts.rb
and in the macro we have : command = "\"$TM_BUNDLE_SUPPORT/bin/
arrowShortcuts.rb\"";
or Show TM_* Variables give :
TM_BUNDLE_PATH=/Library/Application Support/TextMate/Bundles/
TextMate.tmbundle
TM_BUNDLE_SUPPORT=/Library/Application Support/TextMate/Bundles/
TextMate.tmbundle/Support
so i think that the script is not found !
the script is fine because i put the code in a command and the
command works very well
But i've a question
TM_BUNDLE_SUPPORT is unique or this variable depends on Bundle ?
how do I have to make so that works?
Thanks
Alain
Hi guys,
The sexy and helpful textmate manual says I can fold/unfold code
blocks using my F1 key. But I can't get it to work. What needs to
be selected? Where should my caret be placed? Do I have to utter
some secret magical phrase while clicking F1?
Thanks,
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
On Feb 21, 2006, at 10:50 AM, Oliver Taylor wrote:
>> ------------------------
>> ONCE
>> (twice)
>> Three times a lady.
>> Not as much as the Gambler.
>> (This sucks)
>> How would you know?
>> ------------------------
>>
>> How do I match the 2nd line but not the 5th?
>> How do I match the 6th, but not he 3rd?
So I just read in the documentation:
> [...] it is not possible to use a pattern that matches multiple
> lines. [...]
Total bummer, although this still may be possible using "begin" and
"end"
So, to restate my question in a more clear way... (thanks for your
patience Haris) I know nothing about programming...
I'm trying to run a perl search/replace command via a 'bundle
command'. I've entered the following into the 'Edit Command' box:
perl -pe '
s/^([A-Z]+.*[A-Z]*\s*)\n(\(.+\))\n(.+)$/\n\n\t\t\t\t$1\n\t\t\t$2\n\n
$3/g;
'
I've set the input to 'Entire Document' and the output to 'Create New
Document'.
But when I run the command none of the tabs or newlines I've
specified in the replace section of the command are applied to the
text in question. I've also tried the command with the 'e' option at
the end which, as far as I can tell, is supposed to evaluate the
right side of the search/replace command as regex... but it's not
working.
Any help is appreciated.
Just so you know, I'm trying to write a set of commands that will
transform the plai-text output from Final Draft when exporting a
screenplay. If I can get this working then I can bring all my scripts
over to TextMate.
As an example, this:
-----------------
OLIVER
(I want to tell you)
I've got things to say.
Dr. Robert
-----------------
should look like this:
---------------------------
OLIVER
(I want to tell you)
I've got things to say.
Dr. Robert
---------------------------
The Go To File command doesn't show files in the same easy-to-read
hierarchy as the project drawer. This is especially evident when a
project contains many files that have been carefully arranged into
custom groups. In this situation, the flat list of the Go To File
dialog isn't as easy to navigate as the project drawer.
This is why I like to select files directly from the drawer instead
of with Go To File. With mouse navigation, this works fine; I can
simply point and click. But I prefer to use the keyboard as much as
possible, and there doesn't seem to be any way to move the keyboard
focus to the project drawer (unless of course I use the mouse, but
that defeats the whole point of keyboard navigation). Is there some
hidden key combo not mentioned in the manual that will do this? Thanks,
Trevor
I'm trying to get what seems like a simple custom coloring rule
working. As a simple test, I just want to set a custom color for all
characters between <code> and </code>.
I added this to the HTML language definition:
{ name = 'markup.code.html';
begin = '<(code)>';
end = '</(code)>';
captures = { 1 = { name = 'entity.name.tag.html'; }; };
patterns = ( { include = '$self'; } );
},
I then went into the Fonts & Colors panel and set a custom color for
the scope markup.code.html, but I don't see any effect.
I read Allan's blog post on scopes and it really seems like the above
should work, but I'm finding a lot of conflicting information on this
topic. The wiki mentions a number of things are out of date so I'm
not sure where the authoritative docs are. The blog? The wiki? If so,
which page?
The full explanation of scope is useful (assuming it's up to date),
but it would be really nice to have some simple, practical examples
just to get started. I believe instant gratification as a strong
motivator for further research. :)
Thanks!
- Scott
> On Feb 22, 2006, at 2:08 AM, Haris wrote:
> You've done amazingly well with the bundle so far. I'm very impressed.
Thanks.
> First of all, why don't you use the find&replace feature of
> TextMate? Then you could record the whole thing as a macro.
You know, I never even thought of that. I'll give it a shot.
Still, I'd like to know how to run a perl search/replace command with
regex in the replace side properly for future reference.
> So maybe a search without ^ and with ([^\n]+) instead of (.+)$
> might do the trick.
tried that, didn't work.
--------------------
I'll try these things and report in the morning on my progress. To
bed now. Thanks again Haris, you are continually my savior.
On Feb 21, 2006, at 5:23 PM, Haris wrote:
> [...] I am not sure what you mean by "piped thru a command" [...]
Sorry, what I meant this that I'm using the search and replace perl
string inside a bundle command.
On Feb 21, 2006, at 2:58 PM, Haris wrote:
> Oliver: One thing you could try, if these things are hierarchical,
> is to have a begin pattern for the first line, and ending in
> something hopefully meaningful.
Here's what i managed to come up with:
begin = '^[A-Z]{2,10}.*[A-Z]*(\s*|\()$';
end = '\.$|\?$|\!$|--$|-$';
...which suits my needs *okay* but not perfectly.
----------
I'm using the following (adapted from Dr. Drang's suggestion):
^([A-Z]+.*[A-Z]*\s*)\n(\(.+\))\n(.+)$
for a search and replace string like this one:
s/^([A-Z]+.*[A-Z]*\s*)\n(\(.+\))\n(.+)$/\n\n\t{4}$1\n\t{3}$2\n\{2}$3/;
...which makes sense to me, but it doesn't insert those tabs or
newlines when piped thru a command. Clearly I'm missing something
here. As you can no-doubt tell, I'm a complete noob when it comes to
all this programing.
As an example, this:
-----------------
OLIVER
(I want to tell you)
I've got things to say.
Dr. Robert
-----------------
should look like this:
---------------------------
OLIVER
(I want to tell you)
I've got things to say.
Dr. Robert
---------------------------
> If I may suggest, it would be helpful if you add a test screenplay
> in the bundle, so that anyone in the future working on it knows how
> it looks like and what not to break. Like the test.tex we have in
> the LaTeX bundle.
I'll do that.
Hello
I am a professor of mathematics and my essential activity is to
create exercises which I arrange in a structure called "Base"
Often, I work in the following situation:
I create a file "exercise.tex", i put this file in the "Base"
then I create a new file "try.tex" :
\documentclass{myclass}
\begin{document}
\input{exercise.tex}
\end{document}
I do not have enough knowledge on scripts to obtain this:
In Textmate, when i work on an file exercise.tex, i would like wih
one command or script (?)
to compile "try.tex" directly.
I think that a modification of "LATEX & VIEW" should be enough...
With this idea and
with FILE = exercise.tex (the file which I create)
with VAR_FAV_CLASS = myclass
1) modification of FILE in ---> NEWFILE
NEWFILE =
"\documentclass[]{VAR_FAV_CLASS}
\begin{document}
\input{$File}
\end{document}"
2) Compilation of NEWFILE like in "LATEX & VIEW"
Is it possible ?
Would somebody have an idea to build this script?
in LATEX & VIEW, line 35/36 there is
if [ "$TEX" != latexmk.pl ]
then "$TEX" ${TM_LATEX_OPTIONS:=--shell -escape -
interaction=nonstopmode -file-line-error-style} "$1"
I'm not sure but "$1" is perhaps the file I want modify
Thanks
Alain Matthes
I'd like to find and replace a variable inside of a document. How can
I do this? [VAR] Represents the variable:
Find: title="[VAR]"
Replace With: title="dummytext"
Text in Document I want it to affect:
title="Webmaill"
title="Control Panel"
title="Customer Service"
title="Web Hosting"
How can I do this in TextMate?
Also TextMate has no way to upload/browse SFTP/SSH/ or FTP? The price
is way to steep for an application that can't connect and upload the
edited files directly.
Please let me know your thoughts,
Best Regards,
Court Kizer
>> ------------------------
>> ONCE
>> (twice)
>> Three times a lady.
>> Not as much as the Gambler.
>> (This sucks)
>> How would you know?
>> ------------------------
>>
>> How do I match the 2nd line but not the 5th?
>> How do I match the 6th, but not he 3rd?
>
> What is different in each case? The presence of ONCE exactly in the
> line before?
>
> Indeed, I'm uncertain what the logic behind the matches is supposed
> to be. Is the second line matched because of the sequence of cardinal
> numbers, a parenthetical following a line of all capital letters, a
> parenthetical with only one word, a parenthetical with no capitalized
> letters, a parenthetical followed by a statement... and so on.
Yeah, sorry.
Matching the 2nd line (but not the 5th): I want to match any line
that begins and ends with a parenthetical ... ^\(.*\)$ ... but only
when the line is directly preceded by a line of all capitol letters,
Matching the 6th (but not the 3rd): Actually, I got this one
backwards. I want to match the 3rd but not the 6th. So... Any line
that is directly preceded by the match I described above.
----
I'll check out the IRC channel.
> [1] http://www.geocities.jp/kosako3/oniguruma/
I'll check it out.
Hi,
I already know that it is not possible by default to have a different
tab and indention size.
I'm new to TxMt so I want to ask if this is possible to achieve via
scripts / bundles ?
One example to show my need. I'm working in a Python projekt, where
the interpreter handles one tab as 8 chars. We use an indention of 4
chars.
My workaround at the moment: set Tabs to 8 convert all tabs to spaces
the set tabs to 4 soft spaces.
If somebody has hints, I'll work on it for myself.
Thx Jonatan
Hi,
It would be helpful if the language bundle editor had a pop-up hierarchical
menu of the standard name
Something like:
keyword
meta
string
support
variable -> other.
storage parameter.
string
So when writing a language syntax, and looking for names, you can just have
the insertion point in the right location, click on the pop up to see what
is appropriate, then either it inserts when you release the menu, or there
is an insert button beside it.
tim
____________________
---
"Of what use is a philosopher who doesn't hurt anybody's feelings?"
--Diogenes of Sinope, Herakleitos and Diogenes pt. 2, Fragment 10 (tr. by
Guy Davenport, 1976)
I don't know where else to turn for help with regex, so I turn to
you. Consider the following:
------------------------
ONCE
(twice)
Three times a lady.
Not as much as the Gambler.
(This sucks)
How would you know?
------------------------
How do I match the 2nd line but not the 5th?
How do I match the 6th, but not he 3rd?
Is this possible?
P.S. Do you guys have any really good references for regex (aside
from the manuel), where I can hunt down problems like this?
I just wrote a blog entry on a convenience command for Ruby on
Rails... but I'm not sure to whom I should address this. I'd like to
see it added to the default Rails bundle that ships with future
TextMate versions if others find it useful. How should I go about
submitting this for review?
Thanks,
Duane Johnson
P.S. Blog entry is at http://blog.inquirylabs.com/
Hi guys,
I get errors when I try to run some Ruby scripts in TM.
NB: I don't have those errors when I run these scripts in Bash (even
from inside TM) or in IRB
I have "TM_RUBY /usr/local/bin/ruby" in my shell variables.
e.g.
When using erb (example taken from Programing Ruby):
---------
#!/usr/local/bin/ruby
require 'erb'
input = %{\
<% high.downto(low) do |n| # set high, low externally %>
<%= n %> green bottles, hanging on the wall
<%= n %> green bottles, hanging on the wall
And if one green bottle should accidentally fall
There'd be <%= n-1 %> green bottles, hanging on the wall
<% end %>
}
high,low = 10, 6
erb = ERB.new(input)
erb.run
-----------
I get:
RubyMate r2496 running Ruby v1.8.4.
>>> ~/bin/test.rb
/Library/Application Support/TextMate/Bundles/Ruby.tmbundle/Support/
tmruby.rb:180: bad value for range (ArgumentError)
from /Library/Application Support/TextMate/Bundles/Ruby.tmbundle/
Support/tmruby.rb:120
===========================================
When using 'sqlite3':
-----------
#! /usr/local/bin/ruby
require 'sqlite3'
db = SQLite3::Database.new( "/Users/fatal/bin/test.db" )
p db.execute( <<-SQL
SELECT * FROM posts;
SQL
)
db.close
-----------
I get:
RubyMate r2496 running Ruby v1.8.4.
>>> ~/bin/jots/test2.rb
(eval):5: [BUG] Segmentation fault ruby 1.8.4 (2005-12-24) [powerpc-
darwin8.4.0]
Program exited with return code.
NB: This script works, but I get the error, sometimes scripts using
sqlite3 doesn't work at all, sometimes I only get "Program exited
with return code."
I have other errors of this kind, but examples are more complicated
to share or I didn't take note of them.
Am I missing something?
Thanks for any tips.
-
Fred
>> When searching in the "go to symbol" pop-up, I find that because
>> the search alphabetizes the results, it's very much the opposite
>> of useful.
>
> It shouldn’t alphabetize them, but instead rank them based on how
> good a candidate the match is for the search/filter string.
>
> For example if we have George Costanza and Charlie Sheen in the
> list, and enter CS, it will show both names (as both contain C and
> S), but it should show Charlie Sheen first, since CS is a “better”
> match for that, than it is for George Costanza.
Okay, that makes sense.
A ranked-order search result makes a lot of sense when the order of
symbols is unimportant and/or there are not enough identical results
to confuse the list. But when there are a lot (say, over 20) of
identical results, the placement in the document becomes very
important, in fact it becomes just as important as the match itself.
A simple way to achieve this is with a search result that also
outputs line-numbers... I know that would do the trick for me. Now
for a crappy mock-up! This is not the prefect example, but you get
the idea.
First I tried an update and got:
svn: Failed to add directory '/Library/Application
Support/TextMate/Bundles/SQL.tmbundle/support': object of the same
name already exists
I deleted the checked out directory and did a fresh checkout and got
the same error!
I notice that the last 2 commits are:
intermediate step to rename support
recover capitalized Support directory
Any ideas what this might be? Possibly some naming clash as a result
of an attempt to rename Support to support.
Stephen
Hi,
I just wanted to post a nice snippet I just made...er, actually I just
ripped it from the fun (function) snippet. It goes like this:
prototype.${1:method_name} = function(${2:first_argument}) {
${0:// body...}
};
I have it set up to expand on proto<tab>. Actually, after thinking
about it, maybe this would be better:
${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
${0:// body...}
};
Either way, I think this is really useful because like all good snippets
it keeps you from typing a bunch of stuff that is always the same, and
it keeps you from forgetting the trailing semicolon (which the fun
snippet and auto-close brace omit).
Any chance on getting something like this included with Textmate out of
the box? Forgive me if this has already been discussed; a quick search
on the list and wiki didn't turn up anything on this subject.
Also, the fun snippet that's included uses "# body..." instead of "//
body...". Is this intentional, or was the hash just forgotten when
porting the snippet from another language?
Mike
There has been some talk in the past about TextMate's undesired
tendency to use a software generated bold for the Bitstream Vera Sans
Mono font.
One fix seems to be to run:
sudo rm -rf /Library/Caches/com.apple.ATS
Afterwards one will have to reboot the machine, but then the bold
shows up as drawn. And what a difference it makes:
Though I don't know for how long this fix will work. And it will
still look incorrect when the bold text is light on a dark background.
Hi All,
I'm evaluating TextMate and find it very useful, but I can't get it
to remember the [BBEdit] Theme that I have downloaded.
1: Does the non-licensed version not remember importet Themes?
2: Is something else wrong?
Here's how I do it:
- Doubble-click the Theme file in the Finder -> opens it in TextMate
and activates it..
- Quit TM = It's gone from the Theme selector in Prefs, but still in
my AppSupport folder...
Hints?
Jakob Peterhänsel
"Tell me why, don't we try, not to break our hearts
and make it so hard for our selfs"
P.S.B. 1987
Email: jakob(a)hjemme.dk
AIM: Marook
Phone: +45 22684961
Hi,
I'm working on a grammar for Io (www.iolanguage.com) and I've got a
basic one working. I notice that in the other languages I've looked
at, typing a "{" , getting the auto-paired "}" , and hitting return
with the cursor in the middle, gets you a new line and the
indentation decreased. Like so:
before:
if(true) {}
hit return:
if(true) {
}
Now, in Io, matching parens serve as block delimiters (effectively
anyway). So you could have this statement:
if(true) then (
// do something
)
So, I'd like to have the same behavior for parens as one gets for
braces, but I can't seem to locate where this is enacted. As far as
I can tell, there is no key in the grammar or language preferences to
auto-expand this sequence, but I'm new to all this.
Does anyone know if this is part of the language definition system
that I can control?
Thanks in advance,
John
John Clayton
---------------------------------------------------------------------
http://www.fivesquaresoftware.com
john(a)fivesquaresoftware.com
---------------------------------------------------------------------
CatSlapper - Manage and install multiple Tomcats
When searching in the "go to symbol" pop-up, I find that because the
search alphabetizes the results, it's very much the opposite of useful.
In my screenwriting bundle it's possible to have over 20 matches for
the same symbol-search-string, if I can't see those results in the
order they are in in the document, the search is useless. Wouldn't
this be a problem in other languages as well?
There is a "Keep Symbols Alphabetized" option in the pop-up at the
bottom of the window, why not the search pop-up? Am I missing a
preference somewhere?
hello:)
I can't delete a space with the key "delete" or with the key <- also.
I need to delete the file preference of textmate
i would like to know if i made a bad thing and if can modify the bad
prefs
finally which can be the origin of this problem?
Greetings Alain Matthes
In the bundle I've created I'm attempting to refine my scopes. Take
the following example:
INT. SHIPYARD DOCKS - DAY
The above line falls under the scopes "text.splay.screenplay" (the
document) and "splay.slugline" (the element). What I want is to be
able to define the three separate elements: "INT", "SHIPYARD DOCKS",
"DAY" as independent scopes, while retaining their status as
"splay.slugline" So "INT" would fall under the jurisdiction of
"text.splay.screenplay splay.slugline splay.slugline.setting".
I guess the simple question is: how do you stack more than two (the
document and the element) scopes?
In Markdown a link gets text.html.markdown,
markup.paragraph.markdown, markup.underline.link.markdown... how do I
do that?
I recorded a macro to search forwards and backwards for
(?=(?:private|public)( static)? ), which is working nicely for
ActionScript, but it'd be interesting to see it tied into the language
grammers somehow. Any thoughts?
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
ben(a)incomumdesign.com
http://www.incomumdesign.com
This has been such a fun project. Couldn't keep myself away:
http://blog.inquirylabs.com/2006/02/19/syncpeople-on-rails-07/
== Summary ==
Easily navigate between ActionMailer models, views, partials,
controllers, helpers, javascripts and stylesheets with a single key
(keypad 'enter') in TextMate. This release also adds an Enhanced
TODO List (ctrl-shift-t) and is now officially LGPL licensed.
Duane Johnson
(canadaduane)
http://blog.inquirylabs.com/
Not sure what you need to debug this, but all of a sudden indentation
has stopped working in the php bundle. I've tried trashing the pref
files, my bundles and themes, and even trashing txmate itself, and
nothing is bringing it back.
Any Suggestions?
Eric Coleman
I'm stumped again. I got > comments working for plain text documents
using this method, but now I want to set // type comments for all php
source. I've tried adding the following preferences to both PHP and HTML
bundles, using source.php as the selector:
/* preferences */
{
shellVariables = (
{ name = 'TM_COMMENT_START';
value = '// ';
},
{ name = 'TM_COMMENT_END';
value = '';
},
{ name = 'TM_COMMENT_MODE';
value = 'line';
},
);
}
Doesn't work! I've tried with .php files set to both HTML and PHP
language types.
Idears?
Thanks again, Q
PS: Is it _always_ appropriate to use "HTML" as a file's language? I
noticed the "Source -> View source as HTML" command doesn't work unless
you select " X PHP -> Use HTML".
Hello,
I'm trying Spell Catcher X, and I notice that it does not work so
well with Textmate when using "Auto-Show Suggestions" with a popup
list: the popup list is shown when there is a mistake, but no more
input is processed until I click on the window.
Is this a known bug of Textmate or Spell Catcher X? As both programs
look really nice, I'd be glad to have both work together.
Thanks,
Alan
--
Alan Schmitt <http://sardes.inrialpes.fr/~aschmitt/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Arrrg! Trying to understand the format of bundle definitions.
Trouble number one: I'm trying to change the type of comments used for
plain text types. I've added the following to the patterns array of the
"Plain Text" language definition:
{ name = 'comment.line.right-angle-bracket.text';
match = '>.*$';
}
And nothing happens. I then tried creating a new bundle for a new type
of document ("Test Doc") and setting the patterns array to only the
above. Nothing.
What am I doing wrong?
Thanks if you can help!
Quinn
hello:)
Allan,since Texlive 2005 or Tetex 3 this code
I announce you that since Tex one should not any more
use this code (used in the Latex templates)
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse % we are not running PDFLaTeX
\else
\pdfoutput=1 % we are running PDFLaTeX
\pdftrue
\fi
must be replaced by \usepackage{ifpdf}
% Use: LaTeX: \usepackage{ifpdf}
% plain: \input ifpdf.sty
% The package provides the switch \ifpdf:
% \ifpdf
% ... do things, if pdfTeX is running in pdf mode ...
% \else
% ... other TeX or pdfTeX in dvi mode ...
% \fi
% The package can also be used to set global
% documentclass options:
% \RequirePackage{ifpdf}
% \ifpdf
% \documentclass[pdftex,...]{...}
% \else
% \documentclass[...]{...}
% \fi
note in texlive 2005 :
Last year, we kept \pdfoutput and other primitives undefined for DVI
output, even though
the pdfetex program was being used. This year, as promised, we undid
that compatibility
measure. So if your document uses \ifx\pdfoutput\undefined to test if
PDF is being
output, it will need to be changed. You can use the package ifpdf.sty
(which works under
both plain TEX and LATEX) to do this, or steal its logic.
Greetings
Alain
Hello all, hope to pick yer brains...
I notice that you can define multiple files for a template, but I can't
figure out how to create multiple files when running the template. Why
else would TM use multiple files in a template? But then again, there
seems to be only one $TM_NEW_FILE variable per template.
I'm trying to setup a template for a particular case when I will always
need several files at once. For now I'll just define one template for
each file I will need generated.
A quick side question, how can I populate env variables at runtime? If
my template has ${WHAT_DID_I_HAVE_FOR_LUNCH_TODAY} and I want to run a
template every day... is it possible to popup a dialog with fields to
fill-in or something?
Thanks!
Quinn
Strange Find and Replace Bug - r906
Summary:
Doing a selection based find and replace consistently inserts many lines
of code when it should be only replace one word with another single word.
Reproducing The Bug:
* Open the attached (.rb) file
* Switch to Ruby on Rails editor mode
* Do a full line selection on line #39
* Hit cmd+f to go into the finder window
* Replace the word ":now" with "now" while using the shift button to do
a selection only replace
Results:
* Replaces the entire line #39 with only the word "now"
* Performs a selection from line #39 down to #110
* Duplicates a bunch of code under line #110 (copies and pastes the new
selection)
Details:
* Ignore and wrap are checked. Reg exp. is unchecked.
* Restarting Textmate doesn't seem to fix the issue.
* Soyru in IRC helped me confirm the bug, so it is not specific to my
situation.
Environment:
* I don't use manager hacksies.
* I haven't edited the default bundle editor commands.
* I do use quicksilver, starting it is ctrl+alt+cmd+space; Everything
else is at defaults
class TimerController < ApplicationController
#
def index
unless @user.master_timer_is_stopped?
# initialize current task timer
# initialize task list
@upcoming_tasks = @user.upcoming_tasks
@recent_tasks = @user.recent_tasks
@favorite_tasks = @user.favorite_tasks
end
end
# Start a master timer
def start_clock
@user.start_master_timer
redirect_to :action => 'index'
end
# Pause a running master timer
def pause_clock
@user.pause_master_timer
redirect_to :action => 'index'
end
# Stop a running or paused master timer
def stop_clock
@user.stop_master_timer
redirect_to :action => 'index'
end
# Start a task
def start_task
# capture the time now so all timers match up
:now = Time.now
# find currently selected task
:selected_task = @user.selected_task
# if a selected task exists
if :selected_task
# if the recently started task is already the selected task
if :selected_task.id == params[:id]
if :selected_task.status == 2
# notice - can't start a timer that is already running
elsif :selected_task.status == 1
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = :selected_task.id
# change status of the this task
:selected_task.status = 2
:selected_task.save
else
# error - stopped tasks can't be selected
end
# if the recently started task is not already the selected task
else
# stop the task timer if it's still running
if :selected_task.status == 2
:task_timer = TaskTimer.find(:first,
:condition => "ended_at is null and " +
"user_id = #{(a)user.id} and " +
"task_id = #{:selected_task.id}")
:task_timer.ended_at = :now
:task_timer.save
end
#change status of selected task to stopped
:selected_task.status = 0
:selected_task.save
# find the newly started task
:selected_task = Task.find(params[:id])
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = params[:id]
# change status of the this task
:selected_task.status = 2
:selected_task.save
end
# if no selected task exists
else
# find the newly selected task
:selected_task = Task.find(params[:id])
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = params[:id]
# change status of the this task
:selected_task.status = 2
:selected_task.save
end
redirect_to :action => 'index'
end
private
before_filter :find_user
#
#
def find_user
@user = session[:user]
end
end
class TimerController < ApplicationController
#
def index
unless @user.master_timer_is_stopped?
# initialize current task timer
# initialize task list
@upcoming_tasks = @user.upcoming_tasks
@recent_tasks = @user.recent_tasks
@favorite_tasks = @user.favorite_tasks
end
end
# Start a master timer
def start_clock
@user.start_master_timer
redirect_to :action => 'index'
end
# Pause a running master timer
def pause_clock
@user.pause_master_timer
redirect_to :action => 'index'
end
# Stop a running or paused master timer
def stop_clock
@user.stop_master_timer
redirect_to :action => 'index'
end
# Start a task
def start_task
# capture the time now so all timers match up
now
# capture the time now so all timers match up
:now = Time.now
# find currently selected task
:selected_task = @user.selected_task
# if a selected task exists
if :selected_task
# if the recently started task is already the selected task
if :selected_task.id == params[:id]
if :selected_task.status == 2
# notice - can't start a timer that is already running
elsif :selected_task.status == 1
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = :selected_task.id
# change status of the this task
:selected_task.status = 2
:selected_task.save
else
# error - stopped tasks can't be selected
end
# if the recently started task is not already the selected task
else
# stop the task timer if it's still running
if :selected_task.status == 2
:task_timer = TaskTimer.find(:first,
:condition => "ended_at is null and " +
"user_id = #{(a)user.id} and " +
"task_id = #{:selected_task.id}")
:task_timer.ended_at = :now
:task_timer.save
end
#change status of selected task to stopped
:selected_task.status = 0
:selected_task.save
# find the newly started task
:selected_task = Task.find(params[:id])
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = params[:id]
# change status of the this task
:selected_task.status = 2
:selected_task.save
end
# if no selected task exists
else
# find the newly selected task
:selected_task = Task.find(params[:id])
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = params[:id]
# change status of the this task
:selected_task.status = 2
:selected_task.save
end
= Time.now
# find currently selected task
:selected_task = @user.selected_task
# if a selected task exists
if :selected_task
# if the recently started task is already the selected task
if :selected_task.id == params[:id]
if :selected_task.status == 2
# notice - can't start a timer that is already running
elsif :selected_task.status == 1
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = :selected_task.id
# change status of the this task
:selected_task.status = 2
:selected_task.save
else
# error - stopped tasks can't be selected
end
# if the recently started task is not already the selected task
else
# stop the task timer if it's still running
if :selected_task.status == 2
:task_timer = TaskTimer.find(:first,
:condition => "ended_at is null and " +
"user_id = #{(a)user.id} and " +
"task_id = #{:selected_task.id}")
:task_timer.ended_at = :now
:task_timer.save
end
#change status of selected task to stopped
:selected_task.status = 0
:selected_task.save
# find the newly started task
:selected_task = Task.find(params[:id])
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = params[:id]
# change status of the this task
:selected_task.status = 2
:selected_task.save
end
# if no selected task exists
else
# find the newly selected task
:selected_task = Task.find(params[:id])
# start the master timer, if necessary
unless @user.master_timer_is_running?
@user.start_master_timer
end
# start a new task timer timer
TaskTimer.create :started_at => :now,
:user_id => @user.id,
:task_id = params[:id]
# change status of the this task
:selected_task.status = 2
:selected_task.save
end
redirect_to :action => 'index'
end
private
before_filter :find_user
#
#
def find_user
@user = session[:user]
end
end
There are two heredoc-rules for the PHP grammar:
A generic one and an HTML one with HTML Syntax (the first rule even).
I improved the HTML one a little by including the PHP variables and
made another two for XML and SQL.
Maybe someone with svn write access could include them in the default
grammar. Forking the PHP grammar does not really work as one had to
fork the HTML as well…
Have fun,
Soryu
Hi Robert, hi Mark (et al.),
I've just downloaded TextMate and subscribed to this list, curious if
there's also a ConTeXt bundle to work with.
As I have read your thread from last year I was wondering how things
are going?
Or does anybody else has good news for us ConTeXters?
Steffen
Thanks Niko,
mysql is definitely in my path. I use tcsh and mysql is there:
setenv PATH /usr/local/mysql/bin:$PATH
However /usr/local/mysql/bin/ and other directories that I set in my
path are not reported in the search path that the MySQL bundle tells
me it is using:
"Couldn't find mysql
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin"
I tried modifying the PATH variable in the Advanced pane of TextMate
Preferences, to no avail.
So as a hack, I created a symbolic link to mysql in TextMate using
these commands:
cd /Applications/TextMate.app/Contents/SharedSupport/Support/bin
ln -s /usr/local/mysql/bin/mysql mysql
It's not pretty but it works. I'd still like to figure out how to
modify the PATH that the SQL Bundle uses ...
JR
I looked through the mailing list history and I know the whole FTP
integrated thing has been talked about a lot already but hear me out;
I just started working for this company where I HAVE to work off of
the server. I don't like it, but that's the way it's gonna have to
be for now (working on it though ;)
So I tried to figure out a way to work with project windows off of
the server and discovered it was impossible... What I do now, is
open all the files via FTP and then drag them to an empty project and
hide all the windows. It's a major pain but I do it once in the
morning and leave it open all day so that's not too bad.
What I would like to know is if there's a way I could automatize the
process, some sort of "add all open windows to empty project" type
macro or something along those lines. Not as good as being able to
save projects on remote servers, but it would be good enough for now...
I also read that someone had some kind of Perl/rsynch combo that sort
of mimicked the project on server idea, but I couldn't find enough
info to get anything working.
Any help in optimizing a remote type workflow would be greatly
appreciated. Thanks!
(As a side note, I almost got my boss to switch from BBEdit, but the
whole remote project issue blew it.)
Yann
> minimal.design textmate at minimaldesign.net
> Wed Feb 15 00:10:25 GMT 200
>
> I just started working for this company where I HAVE to work off of
> the server.
> ... Any help in optimizing a remote type workflow would be greatly
> appreciated.
Transmit has a new feature they're calling 'Edit in Whatever.' Edit
any remote file, in any app — even graphics!
<http://www.panic.com/transmit/>
Editing Files in an External Editor
Transmit can edit any remote file, using any local editor. Transmit
will download the file to a temporary directory, and watch the file
for changes. When you hit "Save" in your local editor, and the file
is changed, Transmit will automatically upload the file to the server.
Select the file to be edited.
- Choose File > Edit in [Editor Name]. (The name of the Finder's
default editor for that file type will be displayed.)
- Keep Transmit running while editing the file.
- Make the desired changes in the editor.
- If you want to keep the changes, save the file in the editor.
Transmit will save the file to the server automatically. The editor
can be closed or quit when it is no longer needed.
If you wish to edit files in a different editor than the Finder's
default:
- Right click, or control-click, the file to be edited.
- Choose Edit With > [Name of Editor You Want To Use]
- If the editor you wish to use isn't present, choose Edit With >
Other... and select the editor manually
If you wish to permanently edit files in a different editor than the
Finder's default:
- Choose Transmit > Preferences.
- Click Files.
- Click the icon next to Custom File Editors.
- Type the extension you wish to associate (for example, html), and
choose the application you wish to edit with.
I have mysql 4.1 installed on my machine in /usr/local/mysql/bin/.
It's up and running just fine.
When I run the "Execute Selection as MySQL Query" command from
TextMate, I get the following error message:
"Couldn't find mysql
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/
CocoaDialog.app/Contents/MacOS
/bin
/sbin
/usr/bin
/usr/sbin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin"
Any ideas?
Thanks,
Jeff
Here's what I'd like to do:
On my webserver, I'll edit my .bash_profile to include and alias for 'mate'
to a shell script. The shell script will do the following:
1. secure copy the argument file to my local tmp folder
2. open the the local tmp file with 'mate -w'
3. once I finish editing the file in TextMate and close it, secure copy the
new file to replace the file on the webserver
The problem is, I don't know anything about shell scripting. :-)
But I'm wondering if anyone else already has something like that or would be
willing to help write one.
Any other ideas for accomplishing the same goal (edit remote files with
TextMate) are also welcome.
Thanks,
Simon
P.S.-I saw the copy to tmp folder idea in this useful view safari source
applescript:
http://comox.textdrive.com/pipermail/textmate/2005-September/005727.html
I did a super quick search and didn't notice anything, so I am
posting here (feel free to tell me to shuddap if it's been discussed
before).
Isn't there a way we could customize bundles that are "added" in. I
was thinking that when you do an update, if a bundle gets updated,
but I have a "customized" version (aka, i added a few things) I won't
get the updated bundle. Is this correct? Or is textmate smart and
only inserts my updates?
Eric Coleman
Hello all,
I'm trying to work out how to order files/folders in the project drawer.
I dragged and dropped files in to the drawer ordered however they're
listed in a bit of a random order now.
Any ideas?
Thanks!
Alastair
hi everybody.
i really LOVE the TODO-Bundle (thanks to whoever wrote it). as i'm
using it alot, i added some features:
- i like to see, wether s/th is TODO, FIXME or CHANGED. so i added
these words to the list and colored them differently.
- i added buttons to hide each category.
- as i'm a programming nube, i add own "changed"-comments
("NikosChange") to stuff i change in my RoR- and Joomla-projects to
keep track of what i do (wrong ;-). i added this as another category.
adopt this to your needs.
as i'm a programming nube (but you know that already), i'm all but
shure that i didn't make mistakes in my changes (you know that, too).
so if anybody and especially the author of the TODO-bundle finds bugs
in my code, please tell me over this list.
regards, niko.
ps: excuse my bad english.
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
Hi Robert, hi Mark (et al.),
I've just downloaded TextMate and subscribed to this list, curious if
there's also a ConTeXt bundle to work with.
As I have read your thread from last year I was wondering how things
are going?
Or does anybody else has good news for us ConTeXters?
Steffen
I have a server that gets all the åäö (and the like) botched when I
upload my stuff to it. I hate to see all the ä stuff when I
edit, so I thought a macro to do a project wide search and replace
would be nice just before uploading the stuff.
I tried to record a macro that would do a project wide find/replace,
but it didn't seem to work. Suggestions?
A reference to characters can be found at
http://dillo.rti-zone.org/Html.testsuite/entities-latin1.html
Andreas
> inspired by the UI thread I hacked together a TextMate plugin. It
> shows all bundle shortcuts applying to the current scope whenever a
> modifier key is held for more than a second.
I agree this plugin is fantastic, but I had to remove it after just a
few minutes of use as I had no idea I often hold modifier keys while
I'm thinking, and it kept popping up when I didn't want it to.
Simply changing the method to invoke it would make it immensely more
useful.
Thanks for your work on this! Very cool idea..
Nate.
---------------------
CLIXEL Design & Coding -- http://clixel.com/
BRAINFAG Comics -- http://brainfag.com/
Hello,
I'm evaluating TextMate (coming from Vim) and I really like what I
see. I'm now trying to create my first Bundle, to deal with some
editing I do every week to create the Caml Weekly News. The format
I'm using is xml, so I'd like to have a Bundle with the same language
syntax, a few new snippets, and a command stolen from the HTML bundle.
About the language syntax, I'm a little confused by what the manual
says (http://macromates.com/textmate/manual/
language_grammars#language_grammars) about scopeName:
"scopeName (line 1) — this should be a unique name for the grammar,
following the convention of being a dot-separated name where each new
part specializes the name. Normally it would be a two-part name where
the first is either text or source, and the second is the name of the
language or document type. But if you are specializing an existing
type, you probably want to derive the name from the type you are
specializing. E.g. Markdown is text.html.markdown and Ruby on Rails
(rhtml files) is text.html.rails. The advantage of deriving it from
(in this case) text.html is that everything which works in the
text.html scope will also work in the text.html.«something» scope
(but with a lower precedence than something specifically targeting
text.html.«something»)."
So I tried a scopeName of "text.xml.CWN" to see if I would get XML
like syntax hilighting for free, but it did not work. I had to do:
{ scopeName = 'text.xml.cwn';
fileTypes = ( );
patterns = ( { include = 'text.xml'; } );
}
including the text.xml language.
Is this the correct way to proceed?
Another question is about the presence of a support directory in a
tmbundle (as there is one in the html bundle). Do they need to be
created by hand in the Finder, or is there a way to add a Support
file using the Bundle Editor?
My last question is about snippets: it seems that it's not possible
to invoke a snippet while completing one (that is, in the middle of
tabbing through all the fields to fill). Is it the case?
Thanks a lot,
Alan
--
Alan Schmitt <http://sardes.inrialpes.fr/~aschmitt/>
The hacker: someone who figured things out and made something cool
happen.
.O.
..O
OOO
Is there a way to run some code from a Bundle before TextMate opens a
file? The idea would be that when I run either:
$ mate foo.c
or
$ mate myprojectdir
and then click on foo.c I get to see if foo.c is version controlled
and then I check it out if it is. The version control system that I
use (BitKeeper) has a 'get' mode that checks out the files read-only,
and before editing you have to check them out in 'edit' mode. I have
written a function in a bundle that does this, but I have to call it
manually. I would like that to be automatic...
Thanks,
-Oscar
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
Hi Folks,
inspired by the UI thread I hacked together a TextMate plugin. It
shows all bundle shortcuts applying to the current scope whenever a
modifier key is held for more than a second.
It really is just a proof of concept and missing some features. I am
not even sure if I will continue to work on it and am kind of busy
the upcoming week, but I was curious about what people thought about
that one. Is it useful at all?
Get it here: http://www.cocoabits.com/TmShortcutSnitch/
Gerd
hi Sebastian Friedrich,
I am copying this reply to the textmate user list (which you can join
at http://lists.macromates.com/mailman/listinfo/textmate), since I am
a bit crunched for time right now.
Original request:
>i saw that you are maintaining the perl bundle for textmate. if
>that's the case, is there any possibility to add html (or even sql
>for that matter) syntax coloring in HERE documents in similar ways
>that js/css/php scope is activated within html. I find myself having
>to edit lots of html within perl scripts (yeah, nobody i work with
>uses templating) and it would be quite helpful if there's a way to
>turn on HTML scope within those HERE blocks.
>
>for instance, a HERE keyword like HTML_BLOCK would trigger all
>content to be html scope with variables ($, @) highlighted as such.
>
>print <<HTML_BLOCK;
>[HTML]
>HTML_BLOCK
>
>any chance you would like to implement that or could give me some
>hits on how to get this to work. Thanks so much in advance.
I think this should be pretty straightforward, declaring the .heredoc
scopes to inherit styling from html (in cases where all heredocs are
HTML styled) or making a new .heredoc-html scope to match only names
with "HTML" in them which then inherit from HTML styles.
Could someone on the list help out with details?
best wishes, Eric
--
Eric Hsu, Assistant Professor of Mathematics
San Francisco State University
erichsu(a)math.sfsu.edu
http://math.sfsu.edu/hsu
Has the problem with using environment variables for macros been
solved yet? I have a problem using the macro "Generic Completion" in
the LaTeX bundle. It complains about "/Macros/LaTeXcomplete.pl" not
being found, and since the command line is
command = "\"${TM_BUNDLE_PATH}/Macros/LaTeXcomplete.pl\"";
I suspect it's a problem with setting TM_BUNDLE_PATH.
/Ola
> I'm working on a solution which takes the output from MTASC and
> outputs HTML when there's an error, and a OK tooltip when things are
> fine. It's almost there but the links back to the files don't quite
> work just yet... I just don't know enough about bash and regular
> expressions :(
http://tinyurl.com/d8syh ought to help you out with the HTML error list.
As far as real-time syntax checking, I've been thinking about throwing
together a solution with a combination of the technique mentioned in
the above link and the awesome stakeout.py script to watch for file
saves. I'll let the list know if/when I get anywhere with it. Peace,
Ben
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi
Can anyone tell me how to get syntax checking support...perhaps through using MTAC??
having to compile every time I want to check syntax is a real bottleneck....
Thanks
Jim Bachalo
[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca
--------------------------------------------
"...all improvisation is life in search of a style."
- Bruce Mau,'LifeStyle'
hi there.
somehow i list the symbol-popup and symbol-search functionality in
textmate. no matter what language, the popup is just empty and the
symbol-finder doesn't find anything.
is there perhaps any bundle i should not filter or s/th like this?
i'm clueless.
any help highly appr., regards, niko.
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
I must say, when I first started using TextMate I had no idea all the
commands even exited. And even now, after I've developed a fully
functional bundle of my own, I'm still discovering things about
TextMate that are kind of hidden.
Clearly Allan wants the app to be completely transparent, that the
code should be the most important focus of what you are doing and
that the interface should completely disappear and become an
extension of the code itself. And that's what I love about TextMate.
That being said, I think more needs to be done to expose the true
power of TextMate to people who are unaware of that fact that
commands in multiple bundles could apply to what they are doing. I
often don't know of all the possible commands that I could be using
at any given time. Aggregating those commands into a list so that
people can see what is possible, given the current scope, would be a
good thing I think. Be that in a drawer, palette, floating box,
whatever. And I don't think that that would significantly impact the
transparency of the app.
This keyboard combination does nothing when I type it. I have no
idea how to track this down. I have not noticed it doing anything in
any other context (program) either.
Considering the recent spate of "my keyboard bindings are broken"
messages, this sort of thing may not be an uncommon problem.
eo
On Feb 8, 2006, at 12:54 PM, Charilaos Skiadas wrote:
> On Feb 8, 2006, at 2:41 PM, porneL wrote:
>>
>> I second these opinions. Macro menu is tiny, smaller than less
>> used language and tab size choosers.
>>
> true, but they need to show their information. What information
> does the macro menu need to show?
>> And if that wasn't enough I additionally have to maneuver through
>> submenus - when TM's window is very near bottom of screen (I have
>> dock on side) current language's submenu isn't under cursor and
>> sometimes it's not even immediately visible!
>>
>> IMHO it should be much larger, and maybe there should be two
>> buttons - one with macros for current context/language *only* and
>> another with all the submenus.
>>
> Do people really use the mouse to navigate this menu? I just press
> control-esc, then the first two letters of the bundle I want, then
> right arrow, left arrow if I want to go back and so on. Plus, by
> default when you pop the menu up, it's in the current language, so
> you don't need to start typing. So for me the size of the button
> doesn't really matter.
>> --
>> regards, porneL
>
> Haris
I've written several commands that access Rails functions (such
as script/generate scaffold) via osascript. They serve me well, and
I'd now like to give them out to the RoR/TextMate community as a
plugin. It would be great to package them together into a single
floating window with a drop down or similar item to provide quick-
access under Window>RailsTools or similar. Both TextMate and plugin
development are fairly new to me -- can anyone give me some hints or
sample code that would help me on my way?
Is it possible to change the key binding for completion, everywhere?
Unfortunately, I'm a converting Emacs user, and very used to hitting
Alt-/ to do completion...
I had a brief look in the manual, but I couldn't see an obvious way to
do this.
Thanks,
-Dom
Just downloaded your bundle, the Balance Jr Macro is pretty sweet.
Indeed not exactly what I was looking for, and what was previously
very thoroughly and precisely explained by Eric O'Brien, but
nevertheless a very useful addition and a good example to study and
see if I can figure out how to code the functionality myself.
I thought there was a shortcut out of the box for that though, I used
to use it all the time in BBEdit and somehow assumed it was also in
TM. My bad! :) Time to brush up on my regex...
On Feb 6, 2006, at 3:20 AM, textmate-request(a)lists.macromates.com wrote:
> I've written a couple of pretty handy macros that do something pretty
> handy, although not precisely what you guys are talking about.
>
> Check out the ScreenCast!
> http://subtlegradient.com/articles/2006/02/05/my_textmate_bundles_etc
>
> You place your caret inside something and the macro will select
> everything in between enclosing characters. It's kinda like the
> balance command, except it grabs everything INSIDE the characters,
> but not the characters themselves.
>
> it works with:
>
> [], {}, (), '', "", word="", <>, ><, $word, @word, /* word */, <%
> word %>, <%= word %>, <%# word %>, <%@ word %>, integers, and
> probably more, but I forget now.
>
>
> How it applies to this conversation. If you want to select the
> "paragraph text" section of the following HTML, place your caret
> somewhere in the text and hit the macro. It'll select everything
> between the > & < characters.
>
> <p class="blah">
> paragraph text
> </p>
>
> It's hip, you'll hate it!
Sorry if this has come up before and sorry if I'm missing something
obvious...
I like to work with tab stops set to 4 characters and use spaces
rather than hard tabs for indentation - otherwise everything gets
messy when you process your file with something that expects 8 column
tabs.
Something seems a little counter-intuitive with the soft tabs setting
in TM. With Soft Tabs (Spaces) selected hitting tab still inserts a
hard tab character. Additionally with Soft Tabs selected Text >
Convert > Tabs to Spaces doesn't seem to do anything - it certainly
leaves plenty of tabs in the files. With Soft Tabs turned off I still
get hard tabs when I hit the tab key - but at least Tabs to Spaces
works.
This is in Perl mode - I haven't tried other modes yet but shall if
it's likely to make a difference.
So - what's the blindingly obvious solution I've missed? :)
--
Andy Armstrong, hexten.net
I use Change to Column Selection as a quick way of commenting out
selected lines. For instance, if I've got a LaTeX selection that
looks like this:
%\captionwidth{\textwidth}
\begin{comment}
\begin{figure}
%\includegraphics{table2.pdf}
And I want to comment out the entire selection, then I can't use the
Comment Selection command (Command-/) because that simply removes the
existing comments. (I think this is a bug in the Source bundle.)
To work around the problem, I can do Change to Column Selection, then
hit '%', which achieves the desired effect of commenting out all lines:
%%\captionwidth{\textwidth}
%\begin{comment}
%\begin{figure}
%%\includegraphics{table2.pdf}
However, if I later want to remove the commenting I've added, Change
to Column Selection does not work. It seems I am only able to add,
not delete, text during column selection. Is this a bug?
Trevor
P.S. The Comment Selection does work properly for removing the
comments in the latter case, but it seems wrong to have to use one
technique for commenting out a selection and a completely different
one for removing the commenting.
I'm evaluating Tetxtmate and I found a behavior that I'm trying to
see if it is a feature or a bug.
The caret position doesn't match where the character gets inserted.
For example:
function myFunction()
if I position the caret inside the parentheses and I start typing the
character will be inserted to the outside the parentheses
function myFunctionpVal()
instead of
function myFunction(pVal)
I tried it on 2 systems and iMac G5 and a PowerPc Dual G5. same behavior
TextMate version 1.5 (906)
I like the feature set of the editor and would love to use it on
project, but unless I find a way to place the characters at the caret
position is would be really hard to use it..
thanks
The patch below for the Diff Syntax modifies it so that diffs
produced by the Perforce bundle are properly recognized and syntax-
highlighted.
BTW aren't the shortcuts for the commands in the diff bundle
incorrect? They all use 'Shift-Ctrl-Alt-D', which I thought was were
reserved to select a syntax (Diff Syntax did not have a shortcut
assigned, the patch below includes that). Shouldn't the command use
'Shift-Ctrl-D' instead?
Gerd
Sorry if this is a FAQ, but I couldn't find reference to the problem on
the wiki, so I thought I'd post to the mailing list.
I's using Textmate 1.5 (build 906) under OS X 10.3.9. Whenever I copy
some text to the clipboard, the program crashes. This happens
consistently, whether I'm using new documents or existing files.
Can anyone help?
Thanks!!
Dennie
Dennie Hoopingarner, Ph.D.
Associate Director for Technology Implementation, CLEAR
Director, Language Learning Center
Michigan State University
hi all and alan -- thanks for a great product.
One suggestion: I think a split pane ala mail.app would be an
improvement over the current drawer. Use of a drawer implies to me,
an optional part of the interface, but when working on a project, the
file list is hardly option, in my opinion. Is there any here that
opens and closes the drawer repeatedly to access their project
listing? A drawer makes window resizing a two step operation -- you
have to first position your window to accommodate your drawer before
doing the resize.. Try it, you'll see what I mean. I think really,
managing the use of space *inside* a window is much more natural than
managing it outside.
.niels
niels gabel
firewire cpu software
apple computer, inc.
This, I am sure, is super newbie basic material, but somehow it
eludes me with tenacity...
What's the shortcut to select text within tags in html? Let's say,
for instance, to select "I am a paragraph" in:
<p>I am a paragraph</p>
I'm ashamed to ask that, so go easy on me, thanks ;)
It seems TextMate fails to notice a c++ function definition if I
write it like this:
static void
foo(
void * a,
void * b,
void * x )
{
}
but all on one line works fine:
static void
foo( void * a, void * b, void * c )
{
}
Has anyone else noticed this? Is there a way for me to fix this
myself or should I wait for an update?
Thank you.
.niels
niels gabel
firewire cpu software
apple computer, inc.
I just checked in a new Scheme language bundle into the svn
repository if anyone's interested.
The bundle is really just syntax coloring at the time being. I cannot
find a working solution for indentation with what TM currently
offers, but maybe someone else can, or we'll get some new nifty
feature into the editor someday that allows me to solve the problem.
Anyway, enjoy! And if you haven't ever programmed in Scheme, please
do! It's a really elegant and fun.
/M
--
Mikael Säker <mikael(a)sicher.org>
http://www.sicher.org
"Strangers have the best candy."
Howdy.
I was just editing some embedded SQL today and though of an
interesting idea.
Modify the new Edit In TextMate global function to work with
selections, and work inside of textmate.
The flow would go something like:
I'm in an asp.net document
I select some embedded SQL
I hit the 'Edit In TextMate' command
It opens my selection in a new textmate window (saved as a file in a
temp folder)
I edit my text like crazy
Save & Close
My original document shows and it replaces my selection with the
contents of that temporary file
This would be SO totally hip!
I'm sure I could whip something like this up as a command, but I
think native support for it might be better.
It might just be easier to modify the global command to either select
all & activate or use an existing selection and activate.
Then just make it work IN textmate and you're set!
yay!
Thanks again for completely changing my life for the better! (the
coding section, anyway)
I LOVE the Edit In TextMate action!!!
See http://subtlegradient.com/articles/2005/12/27/gus-mueller-flyopts-
inputmanager
Hello list!
I'm absolutely loving TextMate - $50 seems insane for a text editor
until you use it. :)
I'm doing a lot of work with Subversion, and want to be able to
commit a change and upload it to the server as easily as saving a
file. Is there any way to modify the bundle so that it saves the
frontmost window without any dialog asking for a summary? I'll still
use the dialog sometimes but I don't want to have it pop up all of
the time. I realize I can just press enter to move on, but I'm
looking for the fastest possible solution, as I save and refresh
files quite often.
Thanks for any suggestions you may have!
Trev Copland
_______________________________________________www.trev.com
I hate feeling like a pest, and was curious if there was a formal
place to post bugs.
What I noticed is that when you use the SVN bundle, if you pop open
the menu on a selected file in the project drawer, you -must- have a
file already open or you get no menu ;)
Sorry to be a pain :p
Eric Coleman
home: 412 399 1024
cell: 412 779 5176
I notice that there are a lot of great snippets in the ruby bundle,
but I'm wondering if there is a way to do the self-modifying versions
of these methods. For example, there is collect, but not collect!
Thanks,
Carl
In other text editors (in my pre-mac days), I very commonly used the
block editing feature to quickly align code. I would use a regular
expression match/replace to insert in a bunch of whitespace where I
need it, then block select where I want the column to start and shift-
tab to squeeze all of the text back into a nice column.
TextMate does most of the above quite nicely, with the exception of
the shift-tab. Shift-tab does not shift everything left, eventually
squeezing out the whitespace and leaving a nicely aligned column. Can
I do this somehow, and if not could it be added? (I really miss this
feature)
Thanks...
Jim Leask
Hey all, sorry for the mass email. If you are not using the LaTeX
bundle, you can safely ignore the rest.
I am currently working on the various completion commands in the
latex bundle, and I am considering dropping bibdesk support in the
completion commands in the following way: Instead of asking bibdesk
for the completion list, I have a command read that does the following:
It collects a list of bib files from the following locations:
1. the files pointed to by the environment (or project specific)
variable TM_LATEX_BIB, space separated (use quotes if the filename
contains spaces).
2. If either the file pointed to by the variable TM_LATEX_MASTER, or
the current document (if saved), or both, contain any text of the
form \bibliography{bibfile}, it adds this bibfile to the list of bib
files to examine.
It scans all these bib files for the cite keys, and uses those for
completion. It will look for titles for the pop-up menu. So there
will be (actually there already are) two commands, one that works
with Esc (normal completion) and one that brings up a pop-up of
possible completions.
The above will be faster than calling Bibdesk through applescript.
And you can of course still create citations by dragging them items
from Bibdesk and dropping them in textmate.
The main question is whether calling Bibdesk has any advantages
compared to the approach I outlined above, and whether the approach
above misses something. Your feedback would be much appreciated.
Haris
Hi everyone,
I'll be getting a Mac in the near future, and am completely convinced
that TextMate will become my text editor from day 1.
Until then however, I would really like to get used to the key commands
that TextMate uses (by default), to make the transition as smooth as
possible. Basically, I want to mimic TextMate's key bindings in my
current Windows editor, Komodo.
I've been using 'Emacs shortcuts' in Komodo for a while now, but I
understand that Textmate's key bindings are not completely similar to
Emacs (and I am sure Komodo's 'Emacs' key bindings are not 100% similar
to the real Emacs either).
Is there a complete list of all default TextMate key bindings somewhere?
Also, I've seen messages come by about 'key bindings for switchers' on
this list, but that seems to be focused on people trying to emulate
Windows key bindings in TextMate... Is there anyone that has tried the
opposite, like I would like to do?
Sincerely,
Yuri van der Meer
I used subversion to retrieve the Source bundle, but it doesn't show
up in the bundle editor. Any suggestions?
Checked out revision 2645.
LewyG4-2:/Library/Application Support/TextMate/Bundles lewy$ ls
Source.tmbundle
I'm trying to write a command that will open the current document in
an external app, here is what I've got:
open -a Final\ Draft\ 7 $TM_FILEPATH
The problem I'm having is that the FilePath (as constructed by
TextMate) does not insert "\" before a space, thus the command in
question is unable to find documents with spaces in the filenames to
pass on to the external app.
Is there another way to do it? What am I missing?
Request:
The Ctrl-T action should see the space as a - directory - separator, and
not bluntly ignore it. (except if some files names contain a space)
Example
/store/index.html
/cart/index.html
/client/index.html
Command 1:
[Ctrl-T] + "in"
=> displays
index.html - store
index.html - cart
index.html - client
Command 2:
[Ctrl-T] + "in cl"
=> SHOULD filter and display
index.html - client
Alain
Hi, I'm a very new user of TextMate and it seems to be just what I have
been looking for.
However, I do have a couple of questions that I haven't managed to
resolve from the documentation, Wiki, mail list, etc.
1. Is there a way to highlight (or move the cursor to) a matching
parenthesis, bracket, quote mark, etc?
2. Also, could some kind person step me through the process of Change
All In selection? I seem to keep ending up with a change all in
document....
many thanks in advance
- Jonathan
Allan,
Any reason there's no "Page Setup" link in the File Menu? I want to
print out this document, but I want it landscape so the code is all
on 1 line instead of wrapper..
Anyone have another solution? I opened the file in bbedit for now to
print it.
Eric Coleman
home: 412 399 1024
cell: 412 779 5176
I tried the toggle between single and multline block with the following block:
domains.each do |d|
f[1].sub!(/^#{d[0]}$/, d[1])
end
It converted it into a single line block just fine, but when I toggled
it back to multiline I got this:
domains.each do |d|
f[1].sub!(/^#{d[0]
end$/, d[1]) }
Haven't yet examined the bundle regex but figured I'd post it in case
someone wanted to know.
Thanks,
Carl
I'm trying to maximize my use of textmate. One of the first things
I'm doing is looking through the ruby bundle to see what snippets I
can use. I first noticed the hash key/val snippet, which starts with
a colon.
The first thing it does is highlight the key so that I can type in a new key.
The next thing it does is highlight the sample string so that I can
type in something different. However, I'm having trouble typing
something in at this point. If I want to edit the string inside, is
there a key I can type that will put the caret inside the quotes? If
want to edit the string contents, I have to move my cursor over then
back. If I start typing, it erases the quotes. If I type quotes, it
surrounds the quotes in another set of quotes. Is this behavior there
because the snippet writer assumed I would not always want to put
strings in the hash buckets? This is understandable, but as a
shortcut for creating symbol/string combinations it is actually quite
tedious.
I figured maybe I was missing some secret keyboard shortcut that would
put me inside a fresh set of empty quotes instead of the sample that
is highlighted.
Thanks,
Carl
I'm using the run script command in the ruby bundle. Is there a way
that I can tell it what to pass as the command line parameters? It
seems to be passing in the filename of the script to itself.
Thanks,
Carl
What's the best way you've found to open some remote folders/files in TextMate?
* the files are kept remotely on a Linux box
* there is SSH (and presumably SFTP) access; I'm not sure if there's
Samba access enabled
* I want to be able to use the built in Subversion tools
* I absolutely want to use the various "project" features of TextMate
that I'd get if I open a folder with TextMate
I briefly tried using Cyberduck, but that would only let me open
individual files (rather than whole folders).
Any suggestions?
-d
Has anyone experienced this. Im running Textmate 1.5 (v906) with rev
2643 checkout of bundles. Tidy used to work fine but I now get:
-e:5: undefined method `match' for #<String:0xc5dd0> (NameError)
when I use it. Anyone got any ideas?
TIA
Stephen
> I put together and polished some commands Allan made in order to get
> the TextMate Documentation under way. As I worked on a documentation
> project at the same time, I used his scripts, bundled them and
> adapted them a little to my needs. If you are curious as to what
> happens behind the scenes… Here it goes.
Great work!! +5 :D
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Hi all,
Is there a way to select some text in TextMate with the mouse, then
drag it to another application? What I'm trying to do is grab some
text out of TextMate and create a note in Yojimbo by dragging it to a
folder in Yojimbo's Drop Dock. I'm trying not to copy/switch app/
create note/paste.
Is there any way of doing this? I hope I'm not missing something
obvious.
Carpe viam,
Mike
Michael Larocque
Chief Cook and Bottle Washer
Prolumina Communications Inc.
http://prolumina.com/~mlarocque/
Good Morning :)
I put together and polished some commands Allan made in order to get
the TextMate Documentation under way. As I worked on a documentation
project at the same time, I used his scripts, bundled them and
adapted them a little to my needs. If you are curious as to what
happens behind the scenes… Here it goes.
This bundle is for compiling a Documentation project made of several
Markdown files to HTML. It generates a TOC, a print version with all
chapters on one page and HTML files for each chapter. You can use
references to easily link between your pages.
I appended the bundle “Markdown2Book” plus, as an example how to use
it, the first three chapters of the TextMate manual.
Have fun,
Soryu.
PS: For quick reference the Help file from the bundle (also available
from the bundle itself via the “Readme” command):
# Setup
You will need a TextMate Project (a Scratch Project will do) to make
this work.
## Structure
The following files & folders are needed:
* `pages`
This is where all your markdown files go. You need to make a new
file for each chapter. It should have one first level heading which
will be used for the name of the chapter (in the Table of Contents,
for the Navigational Links & in the HTML title).
The files in the `pages` directory are converted to HTML (using
Markdown and SmartyPants) with the _Generate_ Command. They have to
be in the right order, so they have to be named beginning with
numbers followed by a space or an underscore (as seen in the included
example). This prefix will be stripped by the Generate Script.
* `html`
The generated files will go here.
* `index.html`: Table of Contents from which you can navigate to
all chapter.
* `all_pages.html`: A single files with all chapters. This is
mainly for printing and it uses the `print.css` Stylesheet.
* `*.html`: Every chapter has it's own file.
Also this folder holds two links to the css and images folder.
When "deploying" your compiled book, just replace these by the actual
folders.
* `templates`
This folder contains three html templates. Adapt them to your
needs.
* `all.rhtml`: template for the `all_pages.html` file which
contains all your chapters.
* `chapter.html`: template for each chapter
* `toc.html`: template for the `index.html` file containing the
Table of Contents
* `css`
This folder contains the stylesheets (`stylesheet.css` and
`print.css`). Adapt those as you like. The default style resembles
the [TextMate Manual](http://macromates.com/textmate/manual/).
* `images`
This folder should hold all your images. When the book is
generated `height` and `width` HTML attributes are added to the
images. The source path could be changed, too, to make it absolute.
## References
You can use reference style links (`[link description][link id]`) in
your text. There is a command _Update References_ that will collect
them from all `.markdown` files in the `pages` folder and write them
to a file `markdown.references` in the project root. It notifies you
of missing or duplicate entries via a Tooltip. You can then edit this
file and insert the link targets within your text. The _Generate_
Script will add `id` attributes to your headings, so you can
reference them directly. Is converts some characters (`- \/_`) to
underscores and strips non-alphanumeric characters afterwards.
I wrote a command _Show References_ that brings up a dialog with all
the references from the `markdown.references` file and inserts a
reference snippet.
## Generation process
The _Generate_ Command is a Ruby Script, which does some
transformation, constructs the Table of Contents and runs all your
Markdown files through [Markdown](http://daringfireball.net/projects/
markdown/), [SmartyPants](http://daringfireball.net/projects/
smartypants/) (for good Typography) and the Image-Script.
<hr />
> Credits to Allan for writing the initial version of all this. I,
Soryu, bundled it up in a TextMate bundle and added/polished some stuff.
Hi guys, i've been a textmate user since i developed a shopping cart
system for a non profit website that bought me a license because i
refused money. I absolutely love textmate.
Just about an hour ago though, i made a little change in a database
class i use on my own website, only edited one file and suddenly
strange things happen on a couple of pages where the class is used
(front page and news page) textmate remembers where i've put the
caret in a file, but now it shows that info on my website (without
being able to find the text in there anywhere)
I work on the site over an AFP connection, i've tried everything i
could think of to get rid of it to no avail. anyone have any idea
what's going on and/or how to get rid of that one line of awkward text?
the site is on http://www.theredhead.nl, the line of text that's
bothering me is:
&7{"com.macromates.caret" = "{column = 0; line = 0; }"; }
hope someone can help me here.
Kind regards,
Kris
Thanks for the tip! Always a pleasure to avoid applescript...
I actually tried that before and couldn't get it to work. The problem seems
to be that saving from the menubar (or from the keyboard shortcut) is not
recorded during the macro. Do macros only record automations (snippets,
commands, etc.) or do I have something setup wrong? I couldn't find this
documented anywhere.
I ended up getting around this by defining ANOTHER command that saves the
current file but then does nothing, then recording a macro where I execute
both actions. Seems to work great, except it doesn't seem to be saving new
files, so I have to just save it twice the first time. Not a problem for
me, personally.
Oh course, it's ugly to have two commands and a macro sitting around in a
bundle, when there really should be only one. Anyone else think it might be
useful to have a ''save after'' check box or something in the command
window?
Thanks again,
Jim
Hello,
I am new to this list, so this question may have been asked before.
Since TextMate 1.5 I keep getting a spinning beach ball for 20+
seconds so often that it makes using TextMate very cumbersome.
Are my documents too long (2000+ lines)? Are there too many files in
my projects? Am I using the wrong color scheme (iPlastic)? Is there a
problem with LaTeX (what I am using TextMate for)?
Any suggestions are appreciated.
Thx,
Wolter
Whenever I try to use the 'Convert Selection to Entities' command it
results in the following error.
env: ruby -KU: No such file or directory
I'm using TextMate 1.5 (v906) on OS 10.3.9. Typing ruby -v in the
Terminal reveals I'm running ruby 1.6.8
Thanks for any help.
Trying to make a set of Emacs-like bindings for TM, I discovered that
setMark: and others are defined at a low level in the operating system,
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSResponder_index.html
Some keys I wanted to use with these, e.g. ^q and ^h, are defined
downstream, for examples in the bundles or in
/Applications/TextMate.app/Contents/Resources/KeyBindings.dict. I
got rid of all those bindings, I think, but I still am unable to use
the Mark commands in TM. I am able to use them in Mail: set a mark,
move, press the key bound to deleteToMark: and the block is cut, Yank
it back, etc. Am I missing some interfering bindings or does TM
somehow not respond to the xxxMark: commands?
Thanks,
Subversion Log
NoMatch
mhh, something with with the regex or svn must be wrong. this should
never happen.
last line: r525 | eric(a)whmautopilot.com |
2006-01-30 04:33:57 -0500 (Mon, 30
Jan 2006) | 1 line
please bug-report.
Assuming this should go here ;)
Eric Coleman
home: 412 399 1024
cell: 412 779 5176
I've managed to hose the binding for my keypad Enter key. It doesn't do
anything now. It could have had something to do with using the
'defaults' command, but I'm not sure. Any suggestions? I would even
consider a return to all default keybindings.
ADVthanksANCE!
Regards,
JJ
---
Help everyone. If you can't do that, then at least be nice.
(sorry if this pops up multiple times - gmail doesn't seem to be
working properly)
I've recently started using Textmate and the Latex bundle. I found
that I wanted to extend the functionality in various ways, including
by adding definitions to the Lanuage file to allow me to highlight
footnotes and emphasised text. Some of the code I wanted to add is:
{ name = 'meta.footnote.latex';
begin = '(\\(footnote|noteToSelf)\{)';
end = '(\})';
captures = { 1 = { name = 'keyword.footnote.latex'; }; };
patterns = ( { include = '$self'; } );
contentName = 'variable.parameter.footnote.latex';
},
{ name = 'meta.emph.latex';
begin = '(\\emph\{)';
end = '(\})';
captures = { 1 = { name = 'keyword.emph.latex'; }; };
patterns = ( { include = '$self'; } );
contentName = 'variable.parameter.emph.latex';
},
I've added that code to a copy of the Language definition. It seems
to work fine (there are probably errors, since I'm a newbie) but it
occurs to me that there may be a better way to do it. As it stands,
if the Latex bundle is updated in the next release, I'll still be
using the older language definition. Is there any way I could have
written my snippit to avoid that problem?
Best wishes,
Nicholas
Hi All,
Did I missed a step or something, but the first "child" in a
@media ... {...} never appears color-coded (See the attached
screenshot for an example)
Thanks,
On Jan 29, 2006, at 3:51 PM, Nicholas Cole wrote:
> Just while you are on updating stuff - the various commands from
> the jurabib package are used by many humanities people. There are
> lots of them, so I just match them by extending the pattern
> matching for \cite to match almost anything with 'cite' in it. I
> haven't yet run into problems with that approach...
Hm, that's an interesting idea, just match any command containing the
word cite as meta.cite.latex ..... I'll have to think about that a
bit though, and ask the other maintainers.
Do you have a list of all these commands?
Of course, adding support for every single latex package out there is
not really feasible...
Looking at http://www.jurabib.homelinux.org/jurabib/jb-com-ref.pdf,
there are not really that many citation options, and most of them are
already supported in the newest version of the bundle (in the
repository). What commands do you find missing? I think it is missing
author and title addons at the moment, but those can be easily added.
footcite support was added two days ago or so, along with the new
completion commands.
Haris
Hi Guys,
First time poster, been using TM for a while though.
I'm trying to write a command that will run, do it's thing, then save the
file. The trick is how to get it to save AFTER the command alters the
file. Is this possible?
Specifically, what I am trying to do is update a `Last Modified:` string
whenever I save a file. That's the easy part, I did it with some python
triggered by cmd-s. Now that the string has been altered, how do I save the
file? It seems possible with applescript, but I can't get it to work.
If anyone has any suggestions about this final step, that would be great. I
know there's something wrong with my applescript, it tends to behave
differently in osascript than in Script Editor, is this because of the
escaped quotes? Something to do with combining triple- and single-quotes?
I've searched everywhere, apple documentation, textmate wiki/mailing list,
and turned up nothing! It seems to me that having a "Save After" option for
Commands would be useful. What do you guys think? Maybe this has been
discussed already.
Thanks for your help,
Jim Bagrow
Here is the command:
Save: Current File
Command:
*************************************************************
#!/usr/bin/env python
import os
import re
import datetime
# get selected text from shell:
path = os.getenv('TM_FILEPATH')
f = open(path, 'r')
text = f.read()
f.close()
string = "Last Modified: "+datetime.date.isoformat( datetime.datetime.today()
)
p = re.compile('Last Modified: \d\d\d\d-\d\d-\d\d')
result = p.sub(string, text)
print result
# how can I save the file at this point, AFTER it's been modified?
# PS: I hate applescript!
cmd = """osascript -e \"
set thePath to do shell script \"echo $TM_FILEPATH\"
tell application \"TextMate\"
activate
save current document in thePath
end tell
\"
"""
os.popen(cmd)
*************************************************************
Input: Entire Document
Output: Replace Document
Activation: Key Equivalent -> "cmd-S"
> Have a look at stakeout: http://michael-mccracken.net/blog/
> blosxom.pl/2004/07/28
> This will allow you to have your script notified when the file is
> saved (but not closed, for which there is mate -w).
good tip -- thanks. yes, with a combination like that i can probably
get close to what i was looking for, but i still think that it would
be a lot cleaner for TM to support this more directly.
> As for receiving AppleScript events from a shell tool, that's not
> really possible AFAIK because the sender needs to have the
> receivers four character code, which is something only “real”
> applications have.
right, which is why i was asking for a non-applescript API.
(i think what i'd *really* like is to have a lua interpreter embedded
in TM, but in the absence of that we should be able to do almost
everything with external programs...)
"All that stuff" is required for Rails to run, but you can remove it
from a TM project (which doesn't delete them from the finder) and not
have to deal with files you don't modify.
luke
> From: Alain Ravet <arav2132(a)biz.tiscali.be>
> Date: January 27, 2006 2:04:02 AM CST
> To: textmate(a)lists.macromates.com
> Subject: [TxMt] Re: Req: exclude directory(ies) from "find in
> project".
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
>
> Steve
>
> > Why not just make a project without all that stuff in it and
> just save
> > the project?
>
> Because "all that stuff" is required, of course.
>
> Alain
Thanks to Allen I've managed to add HTML export to my screenwriting
bundle. So now you can export your screenplays in proper Studio
Format! However, thanks to Safari's (and all other browsers) lack of
support for paged-media styles the resulting document does not print
ideally. That being said, it's a very nice result for outputting to
HTML. In fact, it's much better than Final Draft 7! (they don't
declare doctypes... bad final draft). It would be nice to see actual
support of CSS2 paged-media styles... one can only hope.
When exporting a PDF from Safari it adds header information and
footer stuff, as well as a nice .25in margin on every side. I'd like
to change that, if you know how let me know.
I've looked into using HTMLDoc and Prince to export the resulting
HTML document to a pdf by way of bypassing the build-in PDF services
but both of those cost money, something I'd like to avoid. If you
have any tips, let me know.
I've also added support for printing and non-printing comments, as
well as general code clean-up.
Aside from minor changes in regexp rules to account for people's
writing habits, I cannot foresee to many more changes in the bundle
(aside from a better PDF option). So, thanks to all of you who helped
and especially to Allen. You can now say that TextMate has a
(somewhat) full-featured Screenplay-writing bundle that imports
resulting documents *perfectly* into Final Draft. Objective
accomplished.
Download: http://ollieman.net/files/bundles/screenplay.zip
The Diff bundle command 'Selected Files in Project Drawer (HTML)'
references "$TM_BUNDLE_SUPPORT/diff.pl", but the actual file is
"$TM_BUNDLE_SUPPORT/Diff.pl" (note case: d vs. D). If (like in my
case) TM is installed on a case sensitive file system, that command
will not work:
--- Commands/Diff Selected Files.plist (revision 2604)
+++ Commands/Diff Selected Files.plist (working copy)
@@ -11,7 +11,7 @@
exit_show_tool_tip
fi
-perl "$TM_BUNDLE_SUPPORT/diff.pl"
+perl "$TM_BUNDLE_SUPPORT/Diff.pl"
</string>
<key>input</key>
<string>none</string>
Gerd
PS: What are the rules to gain write access to http://macromates.com/
svn?
> I expected to find the header/footer control in Safari 2's File...
> Page Setup..., but eventually caught on to the fact that it is in
> File... Print. Select "Safari" in the third selector and disable
> "Print webpage information in headers and footers". -Jim Tittsler
Good find.
> Not sure what support you seek, but it is possible to give some
> page-break hints with CSS. For example for the TextMate manuals
> print style sheet I force a page break [1] after each chapter. -
> Allen O.
Safari's support for paged-media within CSS2 is limited.
Specifically, it supports both the "auto" and "always" values, but
not "avoid"; which is why I can't get the following rules to work:
@page { size: 8.5in 11in; margin: 1in 1in 1in 1.5in; }
dl, dd { page-break-inside: avoid; }
dt, h2 { page-break-after: avoid; }
h3 { page-break-before: avoid; }
h4 { page-break-after: avoid; }
I've tested these in Safari, Camino, and a Safari Nightly Build.
Hi,
maybe I can get some advice from experienced users. I tried to update
my Latex bundle by following the instructions in the TextMate
manual. svn is installed and I could get connected to macromates.
However, when I enter the following command
svn --username anon --password anon co \
http://macromates.com/svn/Bundles/trunk/Bundles/Latex.tmbundle
I receive the error message
subversion/libsvn_ra_dav/util.c:780: (apr_err=175002)
svn: REPORT request failed on '/svn/Bundles/!svn/vcc/default'
subversion/libsvn_ra_dav/util.c:295: (apr_err=175002)
svn: REPORT of '/svn/Bundles/!svn/vcc/default': 400 Bad Request
(http://macromates.com)
I am lost. What could be going wrong ?
Christof
This is the feature I miss the most (when writing Rails code).
How it works :
1°/ select a directory, and
2°/ mark it as "exclude from 'find in project'"
context: in Rails, the log files and 3rd party code (EdgeRails, plugins,
javascript libs, docs ..) are all in your project tree
=> your code can be less than 10% of the total files/code present in
the project
===> most of the results entries are useless, because out of scope.
Alain
I noticed that the LaTeX bundle provides the same shortcut for two
different commands:
BibDesk Completion
Insert Label From Document
Both are mapped to ⌥⎋. Is this a bug or a feature?
Trevor
Hello
I have this word in completation list "split-path"
if I type "spli" and esc key it does work
if I type "split-" and esc it doesn't
what should I do?
also for color syntax, I'd like "value?" to be recognized
but this doesn't work:
{ name = 'rebol.words';
match = '\b(value\?)\b';
},
thank you!
Will
hello I'm new to TextMate, Hat down to the creators/developers
I'm coming from bbedit..hem..hemm no comment..
I'm trying to build a bundle for the rebol language
and regex is new to me.
Please, help on this
"^""
^" is escape "
all between " and " is a string
this is my code
{ name = 'rebol.string';
begin = '"';
end = '"';
},
which obviously dosn't work for this case.
also any link to great oniguruma tutorial would be great
Thank you and have a great day!
Will Arp
i've written a few scripts to make editing of remote files easier.
then i noticed that TM supports the "external editor
protocol" (http://www.merzwaren.com/external_editor.html), which
sounds like it would make some of my hacks quite a bit cleaner, but
only if i was able to deal with applescript events. i haven't been
able to find tools to make a ruby script (or any other scripting
language) able to receive applescript events (yes, i know how to send
them, although that's still ugly), which means (as far as i can tell)
that i'd need to start mucking with obj-C...
but then it occurred to me that it ought to be easy for TM to support
a more scripter-friendly version of the same protocol, e.g.
mate --notify <path> <file>
would associate the script at <path> with the opened file, so that TM
would make event callbacks, e.g.
<path> saved <file>
<path> closed <file>
<path> reopen <file>
given that you've already got the events-based version of the
protocol implemented, it sounds like this should be pretty
straightforward, and it sure would make my life easier...
(a more general request: please don't make useful TM functionality
only available through applescript. there are a lot of scripting
languages for OS X, and for all but one of them applescript events
are a PITA. anything that can be done by sending applescript events
should also be accessible via mate! thanks.)
This was announced a couple of weeks ago on the Rails mailing list,
but I thought it might be interesting to others in the textmate area
whether for Rails development or for learning purposes.
The textmate_backtracer plugin (download here) for Ruby on Rails lets
you easily jump from your web browser to textmate when a backtrace is
given. Using the txmt:// protocol, the plugin intercepts the
backtrace and inserts the file name and line numbers in a way
textmate understands so that you can get to the source of the problem
(no pun intended) in a single click.
Information available on my blog:
http://inquirylabs.com/blog2005/?p=36
Direct download:
http://inquirylabs.com/downloads/textmate_backtracer.tgz
Duane Johnson
(canadaduane)
http://blog.inquirylabs.com/
Hi everyone,
I use a Mac part-time, and switching between Mac and Windows key
bindings is driving me nuts. I found the article "Key bindings for
switchers" and happily followed along with the instructions. However,
having set up my ~/Library/KeyBindings/DeaultKeyBinding.dict file
exactly as in the article, the new bindings work fine in Mail and
TextEdit but not in TextMate. I have no idea why that would happen -
any ideas?
Here's the contents of my DefaultKeyBinding.dict (copied directly
from the article) for reference:
{
/* home */
"\UF729" = "moveToBeginningOfLine:";
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* end */
"\UF72B" = "moveToEndOfLine:";
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* page up/down */
"\UF72C" = "pageUp:";
"\UF72D" = "pageDown:";
}
Thanks in advance,
--Brendan
On Jan 24, 2006, at 10:02 AM, Allen wrote:
> Ah okay -- so basically it's the conversion you want help with?
yes.
> I assume it's because you are not familiar with any programming
> language (which I must say, your bundle is pretty impressive if you
> are not -- even if you are, it still is impressive -- do you mind I
> link to the intro screencast in the RSS feed as an example of
> behavioral patterns in TM? I can keep a local cache of the bundle
> if you're concerned about bandwidth).
I'd be glad to host the screencast, if bandwidth becomes a problem,
I'll let you know. And yes, I know exactly zero about programming
languages. The first time I used a regexp was for this bundle.
> I would suggest using htmldoc [1] for the HTML -> PDF conversion.
I'll check it out.
> So what you want is to make a regular expression to match each
> construct in your format, which you already did in the language
> grammar, and then as the replacement string you specify how it
> should be transformed. Here you can use $& to refer to the entire
> match and $1-$n for captures (stuff captured with (…)).
Okay, based on what you posted here before, I added a few things that
were missing and synced these with the language def.
#!/usr/bin/perl -p
s/&/&/g; #ampersands
s/</</g; #reserved for HTML
s/>/&lgt;/g; #reserved for HTML - maybe this is unnecessary?
s/^EXT\..*$/<h2>$&<\/h2>/; #scene heading
s/^INT\..*$/<h2>$&<\/h2>/; #scene heading
s/^I\/E\..*$/<h2>$&<\/h2>/; #scene heading
s/^[A-Z].*\-\s[A-Z].*/<h2>$&<\/h2>/; #arbitrary scene heading ending
with a time
s/^[A-Z].*\-\s*$/<h2>$&<\/h2>/; #arbitrary scene heading NOT ending
with a time
s/^\w.*$/<p>$&<\/p>/; #paragraph
s/\/\/(.*)\/\//<!-- $1 -->/g; #comments
s/\*(.*)\*/<em>$1<\/em>/; #italics
s/^(\t{4})([^\t].*)$/<dl>$1<dt>$2<\/dt>/; #characters
s/^(\t{3})([^\t].*)$/$1<dd class="parenthetical"> $2 <\/dd>/;
#parenthetical
s/^(\t{2})([^\t].*)$/$1<dd>$2<\/dd><\/dl>/; #dialogue
s/^(\t{10})([^\t].*:)$/$1<h3>$2<\/h3>/; #transition (right)
s/^[A-Z].*:\s*/<h4>$&<\/h4>/; # transition (left)
The only one that's not working properly is the last one. It's
baffling to be because it's the same regexp as in the language.
> If you need further help, let me know (as I have no idea what your
> shell/programming skills are).
I have no programming skills other that those I've already
demonstrated. Zip
There are a few steps left in the process that need to be addressed.
Next the HTML marked-up text (as generated by the above script) needs
to be inserted into an actual HTML document with doctype
declarations, CSS etc. And somehow (again, I have no idea how) it
needs to be transfered to a PDF authoring environment (htmldoc or
whatever).
Lastly, thank all of you. It's great to give something to a community
and get so much back.
Hi,
I was trying to find an XML editor for large XML files. I tried to
open a 108 MB (genome data in XML) file in TextMate but it failed.
BBedit opens te file ok. Is there an upper bound to the amount of
data you can edit?
Cheers - francis
PROBLEM:
The feature of all mac apps that I use the most is search.
Specifically find selection & find again. I use that feature to step
through every instance of that selection throughout my code. One
feature that I would love to see is a back button for selections.
Every time you do a search or scroll through your document & select
something, to get back to the last thing you were working on you have
to have set a bookmark & remember which bookmark you were last
looking at, or you have to manually find that place in your code again.
I work on other peoples old janky ASP 'classic' and quickly slapped
together ASP.NET code on a deadline. Anything to help me make quick
work of navigating through the (massive mountain of fetid spaghetti)
code the better.
SOLUTION:
If there was a way for the program to note every time you move the
selection more than 'a little bit' & log that information
sequentially, all you'd have to do to get back to what you were last
looking at would be to hit the back button. bam bam... done, no
thinking.
I know the system is extremely extensible, i'm sure there is some way
for me to 'roll my own' system for doing something similar.
(1) I'd need a command to get the current input location row & column
(2) log that information somewhere
(3) a command to get the last input location from 'wherever' and then
(4) a command to set the input location to 'that location'
??? I think i could figure all this out with applescript and bbedit,
but i'm still rather green when it comes to hard-core UNIX hacking.
Anyone have any suggestions? ??
IDEA: Maybe a quickie version of it would be to undo the last edit,
which would take me back to the last place I was, but then redo my
last action without moving the input location so I don't lost any
work. hmm...
Maybe there's another solution to my problems that i haven't
considered. What does everyone else do?
I have been using TM (1.5 (906)) off and on for a couple of days now
and I noticed this evening that typing had become glacially slow. I
ran the Activity Monitor and noticed that as I type, cocoAspell
(2.0.2) was using about 70% of the processor on a 1.5 GHz PowerBook
G4. I turned off "Check Spelling As You Type" and the problem went
away. I haven't noticed this problem in any other app for which I am
checking spelling as I type. Is this a known issue and/or is there
some way for me to fix it? This is under Mac OS X 10.4.4.
Thank you,
-- Gary
> On 24/01/2006, at 13:34, Allan Odgaard wrote:
>
>> On 24/1/2006, at 5:55, John Johnson wrote:
>>
>>>>> I've managed to hose the binding for my keypad Enter key [...]
>>>> Is this only in TextMate that it's a no-op or system wide? [...]
>>> It is system wide. I'll continue to search the web.
>> My first guess would be that it's the keyboard. You may want to try
>> and clean it and/or try connecting another keyboard (if you have
>> one available).
>
> Curiously, my Enter key doesn't work either. At all. Except it does
> wake the machine up from sleep. But even the keyboard viewer doesn't
> show it being pressed.
Since I've switched to a Mac and started using TextMate I've wanted
to bind the keypad enter key to the TextMate "Next File Tab"
command.
Is this possible with OS/X? The keyboard shortcuts preference
panel doesn't distinguish the "main" return key from the keypad
enter key.
Stu
Hi,
Is there a way to pervent TextMate from using the Option key
to toggle the selection type?
It's conflicting with another key binding I have for the Option
key :(
This is a deal breaker for me and TextMate is the best editor
I have seen on OSX so far.
Thx
Haris wrote:
> Oliver,
>
> The screencast is very nice!
> The main problem for me is that I don't know the first thing about
> what things a screenwriting bundle should be doing. If you ask very
> particular questions about how certain tasks could be accomplished,
> I'm sure you'll find that lots of people will be able to help you.
> But most of us are just not familiar with screenwriting software,
> and screenplay formats in general. I actually looked at your bundle
> the last time you posted, but couldn't really understand what most
> commands are for, since I've never in my life seen a screenplay.
> Seeing the screencast makes some things click.
> So please, set some particular goals for commands/conversion tools,
> and you have a good chance of getting people to help out. For
> instance, what would you want the conversion tool to do? Give us
> some examples of how the result should look.
> You've done a great work so far, and it would be nice to see this
> bundle pushed even further.
>
> Haris
Okay, I guess most people had no idea what I was doing when I posted
my screenwriting bundle because I didn't describe what the bundle
does and how it does it. My mistake.
I've posted a new screencast that goes into much more detail
regarding what I the bundle to be able to do. Grab it here: http://
www.ollieman.net/files/screencast2.mp4
The ultimate goal is to end up with a PDF which contains text that
conforms to the Studio Format. The Studio Format is a industry-
standard layout which all professional screenwriters work in and is
the very purpose of screenwriting software. Fortunately for us, the
format is very strict as it is modeled after what a typewriter is
capable of.
You can find more information on the Studio Format and an example of
it at http://www.ollieman.net/files/bundles/
---
In another screencast, I intro the bundle and what it's designed to
do from a writer's perspective. Grab it here: http://www.ollieman.net/
files/screencast-intro.mp
Hi,
I have some small suggestions to the HTML, CSS and Markdown Bundle.
# HTML
## Refresh Running Browser(s)
Change Scope to `text.html, source.css` so the Browser can be
refreshed when editing the CSS file.
## Minor syntax stuff
php-source = { patterns = (
{ name = 'comment.line.number-sign.ruby';
match = '#.*?(?=\?>)';
},
{ name = 'comment.line.double-slash.ruby';
match = '//.*?(?=\?>)';
},
{ include = 'source.php'; },
);
};
Ruby mixed with php?
# Experimental/CSS
What about those Experimental Bundles? I use the CSS syntax from
there and it would be nicer if it was in the CSS bundle. Because
calling the Gear (Bundle Stuff) menu (Control-Escape) puts you there
and not in the CSS bundle. The experimental CSS syntax has been
around for quite some time and I wonder if it still is work in
progress? It seems to be better than the official CSS Syntax anyway.
# Markdown
## Suggestion: Markdown with [SmartyPants](http://daringfireball.net/
projects/smartypants/)
“Preview”/“Preview in Browser” or “Convert Document/Seletion to HTML”
Pipe it through `Smartypants.pl` (must be added to the repos.) to
have nicer HTML.
There should not be any problems so one could add it to the default
commands instead of creating an additional variant with SmartyPants.
I wonder why John Gruber did not combine them in the first place.
# Conclusion
That's it for now.
Have a nice day,
Soryu.
PS: Why do I not simply make those changes for myself? I did but then
I won't be able to use better bundle items from the repository or
even a new TextMate release because my changed override them. I know
Allan has something on the todo to manage this but it's not short term.
Hi
I sometimes have to work on large data files. The HITRAN 2004
spectroscopic database, is such an example (http://cfa-www.harvard.edu/hitran//). According to the terminal command wc
(wordcount), the file that I want to open contains 280 983 978
characters in 1 734 469 lines. Opening with TextWrangler takes about
20 s.After that time I can move around and do some copy and paste
etc. TextMate, however, takes about 10 s on my 1.5 GHz G4 PB (2 GB
Ram), then it unexpectedly quits without actually displaying the
file. Can/Shouldn't I expect TextMate to work with files this large ?
There appears to be a problem with memory allocation.
Here is what the console log says.
===== Dienstag, 24. Januar 2006 14:54 Uhr Europe/Berlin =====
TextMate(18765,0xa000ed68) malloc: *** vm_allocate(size=1073741824)
failed (error code=3)
TextMate(18765,0xa000ed68) malloc: *** error: can't allocate region
TextMate(18765,0xa000ed68) malloc: *** set a breakpoint in
szone_error to debug
terminate called after throwing an instance of 'std::bad_alloc'
what(): St9bad_alloc
Christof
I'm trying to update/extend the ActionScript bundle and replace the
commands that output using the deprecated "Show in Seprate Window".
To do this I'm trying to store the output of the compiler then,
depending on success parse the output message differently.
Trouble is the following leaves me with nothing to work with:
complieResult=$( mtasc -cp "$TM_MX_CLASSES" -cp "$TM_CLASS_PATH" -cp
"$TM_CLASS_PATH/FP8" -cp "$PROJECT_DIR/src" -cp "$PROJECT_DIR/
classes" -version $flashVersion -trace $traceOption -frame 10 -mx -
out "$TM_SWF_OUTPUT" -swf "$TM_SWF_INPUT" "Main.as" )
echo "COMPILE RESULT $complieResult";
whereas
FILELIST=$( ls $HOME )
echo "FILELIST $FILELIST";
works as expected.
Can anyone point me in the right direction?
Cheers,
Simon
In BBEdit, TeXShop, Xcode, and I expect several other editors, one
can double-click one half of a pair of delimiters (e.g., braces,
brackets, or parentheses), the editor will find its other half, and
then it will select the delimiters and all the text in between. I
noticed you can't do this in TextMate. Looking through the help, I
noticed that you can do this by placing the cursor in the right place
and typing cmd-shft-b, but it is much easier to double-click to get
the same result. This has also been requested in the wiki, but I
couldn't find a response -- is something like this planned? If not,
consider this another request for this feature. :-)
Thank you,
-- Gary
I like to comment long spans of code thusly:
if (a_reason) {
for (whatever) {
while (something) {
... some code
} // while (something)
} // for (whatever)
} // if (a_reason)
I can't seem to find a way to tell TextMate that having comments after
the closing brace is okay.
I've tried variations on:
foldingStopMarker = '\*\*/|^\s*\}|^\s*\}.*';
to no avail. TextMate won't un-indent the brace.
Any help appreciated.
Regards,
JJ
---
Help everyone. If you can't do that, then at least be nice.
If I try using the "Generic word completion" of the Latex bundle, the error
/bin/bash: line 1: /Macros/LaTeXcomplete.pl: No such file or directory
is inserted into the text of my document.
I tried looking at the function in the Latex Bundle, but it seems to
be just a wondow with "No Macro Editor available" at the top and two
ExecuteCommandWithOptions {
lines.
I'm using the latest build 906.
Could anyone explain what is wrong?
Best wishes,
Nicholas
I hope you will forgive the newbie question, but I've searched the
documentation for an answer and can't see one.
I'm trying to use the build comand of the latex bundle with latexmk.pl
I've set my environment variables to:
TM_LATEX_COMPILER = [Path to latexmk] (though I still see "success"
for building even if this path is wrong)
TM_LATEX_VIEWER = preview
Yet the pdf is not generated. This could be because latexmk requires
the argument -pdf to produce a pdf, but I don't know how to specify
that, but the build process is so short, I'm not sure that latexmk is
being called at all.
Can anyone tell me what I'm doing wrong?
Best wishes,
Nicholas
I'm creating a bundle for screenwriting and I need help finishing it.
I need your Kung-Fu.
I sent out the word once before and nothing happened, so I made a
crappy screencast and now we'll if if anything comes of it.
Info here: http://ollieman.net/?p=80
screencast here: http://ollieman.net/files/screencast.mov
> Likely mtasc writes the output to stderr instead of stdout. You can
> redirect stderr to stdout using 2>&1, so the command would be:
>
> complieResult=$( mtasc 2>&1 -cp "$TM_MX_CLASSES" … )
This should get you the error output nicely formatted for HTML:
mtasc -cp "$TM_MX_CLASSES" -cp "$TM_CLASS_PATH" -cp
"$TM_CLASS_PATH/FP8" -cp "$PROJECT_DIR/src" -cp "$PROJECT_DIR/
classes" -version $flashVersion -trace $traceOption -frame 10 -mx -
out "$TM_SWF_OUTPUT" -swf "$TM_SWF_INPUT" "Main.as" 2>&1 | grep
characters | grep -v warning | perl -pi -e 's/^(.+?):(.+?): characters?
(\d+?)(?:-\d+)? : (.*)$/<a
href="txmt:\/\/open?
file=$TM_PROJECT_DIRECTORY$1&line=$2&column=$3">$1:$2: $4<\/a>/g'
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
Glad to see you back on deck! But the important textmate question is....
How was the skiing at Val Thorens? Good snow? Lift cues?
Hope you had a great break!
cheers,
tim
You must be dreading your inbox ;-)
I just spent about 2 hours "customizing" the LaTeX bundle to include
some of the "snippets" and templates that I used to use in TeXShop's
editor. After quitting and restarting TextMate, I noticed that at
least two of my templates have disappeared, the order of my snippets
and templates has changed, and the modifications I made to the
"Filter List..." in the Bundle Editor have all been reset, that is,
all the bundles that were unchecked in the filter have been checked
again and now show in the editor. Is this a bug or something that I
am doing wrong?
Thank you,
-- Gary L. Gray
I know that TextExtras is not supported in TextMate (a Google search
returned a few places that indicate this), and with the exception of
one feature, that hasn't been an issue for me. One thing that I
really do miss from TextExtras though is the "indent wrapped lines"
setting. Is this something that is on the list of things to be
implemented in TextMate?
Regards,
-- Gary L. Gray
P.S. I am new to TextMate and this list -- if this is not the
appropriate place to post queries such as these, please let me know.
I am doing a bit of Scheme-programming and have spent a few hours
trying to make TM understand Scheme syntax in a feasible way. Syntax
coloring is no problem since I can do recursive patterns (via
includes). However, I cannot find a solution to indentation. What I
have is a rule that creates a new scope called "expression.scheme"
for each nested expression, for example:
(if (= a b)
(+ c 1)
(+ d 2))
where 'c' (as well as 'a', 'b' and 'd') has the scope "source.scheme
expression.scheme expression.scheme".
So, this is my suggestion:
How about making the pattern matching engine scope-aware, so that I
can match beginning and end of scope? I believe having that would
make it a breeze to get indentation to work okay with Scheme, just
make a preference tied to scope "expression.scheme" and tell it to
increase indentation at the beginning ot the scope and decrease it at
the end. Each nested scope would then automatically add an
indentation-level, which is what is needed to indent right. (And
while I'm at it, to be able to set folding at the beginning and end
of scopes would also be awesome... :))
I don't think it is possible to do proper indentation for Scheme
without some new feature, but I could be wrong. Anyone have an
alternate solution? Please tell me.
Anyway, thanks for an outstanding product!
/M
--
Mikael Säker <mikael(a)sicher.org>
http://www.sicher.org
"Strangers have the best candy."
whoha!
I just wanted to do some xml-wrangling with TM and opened my usual
accounting file which contains ca. 6000 lines of xml.
I work with it all the time and never experienced any problems.
except for right now, when i did a search and replace with regular
expressions, just simply remoing all line-breaks, ie. replacing '\n'
with nothing.
TM has been maxing out the CPU for ten minutes now (Dual 1GHz G4) and
doesn't let me do anything. I've got ca 15 projects open and am
praying that they're saved.
How can this be avoided in the future? is TM really only usable for
small files such as XHTML templates or code? that'd be a real shame...
can anybody shed any light on this or give some advice, what other
product to use for the 'heavy lifting stuff'?
best regards,
tom
Hello,
I've tried searching the list, but I didn't find anything about
this. I've had this problem for a long time now and I figured it
would get fixed, but maybe I'm the only one having the problem.
When I'm editing HTML/PHP pages and I switch to my web browser,
Safari, to refresh and view my changes, then when I switch back to
TextMate I lose my place in the text area. It acts like it reloads
the file when I switch back to it. The carrot moves to the beginning
of the line, and most of the time the whole text area will scroll
down one line. Usually when this happens there is a 2-5 second lag
before I'm able to start typing.
It's very annoying. Is anyone else having this issue?
Hi all,
Been lurking for a bit and have finally come upon a situation where i
need some of TM's more advanced features, if anyone can offer some
pointers on the following - it would be greatly appreciated.
I need to:
surround a selection with some additional text ie 1,2 becomes [1,2]
after selecting the 1,2
on the line with the carat, trim any excess spaces from the end of the line
Any pointers appreciated,
Nik
Hi,
Just wondering what do you get when you buy a textmate licence, in
terms of upgrades.
Are you entitled to all the point releases, e.g. 1.4 -> 1.5 but not
major release like 1.5 -> 2.0.
Also will textmate work with the new Intel Macs?
Thanks,
Andy
Folks;
Looking at the templates the Python folks have in TextMate, I think
Ruby should have similar items in place.
Is anyone already working on this, or should I endeavor to add it?
Thanks,
-Chris
(Newly converted TextMate zealot :)
--
Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: cpatti(a)gmail.com
"The greatest dangers to liberty lurk in insidious encroachment by men of
zeal,well-meaning but without understanding."-- Justice Louis O. Brandeis
(Olmstead vs. United States)
Hey all,
i'm new to TextMate and i wonder if it's possible to change the
default ruby used when doing :
Automation > Run Command > Ruby > Run script
because i've severall rubys installed the one given by "which" being :
/opt/local/bin/ruby
but TextMate uses the latest :
/usr/local/bin/ruby
(notice my PATH is setup such a way to get the wanted "/opt/local/bin/
ruby")
then, how to setup TextMate in order to get "/opt/local/bin/ruby"
otherwise my scripts aren't working because of dependencies.
best,
Yvon
(1) Is there any shortcut to insert an image? Especially one that
finds the path and dimensions?
(2) Same as above but for Flash objects?
(3) How do I pull up the color picker so I can choose a hex code?
Thanks!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Hi all,
jEdit has a plug-in for its HTML/XML mode that automatically closes
the current markup block. For instance, if you have this:
<html>
<body>
<h1>
And then you hit the hotkey, "</h1>" will be inserted automatically.
I thought I remembered reading something in the TextMate manual about
an identical feature, but I can't find it now. I know that there's an
"Insert Open/Close Tag (with Current Word)" command, but that's not
quite the same.
Thanks,
Trevor
Hi,
I found a bug while going through Why's (Poignant) Guide to Ruby.
Whenever you type the following string of characters in Ruby mode:
"#<#{}#{
if you follow up with a '}' (just the right bracket), you end up with
}"}#}<}#}{}}#}{
If you do it in a piece of text, it garbles up your entire file,
adding a right bracket after every single character, making your file
look like this:
}#} }T}h}e} }g}u}t}s} }o}f} }l}i}f}e} }f}o}r}c}e} }w}i}t}h}i}n} }D}w}
e}m}t}h}y}'}s} }A}r}r}a}y}
}c}l}a}s}s} }C}r}e}a}t}u}r}e}
} } }
} } }#} }G}e}t} }a} }m}e}t}a}c}l}a}s}s} }f}o}r} }t}h}i}s} }c}l}a}s}s}
} } }d}e}f} }s}e}l}f}.}m}e}t}a}c}l}a}s}s};} }c}l}a}s}s} }<}<} }s}e}l}
f};} }s}e}l}f};} }e}n}d};} }e}n}d}
This bug appears both in r847 and the latest r906.
Regards,
Frederik
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.
If you're still using Terminal, you will find iTerm is an excellent
replacement.
It has tabs for multiple terminals, shortcuts for SSHelling to other
hosts, etc.
with http://iterm.sourceforge.net/
Regards,
JJ
---
Help everyone. If you can't do that, then at least be nice.
I've been playing with Textmate's latex capabilities and I am impressed.
But I am unable to get any graphics. Here is an example (TMExample):
\documentclass[12pt]{article}
\usepackage{ps4pdf}
\PSforPDF{
\usepackage{pdftricks}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pstricks-add}
}
\pagestyle{empty}
\begin{document}
\PSforPDF {%
\begin{pspicture}(-5,-5)(5,5)
\psaxes[linecolor=blue,tickstyle=top]%
{<->}%
(0,0)(-5,-5)(5,5)
\end{pspicture}
}
\end{document}
Out of this I get a rectangle in the viewer saying:
Can’t show picture #1 because TMExample-pics.pdf not found. Create it
from TMExample.dvi using dvips and ps2pdf!
I am not sure what to do with this.
Hi List,
is there a shortcut to make tm close the current tag? On BBedit you
could find it under: Markup --> Close Current Tag. And it was pretty
useful.
'K:?
--
k 'E B O Y
. /|\/|\/|\/|\
. / \/ \/ \/ \
I believe the architecture information was added in 10.4.3 which was
the release after the announcement of the Intel switch.
Luke
> well that's strange. you're taking the correct route to get to the
> information. i'm running 10.4.3 though, so that MIGHT be why. it may
> have been added in the most recent update. only thing i can think of.
>
> Kyle
>
> On 1/11/06, Charilaos Skiadas <cskiadas(a)uchicago.edu> wrote:
>
>
>> On Jan 11, 2006, at 11:11 AM, Kyle Swank wrote:
>>
>>
>>
>>> if you expand the "More Info" section in 10.4.x you will see
>>> "Architecture: Intel, PowerPC"
>>>
>>>
>>>
>> These are the steps I take:
>> 1) Open Finder, and go to the Applications folder.
>> 2) Control-click to bring up the context menu, and select "Get Info".
>> 3) I see under general what I described above.
>> 4) If I click on the "More Info:" tab, I see only: "Last opened:
>> Sunday, January 8..."
>> 5) No Architecture information anywhere.
>>
>> Running 10.4.2. I do not however have the most current XCode version
>> installed, if that makes a difference.
>>
>>
>>
>>
As much as I love textmate the one area were it has continuously fell
short for me is in the web preview pane. I want it to keep the file
up that I last used when I go to a css file and display the changes
however it will does not work this way.
I found that I needed to check some css syntax today so I fired up my
second favorite editor CSS Edit and once again found the exact
solution I which textmate would introduce.
Is there anyway I could make a key command that would fire off a
message to CSS Edit to update it preview, similar to how I can make
Safari refresh? (CSS Edit has command-R assigned to refresh it's
preview)
Thanks,
Eric C
I just found 1.5 recently and I am very impressed -- it is excellent and
shows some very nice enhancements over the previous release 1.1.
I still hope to see it undo typing all at once (rather than a character
at a time) before switching, but this is by far the most promising
replacement for Pepper that I've seen.
Regards,
-- Russell
As a new user of TextMate, the only thing that has disappointed me is
the incredible slowness of many bundle commands. For instance, if I
hit ^⇧D to duplicate the current selection, TextMate beachballs
(hangs) for about 15 seconds. This is quite surprising because my
machine is fast enough (1.33GHz G4 with 1.2GB RAM) and my files are
small (< 200 lines).
If I run top while TextMate is beachballing, I notice that bash is
consuming all available CPU cycles. Could there be something wrong
with my bash configuration? (I realize that TextMate is probably just
running some UNIX commands on top of bash to do the bundle command,
but still... 15 seconds of 100% CPU activity just to duplicate a
selected line? That can't be right.) Does everyone suffer through
this, or only me?
Trevor
P.S. I searched the list archives for this problem, but all I could
find were slowness issues related to remote file systems. All the
files I'm working with in TextMate are local.
Dear Textmates,
I am currently evaluating Textmate as a substitute for Emacs. My
first impression is really good (especially due to the excellent
documentation), but now I have encountered a problem that I cannot
resolve by myself. I hope you can help me with it.
I mostly work on LaTeX documents. With AucTeX, pressing Meta-q
(Reformat) when on line 2 of the following block of text would
reformat lines 2 and 3:
\begin{description}
\item[Projectivity:] A word and its transitive dependents must form a
continuous region of the full sentence.
\item[Planarity:] Dependency edges must not cross when drawn above the
words of the sentence.
\end{description}
The corresponding action in Textmate (Control-Q) produces this:
\begin{description} \item[Projectivity:] A word and its transitive
dependents must form a continuous region of the full sentence.
\item[Planarity:] Dependency edges must not cross when drawn above the
words of the sentence. \end{description}
I wonder if there is any way to tell Textmate that in LaTeX mode, a
paragraph should only stretch from the beginning of an \item to the
beginning of the next \item (or the \end{...} token), rather than
between empty lines? (This is what AucTeX does in the Emacs setting.)
Any help is appreciated.
Best,
Marco
Image Map Tool:
This is probably the feature from Homesite that I miss the most with my
transition to OS X for my work computer.
TM has done a great job of easing the pain in most other regards, but I
still find myself having to create at least one or two new image maps
every week. Most of the guys I work with are happy firing up ImageReady
to create them, but I consider this ridiculous. It's overkill to open a
(bloated) program, which I use for no other purpose, just to create an
image map.
Having used BBEdit prior to TM, I know that it also lacks an image map
tool. So this would be yet another area in which TM could beat BBEdit.
Warren L. Parsons
Salvete,
in a new language definition (MuPAD), I have
foldingStartMarker =
'\b(proc|domain|case|if|%if|for|while|repeat|axiom|category)\b';
foldingStopMarker =
'\b(end|end_proc|end_domain|end_case|end_if|end_for|end_while|end_repeat|end_axiom|end_category)\b';
Now, this works as expected, but I get folding markers whenever I type
the word “for” in a comment. Should I switch comment contents
explicitly to text scope or what is the recommended way of dealing with
keywords appearing in comments?
As an aside, another question on folding: MuPAD allows code of the
following structure (and that is actually quite common):
if foo then
dosomething()
elif bar then
dosome();
thingelse();
else
noidea();
end;
case x
of 1 do
...;
break;
of 2 do
...;
break;
otherwise
...
end;
What I would like to have is the ability to fold away the indented parts
above, i.e., everything fom an if or elif to the next elif, else, end,
or end_if, whatever comes first, from else to end/end_if, from an of
inside case to the next of, otherwisem end_case, or end and so on. But
it seems I can't have begin and end of two folding regions on the same
line, or can I?
regards,
Christopher
My Haskell bundle seems to have disappeared from the languages menu
and bundle editor. The bundle is in my /Library/Application Support/
TextMate/Bundles/ directory, but it doesn't show up in the TextMate
menus. If I save a file as .hs or .lhs, the mode is activated
correctly, so I know the bundle is getting loaded. Any ideas?
-dudley
If you're still using TextMate, you will find emacs is an excellent
replacement.
It has all kinds of stuff and can even cook your coffee (with a
compatible
coffee automat).
with http://www.gnu.org/software/emacs/
Regards,
Soryu
PS: Pun intended ;)
All,
Is there a way to use vi cursor key bindings in Textmate?
Sorry for the newbie question. I've just converted over to the Mac,
Textmate, etc.
Thanks,
-- Tim
Tim Wolters
Chief Technology Officer
Collective Intellect
http://www.collectiveintellect.com
Sorry for the post to everyone, but I know there are at least a
couple of mathematicians in the crowd, and I thought that we could
arrange a meeting with any of you attending the San Antonio Joint AMS-
MAA meetings. I'll be there from Thursday afternoon to Sunday, and
will spend my time mostly being interviewed, but I'm sure we can find
some time to meet.
Haris
I've searched diligently but can't find out, is there a way to display
all or part of the Project's Path on the main window? I use Subversion,
and have working directories like:
~/src
pcb-gcode/
rb3.0/
rb3.1/
trunk/
They all look the same when I'm in TM, so an elided path, such as used
elsewhere, would be great!
Thanks,
JJ
---
Help everyone. If you can't do that, then at least be nice.
Hi, folks,
I must have missed a preference somewhere. Is there a way to tell
TextMate to *not* open the previous document when I start up? I'm
perfectly happy with a new blank document, and I'd rather not have to
close the last document I worked on and open a new one every time I open
TextMate...
TIA,
Mike
--
Michael S. Tashbook
<mtashbook(a)acm.org>
Support your local shoggoth!
I had started a mediawiki bundle, which has not gone much further
than copying from the markdown bundle, but at least one person asked
me to make it available.
Since I am not really very proud of it as it stands, and since I am
not planning to work on it much in the near future, I won't add it to
the repository yet, but if you want to download it and use/improve
it, point your browser here:
http://skiadas.dcostanet.net/uploads/mediawiki.zip
Haris
Hello
i need to use this script for latex:
> #!/bin/sh
> location=$(dirname "$1")
> basefname="${location}/`basename "$1" .tex`"
> # process the figures
> latex --shell-escape "$1"
> dvips -Ppdf -o "${basefname}-pics.ps" "${basefname}.dvi"
> ps2pdf13 "${basefname}-pics.ps" "${basefname}-pics.pdf"
> /bin/rm "${basefname}-pics.ps" "${basefname}.dvi"
> #process the file (once)
> pdflatex --shell-escape "$1"
>
but i don't know how to make this.
Perhaos i need to modify the script in the command Typset & View :
run_tex () {
if [ "$TEX" != latexmk.pl ]
then "$TEX" ${TM_LATEX_OPTIONS:= --shell-escape -
interaction=nonstopmode -file-line-error-style} "$1"
else "$TEX" -f -r "${TM_BUNDLE_PATH}/latexmkrc" "$1"
fi
}
An idea ?
Thanks
Alain Matthes
Hello all,
I recently upgraded from version 1.0.2 to 1.5(906) and seem to have
lost an option. In 1.0.2 I was able to select View->Syntax Highlight
As -> (insert language here). Now with 1.5 that option is not
available in the menu. I do get the proper highlighting if I save
the file with the appropriate extension (.py for Python), but I can
not seem to find a place to start off that way. That is except for
using a template.
Did I mung something up here?
I have deleted and reinstalled but to no avail.
Thanks,
Brian
Hi there -
Ive been a textmate user for many months now. I notice the most
recent download (rev 898) has dramatically changed the "find" dialog,
most importantly in that it has removed the option to search and
replace within a selection !
I noticed that the "edit" menu has a selection "replace all in
selection". There are two problems with this. One is, it doesnt
work ! I click on it when i have some text selected, and nothing
happens. If it is in fact using my previous selection, thats not
very convenient since I dont get a chance to tell it what i want to
search and replace. Also, the key comibination - shift+ctrl+apple
+F ... a little excessive perhaps ?
Why cant the "replace in selection" checkbox be present in the
default "find" dialog like it was, and more importantly, why cant
this checkbox be automatically selected when I have text selected ?
this is how TextPad does it and it is by far the most intutive way to
do it.
- mike
# TextMate 1.5
It is with great pleasure that I am releasing [1.5 of TextMate][1]
(5.4 MB).
This is a free upgrade for all registered users and it features
hundreds of major improvements over the last non-beta (1.0.2) which
was released a year ago.
The jump in version number from last beta (1.1ß17 r898) is to
indicate how much has changed since 1.0.2, and that this release is
to be seen as half-way towards the 2.0 release.
_TextMate is a text editor that combines the beauty of Cocoa with the
power of UNIX and is intended for programmers and power users._
_TextMate has been built for both PPC and i386 and comes with a
[complete manual][2]._
[1]: http://macromates.com/textmate/files/TextMate_1.5.dmg
[2]: http://macromates.com/textmate/manual/