El 10/07/2007, a las 14:00, textmate-request(a)lists.macromates.com
escribió:
> tell application "TextMate"
> set w to window index 2
> set visible of w to false
> set visible of w to true
> end tell
it works like a charm. Thanks a lot. It will be for me a very
frequent shortcut.
- Juan FC.
Since upgrading to the latest version yesterday, the Convert Tabs To Spaces
menu option doesn't always work. I click on it and my text doesn't change.
But what I noticed later was a copy of my file's text had been appended to
the end of the file. More failures made more copies of the content.
Strange, I'm trying to reproduce the problem now and it's not occurring. It
works correctly every time.
This is with version 1.5.6 (1405).
THanks,
Ernest
--
View this message in context: http://www.nabble.com/Convert-Tabs-to-Spaces-is-unreliable-tf4059276.html#a…
Sent from the textmate users mailing list archive at Nabble.com.
I found a question on this posed in the dev mailing list, but am posting in
the user mailing list, because it is now a user issue :-)
Any luck with this... I see the release notes mention using the keychain to
store passwords, but I'm not sure how to go about doing this...
Brad Miller wrote:
>
> I've been trying to get the new browser to work. But I get the following
> error:
>
> ERROR 1045 (28000): Access denied for user 'bmiller'@'localhost' (using
> password: NO)
>
> It looks like I should be prompted for a password? There is no place to
> enter one in the configuration dialog. I've searched my keychain and
> cannot find one. Is there some variable I should be setting to tell the
> SQL
> bundle that I want to use a password?
>
> Brad
>
> --
> Brad Miller
> Assistant Professor, Computer Science
> Luther College
>
> On 7/7/07, Ciarán Walsh <ciawal(a)gmail.com> wrote:
>>
>> Switching in new SQL bundle from WIP branch
>>
>> Changed:
>> D branches/WIP/Bundles/SQL.tmbundle/
>> A trunk/Bundles/SQL.tmbundle/
--
View this message in context: http://www.nabble.com/sql-bundle-and-the-keychain--tf4043562.html#a11486125
Sent from the textmate users mailing list archive at Nabble.com.
Hey Kim,
Actually I was able to fix the problem by going to:
Bundles -> Bundle Editor -> Reload Bundles
This fixed multiple problems for me:
1) TODO Bundle
2) Markdown Preview
3) My Personal Bundle Snippets
----
Brian H
binarynomad(a)gmail.com
http://www.binarynomad.com
Based on a recent post, I have found easy to switch between the two
front-most windows,
osascript -e '
tell application "TextMate"
set index of window 2 to 1
end tell
' &>/dev/null &
(binded to numeric(0), making it really fast two use it!!, I use the
little finger)
but it doesn't work as desired since, although it exchanges the
windows order, it doesn't exchange the active one, leaving the window
behind the new front-most one active :(
Has anyone know some solution?
Thanks.
-- Juan FC
Hi there.
GetBundle is a great helper for installing and maintaining bundles!
A suggestion to its maintainer: would it be possible to add a "revert bundle
command"? I imagine that this could simply throw a dialog of all loaded
bundles and then delete the delta folder.
A really nice (but major, I imagine) would be a "merge" command which took a
bundle file on the desktop and merged its changes into an existing bundle,
on an item by item basis, prompting for conflicts.
I would use this for managing changes where I edit my own private bundles on
several machines and wish to get them all back into sync (I never figured
out subversion well enough to do it using SVN).
Some time ago, someone posted a message about a runtime error with bundles.
The problem was never resolved in the mailing list, but perhaps it was
outside the list...
I'm seeing the same problem. Whenever I try to execute a python script
within TextMate using <command>r, I see this error:
csh: setenv: Too many arguments. /bin/bash: line 2: : command not found
My default shell for my terminal sessions is tcsh, not bash. If that's any
help...
The very same script executes fine in a terminal window. If I execute from
TextMate using the Bundle -> Run Script (terminal), it works fine. If I just
execute the script in a terminal window, it works fine. Open the script in
BBEdit, and execute via the #! menu and it works fine.
Similarly, perl scripts return the same dumb error, yet work fine elsewhere.
I updated all my bundles with subversion, per the help file. I added
/Library/Application Support/TextMate/
and
/Library/Application Support/TextMate/Bundles
like the instructions indicated, and then added the bundles I expect to use.
Perhaps someone can tell me the error I've made.
Until then, back to BBEdit...
TextMate version 1.5.6, Mac OS X 10.4.10, MacBook Pro.
--
Richard Brosnahan
Editor in Chief
Broz News
http://broznews.org
I have never let my schooling interfere with my education.
Mark Twain, author
Hi,
I often find myself wanting to open a currently selected tab in a new
window (without having to track down the actual file in the file
drawer), so that I can look at it in parallel with another tab. Is
there a shortcut to do it? I can't find anything like that.
Any hints would be greatly appreciated.
Tench
hello :)
I've a problem when I compile with the TextMate command, often I've
a good result but when I compile the same document with texshop or with
kile on ubuntu I 've some errors. Texhsop and Kile stops the
compilation but not TextMate....
But the errors are real and I think that for the Textmate'command these
errors are only warnings.
Is it possible to modify this ?
Thanks Alain (sorry for my bad english)
Thanks, Alan, but I guess I was a bit unclear. I was hoping it would
look for the TODOs in just the files in the current project file, and
not all the files in the TM_PROJECT_DIRECTORY and down.
For example, if I have a project /Users/uner/Development/
exampleProj.tmproj with two files
/Users/uner/Development/vob/examples/example.cpp
/Users/uner/Development/vob/examples/tests/test.cpp
If I pick one of these files, type "echo $TM_PROJECT_DIRECTORY" and
do a ^R, I get "/Users/uner/Development/vob/examples", and that's the
folder the TODO bundle starts scanning from (i.e. it does /Users/uner/
Development/vob/examples/ and all subdirectories).
I'd really like it to just scan example.cpp and test.cpp.
Is there a way to do this, or do you have a suggestion for some code
I can copy from another bundle to see if I can hack this together
myself?
On Jul 8, 2007, at 7:00 AM, textmate-request(a)lists.macromates.com wrote:
> From: Allan Odgaard <throw-away-1(a)macromates.com>
> Date: July 8, 2007 1:24:51 AM CDT
> To: TextMate users <textmate(a)lists.macromates.com>
> Subject: Re: [TxMt] TODO Search Path/Recursion
> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>
> On 8. Jul 2007, at 06:04, Eric Uner wrote:
>
>> [...]
>> 1) Get the bundle to just show me the list it came up with last
>> time and only refresh when I need it to, or better yet,
> Could be done, but I don’t think many would prefer this behavior.
>> 2) Get it to only search the files in the current project?
> That should be the default -- try check the value of the
> TM_PROJECT_DIRECTORY variable from within your project.
> You can also set TM_TODO_IGNORE to exclude certain files/folders.
> On 8. Jul 2007, at 06:04, Eric Uner wrote:
>> [...]
>> 1) Get the bundle to just show me the list it came up with last
>> time and only refresh when I need it to, or better yet,
> Could be done, but I don’t think many would prefer this behavior.
>> 2) Get it to only search the files in the current project?
> That should be the default -- try check the value of the
> TM_PROJECT_DIRECTORY variable from within your project.
> You can also set TM_TODO_IGNORE to exclude certain files/folders.
Hi all,
(I'm posting this here because this section of the Textmate wiki:
"Use the mailing list...For everything related to bundle items, since
a lot of the stuff is done by other TM users (who for the most part
are subscribed to this list)")
I just upgraded to the newest version of Textmate (1.5.6 (1405)), now
when I hit the key combo (ctrl-shift-t), I get the error message:
/Users/jdoe/Applications/TextMate.app/Contents/SharedSupport/Bundles/
TODO.tmbundle/Support/lib/settings.rb:62:in `markers': undefined
method `+' for nil:NilClass (NoMethodError) from /Users/jdoe/
Applications/TextMate.app/Contents/SharedSupport/Bundles/
TODO.tmbundle/Support/todo.rb:32
I have not made any changes to the new "Preferences" section of the
TODO Bundle.
Does anyone have any suggestions on how I can correct this?
----
BrianH
binarynomad(a)gmail.com
Dear all, Having troubles getting Skim 0.5 to work with the Latex Watch
bundle. The compiled PDF is not updated on saving the source LaTeX. PDF sync
back and forwards works perfectly. Is anyone else having this problem?
Regards,
Mark P
Maybe a dumb question, but when/where do I enter my password for the
new SQL bundle in 1.5.6? I get a "Access Denied... using Password NO"
error.
Thanks
I have installed the "Edit in Textmate" bundle, with apparent success,
except that when I invoke the function, either through the hotkey
combination or by selecting the item from the edit menu in Safari,
nothing happens. I simply get the OS X warning sound.
Looking in the console I see the following:
2007-07-07 01:17:38.606 TextMate[9345] Can't open input server
/Users/chris/Library/InputManagers/Edit in TextMate
Not sure what this is all about, since this link does actually exist,
and links to the folder in
/Applications/TextMate.app/Contents/Resources.
Any idea how to get this working?
Thanks in advance.
http://www.puffinry.demon.co.uk/LaTeX%20Watch%202.4.dmg
Changes since 2.3:
- Warn if PostScript mode is used with a non-default previewer.
- Expand the help file a little.
- With TeXShop, use open_for_externaleditor on the .tex file, to work
around an encoding-related bug in TeXShop.
- Add a refresh command for Skim, which works in Skim 0.5 and later.
This is just as well, since the automatic file-change checking is broken
in Skim 0.5!
Robin
Hi all,
I'm errors of the following persuasion when using the new todo
bundle. A new window pops up and the progress spinner runs for a bit.
The script then bails with this output:
/tmp/temp_textmate.jnhxMD:64:in `initialize': No such file or
directory - /Applications/TextMate.app/Contents/SharedSupport/Bundles/
TODO.tmbundle/Support/template.rhtml (Errno::ENOENT) from /tmp/
temp_textmate.jnhxMD:64:in `open' from /tmp/temp_textmate.jnhxMD:64
I see there's no "template.rhtml" file in my TODO bundle's Support
folder (only template_SOMETHING.rhtml)
I'm using:
* the just updated version of textmate (Version 1.5.6 (1401));
* macports ruby (1.8.6);
I updated my Bundles and Support directory from subversion and got
this problem. I then blew out the bundle from my subversion checkout
to force textmate to use the TODO bundle from TextMate's own bundles,
still the same thing.
What am I doing wrong?
Thanks,
-steve
The other problem i solved with creating a symlink..
But i wonder how to store the MySQL password. I couldn't find anything
in the bundle documentation and there isn't a input field
Did i miss something ?
Regards J.
Hello,
is it possible to somehow add own values to the wrap column menue?
I'm often using 72 as wrap column for writing emails, and adding this to
the menue as a user defined value would be really nice.
Thanks,
Eike
The new TODO bundle looks great, but searching through the NFS links
and all the tags and dirs etc. involved in my projects each time I
want to see the list is impractical. I may as well grep -r half my hard
drive. :-)
Before I start hacking away at the Ruby, is there some easy way I
am missing to either:
1) Get the bundle to just show me the list it came up with last
time and only refresh when I need it to, or better yet,
2) Get it to only search the files in the current project?
Thanks,
Eric
Hi,
In a snippet with a mirror, how do you allow a mirror to be followed
immediately by a number without that number being interpreted as a part of
the mirror value?
i.e., make it that $11 is interpreted as <contents of group 1><digit 1>
$11 is interpreted as match 11
$1\1 (and \\1 and \\\\1) all let the slashes flow right through rather than
consuming them as escapes.
Any clues or is this a limitation in snippets?
Tim
____________________
Famous lauded but completely wrong judgements:
When Oliver Wendell Holmes defined the class of speech which was not
protected by the first amendment as being the class of speech which includes
shouting "fire" in crowded theatre when there was none, he did so in a case
where he was justifying the jailing of Yiddish protestors against the draft
in WWI.
It is of course most critical to protect speech exactly when there is debate
over whether there is a "fire" (incitement to imminent violence) or not, and
that is what Holmes failed utterly to do.
I decided to write a modified version of a MultiMarkdown command, and
because I'm better at Ruby than I am at bash, I wrote my version of the
command in Ruby. It's working!
However, in order to pass the incoming text thru MultiMarkdown.pl, I open a
subprocess. I am not very savvy at subprocesses, so I have a couple of
questions:
(1) Is there an elegant way? Right now I'm using IO.popen, which has the
virtue that I understand what I'm doing, even though it's wordy.
(2) More important: we do not seem to be picking up the paths automatically,
so I have to construct (from ENV) a full path to where MultiMarkdown.pl sits
inside the support bundle. Is there a trick for handling this? The original
bash version just automagically "sees" MultiMarkdown.pl and SmartyPants.pl;
is there some way my Ruby script can automagically see them too?
Thx - m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Hi,
First off, a big thank you to whomever wrote the Hyperlink Helper! What a
great little bundle! I think you have helped the world, as this will make
more pages incorporate referencing for claims, and help wikipedia become the
top link for information and make links more semantically (in the Tim
Berners Lee sense of semantic link) valid
Buglet for you:
Select the text "Cronbach's alpha"
"Lookup selection on wikipedia and link" -->
Received exception:bad URI(is not URI?):
http://en.wikipedia.org/wiki/Cronbach\'s_alpha
<a href="" title=""></a>
In a plain text document it returns the following
Received exception:bad URI(is not URI?):
http://en.wikipedia.org/wiki/Cronbach\'s_alpha
(this language is not supported, see for more info)
> On 4. Jul 2007, at 23:12, Max Lein wrote:
>
> > The problem with TextMate is that it essentially forces people to
> > use UTF8.
>
> Yes, and as I tried to explain, there is good reason it does that.
There are usually `good' reasons not to as well. For all I love about
TextMate, it's a bit pushy here ;-)
> > I have yet to find a way how to teach TextMate that my default
> > encoding is Latin1 (even though this is the default encoding which
> > I have set in the prefs): as long as a TeX file doesn't contain any
> > special characters, it will automatically assume they are UTF8
files
> > (ignoring my preference and -- if existant -- the metadata
connected
> > to that file).
>
> When checking “use for existing files” it will respect your
> preference. However, I fixed the problem for next build, so when
files
> with ASCII encoding can’t remain as ASCII, it will first try your
> preferred encoding (even when the “use for existing files” is not
> checked).
Well, my web pages use UTF8 ... so this option doesn't really solve the
problem. (I am aware of said option, but it just shifts my problem.) As
I said, an encoding per project option would be greatly appreciated (I'm
not sure I understand the last part of your reply correctly and whether
TextMate 2.0 would effectively resolve this issue).
> >> [...]
> >
> > However, going UTF8 is sometimes just not an option [...]
>
> Maybe not, but the bundle commands (which was the topic of this
> thread) can’t be expected to work with your files, when those
> are not UTF-8. I.e. go with Latin-1 and use special characters,
> and you should be prepared to see no or garbled output from script
> runners (which show script output), diff commands (showing changes in
> your files), build commands (which quote parts of your source), log
> commands (showing SCM log entries), various validation/completion/
> pretty-printing commands, a.s.o.
You clearly have the perspective of someone who codes (which is fine by
me, just an observation), but I haven't noticed any garbled output while
working with Latin1. That's probably due to the simple fact that I just
use a very specific subset of TextMate's commands. For me, a one-time
warning would be acceptable.
> > I frequently exchange files with people who work on Windows,
> > Linux or Solaris and the standard encoding they use is usually
> > Latin1. Yes, there are ways how to use UTF8 on other OS, but have
> > you ever tried to convince someone to switch to UTF8 who still
> > writes his papers in Plain TeX?
>
> Would plain TeX not be ASCII? :)
... but my contribution isn't. The encoding is `hardcoded' into
LaTeX (it's a simple command), so when the chapters are merged, we'd
get into trouble (not necessarily with Plain TeX people of which
there are admittedly very, very few left, but with all of my active
co-workers). (We usually split our work into sections which are then
compiled. Obviously any other wants to be able to compile the TeX code
on his system without fiddling for half an hour. I've seen it happen
often enough.)
> > Instead of blindly arguing for people to convert to UTF8 (which
> > is what I would use if I got to choose), you should accept that
> > people (= customers) want to and sometimes need to work with other
> > encodings as well.
>
> In what you replied to I gave a technical explanation of why it
> is highly infeasible to support other than UTF-8 for the various
> commands, which was the topic raised. Me accepting that some can’t
> use UTF-8 doesn’t really change that.
Well, I understand the reasons you gave, but people who use LaTeX need
just functionality, most of which is provided by the LaTeX (or Beamer)
bundle. I think if people consciously change the encoding to something
other than UTF8, they have a good reason for doing so. Give them a
warning (once) that some commands may not work would be acceptable to
me. I haven't heard of people in my field using diff on their TeX source
files, for instance. I've also never had any problems with TextMate's
built-in commands that produced no or garbled output.
I can certainly understand if you'd rather fix other problems than
these. But I think there are certain fields when this is just an
essential feature and the people would even be willing to live with a
smaller feature set.
> > I'm still longing for an `encoding per project' option which
> > TextMate would stick to no matter what. And also an error message
> > that tells me that I cannot save my .tex file in Latin1 because
> > there are some (invisible) characters that prevent it from doing so
> > (right now, it'll just revert to UTF8 without telling me).
>
> I have commented on this a few times in the past; the lack of a
> warning is indeed very unfortunate, and it comes from the code that
> does this “bumping” of encoding not having access to the UI. A
> mistake 2.0 will be without -- and as for encoding per project, I
> can’t recall exactly how much I have said here, but 2.0 does move
> a lot of things to be more folder-oriented and has another approach
> to dealing with encodings, basically offloading this to customizable
> import/export hooks, so non-UTF-8 users should be able to get
whatever
> they want.
That's very good news (although the first time I hear of those new
features). I hope that you don't have to set these encoding hooks
globally (not 100 % sure what you mean by that), as I mentioned, I use
UTF8 whenever I can (e. g. for the websites I maintain) and Latin1
*when I have to*. Hence different projects, different encodings and
a per project encoding seems like the best option to me. (I usually
create a project for my papers (LaTeX) since LaTeX is very noisy and
creates a phletora of files I almost surely don't need.) :-)
Max
UC Berkeley
Department of Physics
Is it possible to create a "palette" using tm_dialog? From a ruby
shell I can create a dialog that reads in a list and then lets me
load a nib asynchronously, clicking add multiple times. It then
returns all of the added choices when I close the nib. There are two
issues I'm working through:
1. When I run the same code from within a command, the dialog (nib)
freezes and takes no input until I cancel the command. I'm using the
wait_for_command loop from the dialog.rb code. I then manually close
the nib from the terminal. Is there something I'm missing?
2. I'd like to be able to keep the "palette" open and insert
snippets (or tags in this case) as I go, rather than upon window
close. I'd like to use this for both the Autotag bundle and the
Wordpress bundle, keeping a palette of Tags/Wordpress snippets open
and insertable at any time. Any way to do this?
Thanks,
Brett
Suppose you’re a person with a bad short-term memory doing test-
driven design. (You’d be me.) You’d want to have both the test source
and corresponding product code source visible at the same time. You'd
probably also like to to spend screen real estate to show a couple of
other files as well.
To this novice user, TextMate doesn’t seem like it wants you to be
doing that. For example, apple-t doesn’t remember visits to separate
windows, so when I want to visit “that file I was just in”, I have to
remember whether it was in a tab or a window and use either apple-t
or apple-`. But the reason I want separate windows is I have no
memory for such things.
However, I’m early enough in the Emacs->TextMate switch that I’m sure
I’m missing many things. How do you use TextMate on big screens?
-----
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
www.exampler.com, www.exampler.com/blog
if I create an image and save it to a folder that has been opened in the
project pane, how do I get TextMate to recognise the new files?
the files are on a shared network folder, could this be part of the problem?
(I'm using TM on a Mac mini, with a WAMP set up for my development on a
different box on the LAN)
currently I have to "add existing files"
is there a better way to "refresh" the files and folders in the project
that I've missed?
if all the files were on a Mac would TM recognise new files in project
folders automatically?
TIA
--
Join me: http://wiki.workalone.co.uk/
Engage me: http://www.boldfish.co.uk/portfolio/
>> I understand the problem now. However, how come TextMate can
>> detect what encoding was used for a file, and the scanner can not ?
>
> TextMate can *not* detect the encoding of your files. If you use
> UTF- n encoding, there is a 99.9999…% chance that it will get it
> right, but *any* other encoding, and TM’s guess is based on a
> frequency table and how well your file corresponds to this
> distribution when interpreted in the various encodings.
The problem with TextMate is that it essentially forces people to use
UTF8. I have yet to find a way how to teach TextMate that my default
encoding is Latin1 (even though this is the default encoding which I
have set in the prefs): as long as a TeX file doesn't contain any
special characters, it will automatically assume they are UTF8 files
(ignoring my preference and -- if existant -- the metadata connected
to that file).
> So anything else than mandating UTF-8 will make things break, and
> there is no technical solution to this problem. Sure, you can have
> things work “good enough” for some w/o going 100% UTF-8, and you
> can maybe fix some of the stuff that breaks when you are not using
> UTF-8, but you can never fix it all, so IMO it’s really not worth
> trying to support more than UTF-8, UTF-8 is the solution to the
> encoding problems of the past.
However, going UTF8 is sometimes just not an option. I frequently
exchange files with people who work on Windows, Linux or Solaris and
the standard encoding they use is usually Latin1. Yes, there are ways
how to use UTF8 on other OS, but have you ever tried to convince
someone to switch to UTF8 who still writes his papers in Plain TeX?
Instead of blindly arguing for people to convert to UTF8 (which is
what I would use if I got to choose), you should accept that people
(= customers) want to and sometimes need to work with other encodings
as well.
I'm still longing for an `encoding per project' option which TextMate
would stick to no matter what. And also an error message that tells
me that I cannot save my .tex file in Latin1 because there are some
(invisible) characters that prevent it from doing so (right now,
it'll just revert to UTF8 without telling me).
Max
UC Berkeley
Department of Physics
I'm having a bit of trouble trying to work out if it's possible to
have compound regular expressions in a snippet.
Basically, I want to replace all spaces in a tab-stop with hyphens,
whilst also lowercasing the whole string -- two things I can happily
do separately:
${1/.*/\L$0/}
${1/ /-/\g}
but can't seem to work out if it's possible to do both at the same
time. I've tried replacing the tab-stop in one expression with the
output from another:
${${1/ /-/\g}/.*/\L$0/}
but it doesn't work. I know it's possible if I create an intermediate
tab-stop like this:
${2:${1/.*/\L$0/}}
${2/ /-/\g}
but I don't want to do this as I have no use for the intermediate value.
Any help would be greatly appreciated! Thanks in advance.
Jordan
Hi,
I don't know how feasible this would be but at the moment theres no
easy way to get a diff from the commit window of what you are about
to commit, I end up clicking on the diff button for each of the files
I'm committing separately to check the commit.
Could there be a button (next to 'Cancel' & 'Commit') which shows a
diff of all the selected files.
Thanks
---
Jeremy Wilkins
Hi,
I use Version 1.5.5 (1368) on Intel MacBookPro 10.4.10 and have the
following problem:
if I want to open an 400 KB large xml or html file, TM needs over 10
minutes to open it.
Is this normal?
How can I increase the loading speed?
Thanks,
ALex.
A broken regular expression in the Blogging bundle prevents passwords
from being recognised when they're embedded in the endpoint URL.
Attached patch fixes.
Robin
Hi Tobias,
thanks, it worked.
ALex.
2007/7/5, Tobias Jung <newsgr(a)tobiasjung.net>:
> At 12:44 Uhr +0200 05.07.2007, Alex Greif wrote:
> > ist there a tool like tidy for pure XML documents? currently I have a
> > very large XML document without linebreaks.
> > I would use the tool to format the xml nicely and then open it in TM.
>
> Try this:
>
> tidy -o destiny.xml -iq -wrap 70 --tab-size 4 --indent-spaces 4
> --input-xml 1 --output-xml 1 source.xml
>
> Hope this helps!
> Regards,
> Tobias
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
Hi,
ist there a tool like tidy for pure XML documents? currently I have a
very large XML document without linebreaks.
I would use the tool to format the xml nicely and then open it in TM.
thanks,
ALex.
2007/7/5, Tobias Jung <newsgr(a)tobiasjung.net>:
> At 12:03 Uhr -0400 03.07.2007, Thomas Aylott (subtleGradient) wrote:
> > I regularly have to deal with html documents that have been
> > stripped of all newlines.
>
> Well, maybe this isn't the kind of solution you're looking for, but...
> Wouldn't it be better to use the "tidy" tool on these files _before_
> opening them in TextMate? After all, it isnt't fun to work with "no
> linebreaks" HTML files anyway.
>
> Using the following command line in the Terminal should give you a
> cleanly formatted file and leave most of the HTML code itself
> untouched:
>
> tidy -o destiny.html -iq -wrap 70 --tab-size 4 --indent-spaces 4 source.html
>
> Kind regards,
> Tobias
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate(a)lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
Perhaps the answer is already somewhere -- if so, please point me in the
right direction.
I've just decided to completely switch from Xcode to TextMate. I've
imported a WebObjects project and everything was great, until I tried to
open the .html file inside a .wo bundle.
Is there a way that I can import the project and have TextMate make the
.wo a folder, showing the .html and .wod files inside?
--
-------------------------------------
Dana Kashubeck
Systems Manager
Riemer Reporting Service Inc.
http://www.riemer.com
Phone: 440-835-2477 x. 125
Fax: 440-835-4594
-------------------------------------
Hello,
I'm writing my master thesis with TextMate and the LaTeX bundle, and I
encountered two problems.
First, I want to compile it using latex, and not pdftex. So, I set the
variable TM_LATEX_COMPILER to latex. However, this only is not enough. I
checked the Typeset & View script and I had to add this in order to make
it work :
if [ "$TEX" == "latex" ]; then
TEX_PSTRICKS=1
fi
after the line
TEX=${TM_LATEX_COMPILER:-$DEF_TEX}
Second, I write it in French. There are a lot of accents (é,è,à,ù,ï,ë,
and so on) in French, and sometimes, there is one in a
chapter/section/subsection title. The accents go into the label to.
Creating the chapter/section/subsection works fine with the accents.
However, when I try to refer to them and use \ref{sub followed by
Alt-Esc to use the auto-completion, I can select the sections with
accents in the labels, but when I do select a section with an accent,
instead of writing the label, it deletes everything inside the \ref{}. I
see two solution to this :
- Change the autocompletion script so that it can take accents.
- Change the chapter/section/subsection/... commands so that they
replace accents by regular letters (éèë by e, ...) in the labels.
However, I don't know how to do any of them.
Does anyone have a workaround this ? Or is it possible that someone
correct this in the bundle ?
Thanks,
Maxime Boissonneault
maxime.boissonneault(a)usherbrooke.ca
Textmate 1.5.5 (1383)
Subversion -> Status, then clicking the Commit button results in this:
/Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:17:in `require': No such file to load -- /Applications/_txt/TextMate.app/Contents/SharedSupport/Support/lib/io (LoadError)
from /Library/Application Support/TextMate/Bundles/Subversion.tmbundle/Support/svn_commit.rb:17
Eh?
Quinn
Does anyone besides me find it ironic that the Bundle Editor window where we
edit TM commands is not, itself, a TM window? Thus, while writing e.g. a
Ruby command, we don't get any syntax coloring, delimiter pairing, etc...
m.
--
matt neuburg, phd = matt(a)tidbits.com, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
Help needed. I have \usepackage{pdfsync} in my preambles, I set my
viewer as TeXShop or Skim in TextMate's shell variables or for the
project, but command-click gives no result.
Should add set other variables such as TM_LATEX_MASTER? and what value?
Or edit the command "show in PDF Viewer"?
Thanks for the help. I just thought I had to go back to editing in
TeXShop (because of the pdfsynching), but I couldn't bring myself to
edit in TeXShop anymore, I'm already hooked on TextMate, after just a
couple days...
--Gildas Hamel
I'm hoping someone can help me figure out why I can't bring up bundle
help items using Ctrl-H anymore. This key combination is now deleting
instead. I've deleted all my preferences and support files and
re-installed, but I'm still out of luck on this.
Any help would be appreciated.
Dylan
dear all,
I just moved to a new machine (from PPC to macintel) and now "typeset
& view" doesn't work. more precisely: compilation of the file is fine
but preview doesn't work. instead i get a spinning ball in the upper
left corner and a paper icon in the middle of the html-window.
on the command line ps2pdf, pdfview etc. do work. if I remove *.dvi,
*.ps, *.pdf in the working directory, TM initiates their recreation,
so this isn't the problem. it sems to me that, for some reason, TM
can't access the previewer.
i re-installed TM, to no avail. same if i create another user account
and try it there.
TM, cutting edge.
any hints?
best,
christoph
hi,
is there any way in textmate to type i.e. ' without completing it with
another ' ?
sometimes it's convinient to have closing apostrophe and sometimes it's
pretty annoying.
thanks,
mikie
Does anyone know if it is possible to set TextMate to blog to a
SimplePHP blog (http://sourceforge.net/projects/sphpblog/)? I chose
SPHPBlog a while back because of the ease of its installation, but
perhaps this same ease precludes using TM for editing posts to it?
Thanks for any help,
--Gildas Hamel
Hi again!
I just have seen that the LaTeX-Beamer-grammar is missing. Did I got
that from some other source or is it just integrated into the LaTeX-
bundle nowadays (I have an actual svn-checkout)
Niels
Hi!
I'm pretty sure that I asked that a long time ago but I can't find
anything about it in my mail-archive.
I have several templates in my template folder
conference-ornate-20min.de.tex
conference-ornate-20min.en.tex
generic-ornate-15min-45min.de.tex
generic-ornate-15min-45min.en.tex
speaker_introduction-ornate-2min.de.tex
speaker_introduction-ornate-2min.en.tex
template.tex
The first six files are standard-files from the beamer-package.
All files with en.tex and the template.tex-files are working fine.
The de.tex-file give me, after using the temp-command, only an empty
file.
Any idea what the problem could be?
Niels
Dear All,
Each time I attempt to convert a Markdown document to Latex through the
Markdown Bundle (MultiMarkdown selection) I receive this error -
-:3: parser error : Extra content at the end of the document
Any ideas. I have the latest bundle checked out and the latest support
folder,
Regards,
Mark P
ObTopic: I mean to do this in TextMate.
Suppose I were writing a LaTeX document and wanted to include Unicode
literals like ⌘ and ⇧. Is there a way to do that? The returns from
Google searches produce only packages that allow other encodings to
stand for character combinations TeX already knows.
— F
Hello Ladies and Gentlemen,
Is there a way to substitute an accented character by its non-
accented equivalent with a regular expression?
I'm asking because the LaTeX snippets for sectioning (cha, sec, sub,
subs, ...) automatically generate the label associated with a newly
created environment, but unfortunately the regexp used for this keeps
the characters accented.
Beacause of this, it requires to correct manually the label in order
for LaTeX to accept it for compilation.
Is it fixable?
Xavier Cambar
I'm having a little trouble with the Plain Text WIki. The command: export
wiki to HTML always gives the error -sh: line 1: /Library/Application: No
such file or directory,
Any ideas?
Regards,
Mark
Hi,
I don't remember when this warning starts happening but I can not make
anything out of looking at the bundle codes.
When I type "item" and do "command+{", the output now has a warning
message like below:
Warning: PropertyList is deprecated. Use OSX::PropertyList instead.
\begin{itemize}
\item
\end{itemize}
The command works as expected, but I can not figure out what trigger
the warning. I don't know the version of LaTeX bundle but I use
GetBundle to keep it updated.
TextMate 1.5.5 r1383
Mac OS X 10.4.9 PPC
ip
Hello everyone,
I was wondering if anyone else came across the same following
behavior: When repeatedly typesetting a LaTeX file (e.g. when
changing equations around), PDFView correctly updates the page in
question but then jumps back to the first page (making it very
annoying to scroll to the appropriate page again). I have only
experienced this behavior with _some_ files, while others seem to
work fine.
Thanks for your help,
Jonas Müller
Hi there
Am bumping into an issue assigning a due date to an action.
I get the date picker OK but when I submit a date, I get this error
written to my .gtd file:
/usr/local/lib/ruby/1.8/date/format.rb:230:in /bin/bash: -c: line 1:
unexpected EOF while looking for matching `''
Any clues appreciated.
--
Richard
Hi,
I couldn't find the last thread, so I just open a new one.
There were some problems with LaTeX label completion and I especially
had problems when using subfolders in projects.
If the latex master file is in a subfolder, then there are three
posibilities for TM_LATEX_MASTER.
1. Give the full path to the master file:
In this case everything works, but I don't like this, because then you
cant move your projects to another place without having to change
everything.
2. Use the string 'subfolder/master.tex'
Typeset+View will work, label completion will not work.
3. Use the string 'master.tex'
Typeset+View will not work, but label completion will work in all files
that are in the same folder as master.tex
So parsing of subfolders is implemented in a different way for
Typeset+View and label completion. Would be nice if this was fixed.
Ruben
Hi,
natbib defines a set of cite commands that start with an uppercase C
(e.g. \Citep), which are meant to be used at the start of sentences,
especially if the author name starts with a lowercase letter (as in
"von ....").
The current TextMate highlighting doesn't recognise these commands as
citation commands. However, this is easily fixed by changing the first
occurrence of "cite" to "[Cc]ite" in the language definition.
The fix seems to work fine, so I was wondering whether this should go
into the main release.
cheers
Hendrik
Dear TextMate users
TextMate's LaTeX.bundle is really nice, but there is one thing that
bothers me when editing LaTeX documents with hard line wraps.
Reformatting a paragraph (with Crtl + q) does not behave the way I
would expect. Emacs is very smart when reformatting paragraphs in
LaTeX and I would love to see some of these features in TextMate too:
* currently reformatting an equation or figure environment messes up
the layout completely
* section titles should be kept on a distinct line and moved within
the text
* reformatting paragraphs that are commented should adjust the line
length and keep the paragraph commented
* putting a single % character at the beginning of a line divides a
paragraph into 'reformatting units'. When reformatting a paragraph,
the reformatting operation does not cross these % boundaries
* no reformatting should occur in math environments
In summary, reformatting should adjust the line-length but respect
LaTex commands and environments.
It looks like the LaTeX mode currently does not provide LaTeX
specific reformatting, but uses standard plain text reformatting.
Would it be difficult to change the behaviour? I assume that
implementing smart Emacs-like LaTeX reformatting requires the
bundle's grammar to provide a specific scope for marking the unit of
text (i.e. a paragraph) that should be subject to the reformatting
operation, e.g. text.tex.paragraph.
Does anyone have an idea, how to implement this?
Best regards,
Christian
--
Christian Plessl christian(a)plesslweb.ch http://plesslweb.ch
Hi,
I use Version 1.5.5 (1368) on Intel MacBookPro 10.4.10 and have the
following problem:
I created a new TM project and dropped a large folder in the project
drawer. To have shorter search times I removed the references of some
subfolders. Then I saved the project.
After quitting and restarting TM with the project, the removed folders
appear again.
How can I remove subfolders from a project that will stay removed
after restarting TM?
thanks,
Alex.
Dear all,
I know it is a bit off-topic but I believe it could also be
interesting for some TM users ;)
I'm just writing a grep-like command line tool based on the Oniguruma
library to work with UTF-8 data.
It works perfectly, and in many many cases it's faster than grep ;)
In order to be sure that this command line tool written in pure C
works on other Macs as well, I'd be appreciate if someone has a bit
time and a bit free hard disk space to check whether it runs for her/
him too. Especially whether it runs on a Intel Mac.
To run onigrep it is necessary to install the Oniguruma dylib in
beforehand. To do this simply
- download the source code from http://www.geocities.jp/kosako3/
oniguruma/archive/onig-5.8.0.tar.gz
- untar it
- cd in that folder
- execute:
./configure
make
sudo make install
that's it.
Normally Oniguruma dylib is installed in /usr/local/lib.
[I believe to use the external dylib is the best choice because
Oniguruma will be better and better. So you only have to upgrade the
dylib and not onigrep.]
Now you can run onigrep. For help type 'onigrep --help'. Up to now it
only reads UTF-8 data from stdin.
[Please note, if you did't copy onigrep in a folder listed in $PATH
you have to write the entire path to onigrep or if you're in the
folder where onigrep is located just type ./onigrep]
Some features in short terms:
- utf-8 support (that means a '.' is really one Unicode character)
- ignore case also works for all Unicode characters, not only for ASCII
- you can search across \n; multi-line mode
- ignore combining diacritics (for that you have to decompose
accented characters according the Unicode canonical decomposition
algorithm
(I attached such a tool. It is called 'unorm'. For help run 'unorm
--help'.)
example:
echo "Ag̀nes" | ./onigrep -id -i -o "a(.)n"
will output 'g̀'
echo "Ag̀nes" | ./onigrep -i -o "a(.)n"
will output nothing because ǵ is written with two Unicode
characters
- it is faster than grep in many cases:
try:
cat /usr/share/dict/web2 | ./onigrep "y$" -c
cat /usr/share/dict/web2 | grep "y$" -c
- option -cl counts the matches per line
example:
onigrep "\w+" -cl -n
How many words per line?
- you can write the regexp without escaping '(', ')', etc. as with grep
Please note, onigrep is still work in progress.
Many thanks in advanced und any feedback (suggestions, bugs, wishes)
is welcomed!!
Hans
PS onigrep and unorm will be available for free.
PPS One possible meaning of the Japanese word "Oniguruma" is "Devil's
wheel" like Textmate's icon ;)
On Jun 24, 2007, at 07:00 , textmate-request(a)lists.macromates.com wrote:
> On Jun 23, 2007, at 9:01 AM, John Laudun wrote:
>
>> Now, I know I could write an AppleScript -- okay, I've never been
>> any good with AS, but it's there -- I was just hoping that I could
>> not and thus be able to work entirely within TextMate. All I need
>> is a keystroke, or perhaps two, that would start and stop playback
>> of an MP3 file. (I assume I would have to do this through
>> QuickTime, but if there's a simpler command-line tool that could
>> do this, that would be fine with me.) The only wrinkle I would
>> like to add would be to be able to set an "auto-rewind" to the
>> START or STOP command so that when playback commenced again it
>> would start X seconds backwards from where it stopped. Setting
>> this X in a config file of some kind would be fine with me.
>
> Okay, I created three commands which should get you started. I put
> these in a bundle together which is attached. You'll probably want
> to change the key bindings.
>
> ⇧F1 Start Current Movie - Plays the frontmost window in Quicktime
> Player after rewinding it by two seconds.
> ⇧F2 Stop Current Movie - Stops all movies in Quicktime Player.
> ⇧F3 Rewind Current Movie - Rewinds the frontmost window in
> Quicktime Player to the beginning.
>
> So just open your MP3 in Quicktime Player and away you go. BTW, I
> figured out the scripts by looking here:
Those are brilliant and work quite well.
And, yes, I should have read up more on Applescripting Quicktime, but
I did not know about using osascript within TextMate.
Many, many thanks!
john
I keep getting a message saying there was a problem updating my
bundles. I checked the console and I'm seeing this message:
svn: Can't connect to host 'validcode.net': Operation timed out
-dave
Hello,
I've had a problem with the find dialog. It does not crash, but all the
buttons (not the text fields!) simply become unresponsive. It's been
reported before, but I just experienced it twice in a week.. :(
The only workaround that I know is to restart TextMate, which is bloody
annoying.
Anyone else experiencing this more now as well?
Jeroen.
[1]: November 2005!
http://article.gmane.org/gmane.editors.textmate.general/6718
There may be an obvious answer to this question - if so, my apologies,
but I can't see it!
Is there any way to search (and replace) within only a subset of the
files within a project?
Best wishes,
Nicholas
When I hit Command+O, the directory I'm put in is the one for the
project, but I would prefer that the directory match the file that I'm
currently editing (which is often in a subdirectory of the project).
I guess that most of the time I open a file, I'm opening a sibling to
the file I'm currently editing. I have this behavior with UltraEdit on
Windows and find it quite productive.
-Chuck
hi all,
I am currently getting a textmate crash every time I right-click on a
word to bring up the CM, e.g. to spell check. Is anyone else seeing
this?
I have recently changed a number of things about my environment which
make it harder to pin down the factors that might be contributing,
which include:
- I have moved to a macbook pro
- then, I just installed the recent (intel) 10.4.10 update.
- I installed the Safari 3 Beta
I *think*, but am not positive, that the right-click did not cause a
TM crash on the 'out of the box' macbook pro.
As far as I can ascertain the problem is only with Textmate - other
cocoa apps work okay.
Here's a crash report: http://s3.amazonaws.com/amy/tm_crash_report.txt
-Amy
I have a question regarding utf-8 encoding and the interaction of
TextMate and TeXShop. I have been using utf-8 encoding now for a while.
Many of my files have been prepared in TeXShop, in utf8 encoding. Now
that I can open them in TextMate and use Latex Watch, with the variable
TM_LATEX_VIEWER TeXShop on---a terrific combination---, I get the
following TeXShop message which I'd like to avoid:
``This file was opened with MacOSRoman encoding.
The file could not be opened with Unicode (UTF-8) encoding because it
was not saved with that encoding. If you wish to open in another
encoding, close the window and open again.''
The pdf shows perfectly in TeXShop viewer, which I prefer for now. How
can I avoid the message I get from TeXShop?
Top of my file is:
\documentclass{article}
\usepackage{fancyhdr}
\usepackage[utf8x]{inputenc}
\usepackage{lmodern}
\usepackage[french,english]{babel}
\usepackage{textcomp}
--Gildas Hamel
Quote from Koch of TeXShop to Bastian Philipps at
http://ftp.tug.org/mail-archives/macostex-archives/2006-February/020357.html
> Here is how TeXShop works: Internally it uses unicode. When it comes
> time to write out the file, the internal representation is converted to
> a string
> using an encoding. (This is necessary even if the encoding is a Unicode
> encoding, because the Unicode standard doesn't specify a particular way
> of writing unicode to disk. So utf-8 is one possible unicode
encoding, but
> not the only one.)
>
> What happens if there is a unicode character in the text which is not
> available
> in the particular encoding chosen? Apple's routines contain a parameter
> which
> indicates whether this should create an error or if instead the
> character should
> just be ignored or converted to something else. I choose "ignore or
> convert to
> something else." So if you type, say, a Euro symbol, but the encoding
> doesn't
> support it, then TeXShop will still write out the file.
>
> There is somewhat similar code when you read text from disk. Apple's
> routines
> require that an encoding be specified, and then the file is converted
> into Apple's
> internal unicode form and displayed in the editor.
>
> But this time there is another problem. Suppose the encoding is utf-8
> unicode,
> and the file isn't legal urtf-8. Then when Apple's code reads the file,
> it suddenly
> says "wait, this doesn't make sense." In that case, it stops reading and
> reports
> an error to TeXShop. TeXShop then puts up the dialog you have reported
> and reads the file again in MacOSRoman. (Every file is a legal MacOSRoman
> file.)
Hi,
As it is my first time, I am not sure how to submit contributions to
the Actionscript bundle, attached is a diff for the
build_with_mtasc.rb file to add the allowFullScreen="true" parameter
to both object and embed in the html template used to test the swf in
textmate.
This is useful for people working on projects that needs the flash9
fullscreen support.
Please let me know if it is ok :)
[]s
--
Fabricio C Zuardi
http://ning.com
Hello all,
I use the Pascal bundle quite a bit, and - while the Pascal bundle is MUCH better about understanding what a (to use the C term) prototype is vs a definition, it still fails when looking at functions (pascal methods that return a value).
So: it doesn't know that "FUNCTION something: Boolean; forward;" is supposed to be a prototype. It does work, however, with procedures (pascal methods that don't return values): "PROCEDURE something; forward;" is known to be a prototype, and is rightly marked as such.
I'll also admit I'm partially to blame for this: in March (15th) when I suggested a regex on how to find a prototype, my examples were wrong: I had improperly labelled my PROCEDURES as FUNCTIONS.
After my .sig in this email is a test case for prototypes vs definitions in Pascal, with 10 kinds of prototypes and 5 different kinds of definitions.
FWIW, I also had to create a new preference item, to turn off ShowInSymbolList for meta.function.prototype.pascal, entity.name.function.prototype.pascal, to get even Procedures to be ignored. I'm not sure what's up with that...
Hopefully the unit test will help get this bug nailed down once and for all, and someone who's more familiar with the prototype regex than I (Chris Thomas??) can add this to it.
Thanks very much,
_Ryan Wilcox
--
Wilcox Development Solutions: <http://www.wilcoxd.com>
Toolsmiths for the Internet Age PGP: 0x2F4E9C31
{___________________________________________________________________}
INTERFACE
{You shouldn't see any of the 10 declarations, below this point, on the Symbol List}
FUNCTION 1.ExternalFunctionDefinitionPrototype(param: type): Boolean; external;
FUNCTION 2.FunctionNoParamPrototype: Boolean; attribute (name = 'FunctionNoParam');
FUNCTION 3.FunctionParameterPrototype(param: type): Boolean; attribute (name = 'FunctionParameterPrototype');
FUNCTION 4.FunctionForwardNoParamPrototype: Boolean; forward;
PROCEDURE 5.ProcExternalDefinitionPrototype(param: type); external;
PROCEDURE 6.ProcParamPrototype(param: type); attribute (name = 'ProcNoParamPrototype');
PROCEDURE 7.ProcNoParamPrototype; attribute (name = 'ProcNoParamPrototype');
PROCEDURE 8.ProcNoParamForwardPrototype; forward;
PROCEDURE 9.ProcParamForwardPrototype(param: type); forward;
procedure 10.bob(something: somethingElse); external;
IMPLEMENTATION
{You SHOULD see the 5 definitions, below this point, on the Symbol List}
FUNCTION 1.FunctionNoParamFunction: Boolean;
BEGIN
END;
FUNCTION 2.FunctionParameterFunction(param: type): Boolean;
BEGIN
END;
PROCEDURE 3.ProcNoParamProcedure(param: type);
BEGIN
END;
PROCEDURE 4.ProcParamProcedure(param: type);
BEGIN
END;
PROCEDURE 5.ProcNoParamProcedure;
BEGIN
END;
{___________________________________________________________________}
There's a new version of the Latex Watch package available here:
http://www.puffinry.demon.co.uk/LaTeX%20Watch%202.3.dmg
This release fixes various problems, and adds support for the Skim previewer.
PDFSync synchronisation works in both directions, when Skim is used.
Thanks to Jannis Hermanns for bug reports and testing.
Any problems, let me know.
Robin
Greetings. I saw a neat feature in another editor, and I was
wondering if there was similar functionality in TextMate. If there
is, I haven't found it yet and a pointer would be most appreciated.
When making a selection, I was wondering if there was some interface
point that easily displayed how many characters were selected.
My use case? Constructing HTTP Requests and wishing to supply the
accurate content length quickly and easily. I can imagine other use
cases as well, but this is the one that I can see needing most often.
Regards,
Robert M. Zigweid
Hey y'all,
Is there a way to get Textmate projects to show ".textmate_init"
files? ".htaccess" files are visible by default, presumably because
it makes sense that you'd want to see this for web projects. However,
this is equally true for ".texmate_init" files.
My options are to either set all my hidden files to visible, Mac-
wide, using something like Onyx (and cluttering up my desktop world),
or my current workaround of accessing and editing the
".textmate_init" file for a given project through the local pane of
my FTP program as a sort of bastardized finder window (as it will
show hidden files to me).
There's got to be another way -- Any way to get ".textmate_init"
files to show up in project windows is appreciated. And I'd like to
suggest this as something that the program should do by default;
after all, .textmate_init is one of its own proprietary file types. :)
TIA,
linda
On 23. Jun 2007, at 20:40, Steven W Riggins wrote:
> I just installed WP 2.2.1 with Daniel Jalkut's xml-rpc changes but
> now I can't fetch posts at all due to an iso timecode error.
Hi Steven - I just signed up the list so I could reply :)
First of all, the 2.2.1 release of WordPress includes several fixes to
XML-RPC that I encouraged, but Joseph did all the hard work. So
they're not "my changes," but I do have some perspective on them.
The time-zone one you're running into is actually the earliest issue
of the bunch that I raised, so it's not completely fresh in my memory.
But it was motivated by a change in 2.2 that would cause the time zone
to be completely omitted from the timestamps. While this is arguably
correct by "the letter of the law" for XML-RPC, it's not something
that WordPress had ever done before, so it threw off the times for
posts in at least WordPress, and probably other clients as well.
I think the way it worked before 2.2 was to put the actual time zone
of the blog into the timestamps. So if you had set your blog up as a
-4 hours time zone, it would return dates with "-0400" or something on
it. So with the change in 2.2 to represent dates in GMT format, I
suggested that at least it should indicate as much so that the date
would be unambiguous. I think I suggested using -0000, but since Z
worked for me and seemed more satisfactory to Joseph, I had no
objection.
Hope this helps clarify the rationale for the fixes. I'm not sure what
Joseph should do at this point, if anything. Unless somebody can say
with confidence that they feel -0000 will be more reliable across the
most clients than Z is.
Daniel
I feel a bit paranoid when pressing over the items in the project
files drawer because TM seems not be so clever with respect to the
contents of the files and sometimes it gets in an infinite loop.
I receive many students works with uncontrolled contents. The last
was a .txt file (output from a test) with 128Mb of anything. Of
course I did know that the file had 128Mb after TM hanged, I killed
it and saw the Finder info for the file.
Shouldn't TM have a better protection against this?
-- Juan Falgueras
I just installed WP 2.2.1 with Daniel Jalkut's xml-rpc changes but
now I can't fetch posts at all due to an iso timecode error.
Anyone else seeing this?
For some reason, I get the following when I try to svn commit through
TextMate:
svn: Commit failed (details follow):
svn: OPTIONS request failed on '/path/to/trunk/'
svn: OPTIONS of '/path/to/trunk/': authorization failed (
http://svn.server.net/)
Commits work, however, through the terminal.
Regardless, I trashed the cached authorization and (for the sake of
sanitation) checked out a brand new copy of the code (re-providing
authorization) with the terminal, but after making a cosmetic change to a
file with TextMate, a subsequent commit fails (while Terminal successfully
commits the file).
Am I missing something here? I've successfully used the svn bundle with a
different setup.
The short of it is that I would like to use Textmate to do some
transcription work. I have never been entirely happy with Transcriva,
which I paid for, and while the power and convenience of Scrivener
are appealing, I don't really want to buy yet another application for
this purpose. I own, use, and love TextMate, and I have been very
impressed with the things like the ScreenMate bundle.
Now, I know I could write an AppleScript -- okay, I've never been any
good with AS, but it's there -- I was just hoping that I could not
and thus be able to work entirely within TextMate. All I need is a
keystroke, or perhaps two, that would start and stop playback of an
MP3 file. (I assume I would have to do this through QuickTime, but if
there's a simpler command-line tool that could do this, that would be
fine with me.) The only wrinkle I would like to add would be to be
able to set an "auto-rewind" to the START or STOP command so that
when playback commenced again it would start X seconds backwards from
where it stopped. Setting this X in a config file of some kind would
be fine with me.
I'm a command creation newb, so any fingers pointed in the right
direction would be appreciated.
john
That is pretty awesome, thanks Stanley!
I am not quite happy with the tags.yaml approach though: I can't seem
to just add
~/Library/Application\ Support/TextMate/Bundles/TODO.tmbundle/
Support/tags.yaml
when the TOTO bundle lives in /Library/Application\ Support/TextMate/
Bundles/TODO.tmbundle. The version in the home directory is not
picked up. So I have to change it where the TODO bundle resides, and
that is bad because that directory is kept in sync via svn.
Also the tags.yaml file can't be edited with the bundle editor.
Any chance it could be moved to a Preferences file, so that it can be
edited with the bundle Editor and also can reside away from where the
Bundle lives?
Thanks much
Gerd
Hi folks,
Does anyone know where I can get the PSD file for the TextMate
wallpaper that was around back in Jan?
I tried the original site but the download link doesn't work anymore.
http://www.wishingline.com/notebook/archives/2007_01.php#001127
Have emailed owner but got no reply so far.
Just wanted to make a customized one for my workflow. If anyone still
has it and doesn't mind sharing it I would
really appreciate it.
Thanks,
Charlie.
Hello,
I am looking into building my own bundles and was wondering if it is
possible to somehow get the last 3 or so words before the caret. I
know there is a variable for the current line and current word, but
can I somehow get the last 3 or so words even if they are on different
lines?
Thanks!
Christoph
--
I'm trying a new usenet client for Mac, Nemo OS X.
You can download it at http://www.malcom-mac.com/nemo
Hi there.
I'm trying to create a set shell script templates under the 'New From
Templates...' menu command.
I've created a template entry in the Shell Script bundle, using the
default commands setup, with the extension set to .sh and the scope
set to source.shell (i've tried it with and without this, and
reloaded bundles between attempts.)
I've added a template file (script.sh) to the template, with just the
following contents:
#!/bin/bash
# ${TM_NEW_FILE_BASENAME}
# Created by ${TM_USERNAME} on ${TM_DATE}.
# Copyright (c) ${TM_YEAR} ${TM_ORGANIZATION_NAME}. All rights
reserved.
which is pretty much a default entry I guess.
The Shell Script option now appears as a submenu in the 'New From
Templates...' menu item, but when I select it, I get nothing :-(
Okay, this one has me beat - what am I doing wrong?
R
Hi folks,
I just tried the JavaScript Tools bundle today to use the lint
feature and when I try to check the example .js file that comes
with the jsl binary i get the following:
/Users/cogamble/Library/Application Support/TextMate/Pristine Copy/
Bundles/JavaScript Tools.tmbundle/Support/bin/lint.rb:29: undefined
method `+' for nil:NilClass (NoMethodError) from /Users/cogamble/
Library/Application Support/TextMate/Pristine Copy/Bundles/JavaScript
Tools.tmbundle/Support/bin/lint.rb:27:in `map' from /Users/cogamble/
Library/Application Support/TextMate/Pristine Copy/Bundles/JavaScript
Tools.tmbundle/Support/bin/lint.rb:27 from /Users/cogamble/Library/
Application Support/TextMate/Pristine Copy/Bundles/JavaScript
Tools.tmbundle/Support/bin/lint.rb:22:in `map' from /Users/cogamble/
Library/Application Support/TextMate/Pristine Copy/Bundles/JavaScript
Tools.tmbundle/Support/bin/lint.rb:22
Is this bundle still working or am I doing something wrong?
Thanks,
Charlie.
It would be interesting TextMate to be able to accept text-clippings
over its icon (Dock, Finder, alias etc) opening then a new windows
with the text contents of that clipping. Wouldn't it?
(My apologizes for any issue possible repetition)
-----
Juan
jfalgueras(a)uma.es
Hi All,
Just upgraded to the 3.0 beta for OS X of Safari, and it seems that the
"Edit in Textmate" no longer works :(
I was using it all the time so I noticed real soon when it stopped.
Cheers,
---Guy PGP Key on Request
Hi,
Is there any support for setting a background image in the editor
window? Or any plans to add this? I've found the transparency support
but I'm not that fussed about seeing my other windows, I'd rather
just see a tinted image.
Thanks
---
Jeremy Wilkins
Ibex Internet Ltd
Parkside Business Park
Parkside Rd.
Kendal
Cumbria
LA9 7EN
Tel: 0845 226 8342
Fax: 08718 729374
http://www.ibexinternet.co.uk/
Hi there...
Maybe I'm overlooking something but I can't seem to find it...
I'm in the 'Fonts & Colors' prefpane of TextMate and I want to delete
some BG-colors of some elements. Each time I click on an element's BG
I get a color-popup asking me to pick a color. What if I don't want a
color... It's still gives me a color-square under the BG-column. How
do I delete the BG?
Greetings
Ypmits
Hi-
I use textmate for the markup a lot of XML projects I work on, and
have adapted some of the wrapping features to meet my needs.
One snippet I use frequently is "perl -pe 's/.+/<\${1:listitem}><\
${2:flashtext}>$&<\/\$2><\/\$1>/'" which takes a columnar list and
wraps each line in <listitem><flashtext></flashtext></listitem>. I
would like to find an easy way to then wrap the entire list in a
<flashlist> tag.
I know I can just reselect the whole list and wrap it with a copy of
the HTML bundle's "Wrap Selection..." tag, but I'd like to make my
list in one fell swoop.
So, what's a good way to combine the "Wrap Selection..." with a "Wrap
Each Selected Line..."?
Thanks!
James Fishwick
Associate Media Producer
Houghton Mifflin
College Media Development
email: james_fishwick(a)hmco.com
phone: 434.284.3727
im: iamfishwick
Dear List,
I know I am probably doing something silly, but I can't seem to solve
this seemingly trivial problem.
I've installed the restructured text bundle, and the restructured text
tools themselves. the reST tools work fine from the command line. My
environment.plist looks like:
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DISPLAY</key>
<string>:0.0</string>
<key>PATH</key>
<string>/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/teTeX/bin/i386-apple-darwin-current:/Users/nicholas/bin</string>
</dict>
</plist>
On running the rst2html command from the bundle, I get the error message:
Couldn't find rst2html.py
You can either set the TM_RST2HTML variable to the full path of your
docutils (docutils.sourceforge.net) installation (e.g.
/Library/Frameworks/Python.framework/Versions/2.4/bin or set the PATH
variable to include the path of the docutils converters.
Locations searched:
/Applications/TextMate.app/Contents/SharedSupport/Support/bin/CocoaDialog.app/Contents/MacOS
/sw/bin
/sw/sbin
/bin
/sbin
/usr/bin
/usr/sbin
/usr/texbin
/usr/local/bin
/usr/X11R6/bin
/Applications/TextMate.app/Contents/SharedSupport/Support/bin
If I create a variable TM_RST2HTML and set it to:
/Library/Frameworks/Python.framework/Versions/Current/bin/
I get an error saying that that path cannot be found (even though I
*know* it exists.
(the relevant utilities exist both there and in my ~/bin)
Can anyone explain what is wrong?
Best wishes,
Nicholas
Who else uses Textmate for Scheme? I know, most of the LISP community
use Emacs alone for religious reasons, but since there was a Scheme
language definition already there, I can't be the only one :-)
Anyway, for my own use I've been adding to the Scheme language a bit;
telling it about define-syntax, then adding properties so that
(define (foo ...) ...), (define foo ...) and (define-syntax foo ...)
all result in 'foo' appearing in the symbol list, and writing a few
snippets for common things.
I'd like to look into figuring out a good way to do help on current
symbol type stuff, but I'm not sure where best to refer to. Since the
current language starts 'csi' as the interpreter, the Chicken
documentation on callcc.org would be a good bet, but it would be nice
to keep the Scheme language as implementation-indepedent as possible.
Or have a base Scheme language then a special module for Chicken
Scheme that binds run script, help on symbol, etc.
If there's any other TextMate schemers about, I can post the
resulting diffs, and if everyone likes them, send 'em in to go in the
repository?
ABS
--
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/?author=4
Okay, I must be going nuts. I could *swear* that when editing source,
when I backspaced to remove a tab the entire tabstop got removed. All
eight character-widths, or whatever my tab size is set to. This happened
even if I had soft tabs enabled; backspacing would chew up spaces back to
the previous tabstop.
But that's not happening now. Now, when I backspace over a tab, the
cursor moves one character and the tab is replaced by (tab size - 1)
spaces.
I could also *swear* that up until recently the cursor keys would jump an
entire tabstop at a time (if moving over a tab), and that you couldn't
cursor into the "dead" space after the end of the line. But now, the
cursor keys always move exactly one character width, whether in a tab or
past the EOL.
So, did something suddenly change? I'm using the bleeding edge updates,
and regularly updating the bundles by svn, so I can see a change slipping
past me. Or maybe I toggled some unknown preference value by mistake?
Or is this the way it's always been and I'm just crazy?
--
Steve King, <steve(a)narbat.com>
Hello,
I started a new bundle for editing COBOL (indeed... ;-)
http://pieterb.be/coding/cobol/
Right at the moment I've only some syntax highlighting, but I' did
like to know how
I can implement auto-numbering.
I am only a beginner with these bundles.
Each new line should start with a number of 6 digits, if possible
with +10 for each new line.
(calculated with the number in 1-6 off the previous line)
000100
000110
...
Each line ends after 80 columns (or characters)
Is it possible to always(!) wrap after 80 chars?
Another issue: commenting; cobol uses a star in column 7 to show a
line is comment.
For example:
000220*A helloworld example....
000230
Is this possible.
Any help is greatly appreciated...
Pieter Baele
pieter.baele(a)telenet.be
A solid systems's approach should not be based on "but it works".
Yet, time and time again, we see that for most people this is the
case. They don't care about good software, only about "good enough"
software. So the programmers can continue to make such mistakes.
Hello,
There are some problems with the blogging bundle with Wordpress 2.2. Pings
and Comments are always set to off.
I know it has been mentioned before and it seems to be a bug in WP. I
didn't see a bug report on the WP trac and am not really too familiar with
the API, so could you clarify what's causing this and whether it really is
a WP bug so I can submit a bug report to the WP guys?
Thanks!
Christoph
Hi, I've been using TextMate for almost a year now and I think it's great,
except for one feature which I find annoying - when you select a block of
text and hit a pair key (Eg. ', ", [, < etc) instead of overwriting the
selected text it nestles it in between two of the key you pressed.
I thought that I'd probably get used to it in a few weeks but I guess I
haven't and I still find it really annoying when I forget to hit backspace
first. So I was just wondering if anyone knew of a way to disable the
feature?
Many thanks!
Mark
--
View this message in context: http://www.nabble.com/Disabling-the-%27pairs-around-selected-text%27-featur…
Sent from the textmate users mailing list archive at Nabble.com.
Is there any fast way to generate doxygen style comments for c++ functions
based on what parameters the function is passed and what it returns? I have
some existing code without any comments, and I was looking for a quick way
to put in template comment blocks that I can go through and fill in details
quickly.
thanks for the help,
dave
Okay, I give. I can't for the life of me figure out how to get
TextMate to print using something like a 9pt type. I've tried growing
and shrinking my screen type face, but that doesn't seem to have any
affect. Adjusting the default type size in Preferences has some
effect, but not all that much that I can tell. What am I missing?
john
Sorry for my bad english
Hello :)
I'm a big fan of TextMate for LateX. I can't work without this very
fine tool
My site (www.altermundus.fr) is a classic one with html and css.
I present a lot of pictures and LaTeX codes but I would like now to
use a database
for my png pictures and all my files or (pages ?)
I'm a neewbie with Python and Ruby so i don'tknow what is the best
tool to make this
with texmate.
A lot of scripts in Textmate are ruby scripts so perhaps it's more
interesting
to learn Ruby but what is the tool the more esay to use with TexMate :
(Ruby and Rails) or (Python and Django) ?
I don't need a blog only a static web but with a database for the
pages and
aa simple method to create new one.
The Bundle is very important so what is the best bundle for my problem ?
Thanks
Alain Matthes
On Jun 15, 2007, at 12:10 AM, Allan Odgaard wrote:
> I am forwarding you this, as I don’t think you’re subscribed.
Thanks. Correct, I'm not subscribed, although I've been reading this
thread via the archives. I can't realistically keep up with all of
the lists where WordPress XML-RPC issues might come up, so if you
don't mind making me aware of them I'm happy to work on them as they
arise.
> Begin forwarded message:
>
>> From: "Christoph Koehler" <christoph.koehler(a)gmail.com>
>> Date: 15. Jun 2007 05:14:40 GMT+02:00
>> To: textmate(a)lists.macromates.com
>> Subject: [TxMt] Re: Wordpress 2.2 and Pings/Comments
>> Reply-To: TextMate users <textmate(a)lists.macromates.com>
>>
>>> I've deployed the patch for this to all wordpress.com blogs.
>>> There is also a ticket for wordpress.org:
>>>
>>> http://trac.wordpress.org/ticket/4469
>>>
>>> I'll follow up and make sure the committers there are aware of it.
>>>
>>> Thanks for point this out and doesn't hesitate to contact me
>>> about any other questions/issues/bugs that come up in XML-RPC for
>>> WordPress.
>>>
>>
>> Thanks for the quick action! That's really amazing! I tested the
>> patch on my local install and comments work fine now, but pings
>> are still always disabled.
I tested it against my local install as well and both ping and
comments settings worked as expected. I did this with a PHP script
though, not TextMate. Christoph can you (or someone else) confirm
exactly what TextMate is sending over the wire? A dump of the exact
XML data that is being sent might provide some clues as to why ping
status isn't being properly set.
--
Joseph Scott
http://joseph.randomnetworks.com/
Hi there,
I 've just found a post like this:
>> I didn't know where else to ask this question. If I purchase a
>> single licenses for TextMate can I use it on a
>> Desktop and a Laptop? (As long as I'm not using them at the same
>> time?) I ask this question because I believe
>> it was true with the Office 2004 Student and Teacher Edition license.
Allan answered:
> Yes -- it's a personal license, so as long as you are the user or
> TextMate is running on your machine, everything is fine (needs to put
> that somewhere on the site :) ).
but I need to know if I can use textmate on my laptop at work? I got
a personal MacBook at home and a company's MacBook Pro at work and
both would running textmate nut not at the same time and only used by
me.
I know... 39 EUR are not expensive for this mighty mighty editor but
If I can save money... :-)
Greetings,
Daniel
PS: Good work, Allan :-)
Hi,
I've stumbled on a problem with TextMate's python handling which goes
into an infinite loop (or a really long computation) during certain
circumstances. When this happens, TextMate doesn't react to any input
anymore, which causes dataloss of everything typed after the last save.
I have the following function (<> only shows the position of the
caret and is no text) in a python file:
def c(docstring, baseindent=0):
#from http://www.python.org/dev/peps/pep-0257/
lines = docstring.splitlines()
# Determine minimum indentation (first line doesn't count):
indent = sys.maxint
for line in lines[1:]:
stripped = line.lstrip()
if stripped:
indent = min(indent, len(line) - len(stripped))
# Remove indentation (first line is special):
trimmed = [<>lines[0].strip()]
if indent < sys.maxint:
indent -= baseindent
for line in lines[1:]:
trimmed.append(line[indent:].rstrip())
# Return a single string:
return '\n'.join(trimmed)
Now I type ]<enter> and watch TextMate die. It'd be cool if this
could be fixed.
To reproduce the problem:
1. Open TextMate
2. Paste the above function into TextMate, put your caret where <> is
(and remove <> from the text)
3. Go into python mode (shift-ctrl-opt-p 4)
4. enter ]<cr>
Bye,
Nico
Having a hard time to get ruby scripts to recognize modules. Checked "$:"
and got the following:
/usr/lib/ruby/site_ruby/1.8
/usr/lib/ruby/site_ruby/1.8/powerpc-darwin8.0
/usr/lib/ruby/site_ruby/1.8/universal-darwin8.0
/usr/lib/ruby/site_ruby
/usr/lib/ruby/1.8
/usr/lib/ruby/1.8/powerpc-darwin8.0
/usr/lib/ruby/1.8/universal-darwin8.0
The module I am trying to "require" is in this list (the first listing in
fact). When I try to to run script from TextMate "command + R" the script
keeps failing. When I ask text mate to get required "shift + command + D"
TextMate complains that it can not find require "snmp". When I run script
from the terminal though it finds the 'require' I requested. Any ideas?
Brad
Hi,
TextMate has been crashing on me in the find dialog and I found this solution:
http://comox.textdrive.com/pipermail/textmate/2006-August/012696.html
So, I disabled history for the find dialog and now the text inputs are
small text fields instead of text boxes. Any ideas?
Thanks!
-Roberto.
Hi,
sorry if this is off-topic, but i I think someone may know the answer...
i am using macfuse/sshfs to access my server. until the latest update i I
was able to invoke svn from within tm with a project on this mount. now, i I
have to do svn commands via a ssh session because of permissions on the .svn
dir
Any ideas?
dc
-----
David Clark
Database Developer
Institute for Community Inclusion (http://www.communityinclusion.org/)
david.clark(a)umb.edu
(617) 287-4318
I'm trying out TextMate after a year of using RadRails/Aptana for RoR development. I'm trying to use "validate syntax" in Ruby bundle but no matter what Ruby code I have, it seems to always pop up a tool tip saying the syntax is valid.
Also, it seems to be using /usr/bin/ruby instead of /usr/local/bin/ruby, even though /usr/local/bin is first in my path, so it's finding 1.8.2 instead of 1.8.6.
I haven't had much luck in finding information on this feature, so I hope this is a good place to ask.
Thanks!
Hi all,
My C/C++ code doesn't always get parsed correctly, and I think I've
narrowed the problem down: the bundle doesn't seem to like it when my
parentheses are on separate lines. An example:
---------------------------
int a (int *p);
int
main (
void
)
{
int *p = 0; /* null pointer */
return a (p);
}
int
a (
int *p
)
{
int y = *p;
return y;
}
---------------------------
Is this intended? If not, how can I fix it?
Thanks!
John
1. It would be nice if the Regular Expression and Ignore Case
checkboxes were synchronized between Find and Find in Project (the
find and replace text are, so it seems these checkboxes should be as
well).
2. I was somewhat surprised to discover that regular expressions can
match across multiple lines. Or rather, I was surprised that TextMate
feeds the regex engine the entire buffer instead of a line at a time.
This is powerful, but it would also be nice to have a checkbox to
force TextMate to feed the regex line at a time.
j.
Hi all,
The subject has probably been discussed a number of times, but a
little googling didn't bring me a satisfying answer.
Is it possible to add smart folders capabilities to the project
drawer, like XCode does?
Sorry for my unability to find answers by myself! ;-)
Xavier Cambar
Just getting into TextMate (love it). I am trying to customize my own theme
(don't know a lot about RegEx yet). In the Ruby Bundle the language
settings have the following.
{ name = 'constant.other.symbol.ruby';
comment = 'symbols';
match =
'(?<!:)(:)(?>[a-zA-Z_]\w*(?>[?!]|=(?![>=]))?|===?|>[>=]?|<[<=]?|<=>|[%&`/\|]|\*\*?|=?~|[-+]@?|\[\]=?|@@?[a-zA-Z_]\w*)';
captures = { 1 = { name = 'punctuation.definition.constant.ruby';
}; };
},
So to me this appears customizing the syntax of symbols and math operators.
But when I Create a new Syntax element and set the scope to "
constant.other.symbol.ruby" the symbols and math operators don't change to
what I want. They stay like the default syntax "ruby.source" and i don't
know why because the symbol information has a more detailed scope.
Also does anyone have a language element that I can add to my language
definitions to allow me to chose syntax highlighting for function calls. Not
function definition, but actual functions being called upon such as:
old_inventory = inventory_from(ARGV[0])
With "inventory_from" being the thing I want to highlight?
Is there a way of permanently excluding build directories from a project? I have
a Python project that I develop using TextMate, from which I have to repeatedly
delete references to the build directory. After deleting references, of course,
the very next time I build the project, TextMate sees new files and adds them
back into the project.
Any help here most appreciated.
I'm just starting to try out TextMate, but a bunch of my commands are
failing for what looks like pathing issues.
A simple illustration of the problem is trying to do the 'Execute
Line Inserting Result' command on say, 'ls' for example. I get:
ls
/bin/bash: line 1: ls: command not found
Trying to do something like 'Filter Through Command...' yields man
many lines of '/bin/bash: line 1: dirname: command not found'
It looks like a path issue. I'm using .MacOSX/environment.plist to
set my environment path, but /bin, /usr/bin, et all are in there. So
I don't see why that would be an issue. The only other funky thing
I'm doing is parsing my environment.plist in .profile so I don't have
two sources of path information. Again, not sure why that would be
an issue, but it's at least related.
This is all on TextMate (trial) Version 1.5.5 (1368)
Any ideas?
Thanks in advance!
-Mat
For a project I'm working one I'm trying to figure out a way to tab
indent new lines of code between certain tags (mainly <head> and
<body>). Unfortunately I'm not as good at regular expressions as I
thought I was and can't figure it out.
Anyone out there able to lend a hand?
Thanks,
Mike Stickel
http://screenflicker.com/mike/ | http://gonecksgo.com
What are *exactly* the folding rules? I understand
folding keeps into account both the rules given in
the language definition and the text indentation,
but which one takes precedence? above all, is there a
way to completely overrule the indentation thing
and let folding use only the rules declared in
the language?
Thanks,
Piero
Just wondering how I can go about assigning a key combo for opening
project files in their own windows? (I like to keep the files I'm
actively editing in separate windows so I can easily compare back to
what I already have.) The help says to go through System
Preferences, but it wants the exact name of the menu item, which is
variable in this case (Open "foo" in New Window). Also, it seems you
can only open one file at a time this way, which is a bit of a drag.
-Ted
I'm new to htis and saw some previous postings on xcode. I don't know exactly
what xcode is or even why I need it at all. All I want to do is execute Ruby
code using the <command>R command, but I keep getting and xcodebuild error
saying there is no xcode project in my directory. xcodebuild shows up in my
terminal shell. I know I installed Xcode. How do I configure Textmate so that
shelling out to Ruby will execute correctly with Xcode?
I was just about to buy textmate (I've got the book, so I certainly intend
to buy it) when I read this
page<http://www.wired.com/software/coolapps/news/2007/06/core_anim>and
saw this sentence:
Allan Odgaard, the developer of TextMate,
says<http://macromates.com/blog/2006/20-will-require-leopard/>the next
version of the text editor will only work on Leopard.
So I'm wondering if I buy textmate now, what the upgrade policy/price will
likely be? Any experience with their upgrades?
Thanks,
ge
--
Besta é tu se você não viver nesse mundo
The following pieces of code are indented incorrectly by "Indent
Selection" - ⌥⌘[ . Any fixes?
Prb 1:
/*
This comment causes the problem in the indentation of the function
statement below. I guess since it does not end with a semi-colon the
following line gets indented.
*/
void abc()
{
if (xyz)
{
}
}
Prb 2:
void abc()
{ /* If this comment is removed, indentation is okay.*/
if (xyz)
{
}
}
Hello all,
One thing I found useful in BBEdit was the ability to show the
pinstripe column markers -- I find this invaluable as a guide when
coding in python, where indentation is critical. Might this be a
feature that you all would find useful?
JP
Hi,
I wanted to suggest adding a confirmation dialog for subversion
revert. My problem is that a lot of times I want to update my project,
but I miss the target and press revert instead. I'm not sure if a
single Cmd-Z undo's all of that, but it's a bit annoying anyway.
Thanks In Advance
José Manuel Sánchez
Hi,
I'm currently woking on a small spreadsheet in TM, and some of my
column alignment is broken. I think it's due to accented letter. My
text encoding is UTF-8.
I don't know if I'm doing something wrong or if it's a bug. But in
both case, the mailing list is probably a good way to get more
information.
As usual, thanks for your help.
Édouard
Hi everyone,
Just wondering if there is a way to modify the hyperlink helper bundle
when working in markdown (ok, I'm pretty sure there is a way, I just
don't have the sweet skills to accomplish this on my own).
Currently, when i paste a link using ctrl-shift-L I get:
[text](http://linkaddress.yay)
I would prefer to get
[text][1]
and then have the link entered at the bottom of the document.
[1]: http://linkaddress.yay
Any thoughts on how this could be pulled off?
thank you.
--
Jeff Newman
I'm trying to use hex codes in a regular expression from the find
dialog:
[^\x00-\x80]
This doesn't work to find non-ASCII characters
Nor does this:
\x20
to find spaces
Am I doing something wrong?
Thanks
Jeremy
Hi
I'm looking for a way to easily encrypt and decrypt a text file. It
should do the following:
- On open, ask for the passphrase and decrypt the document
- Display the document plain text, allow edits
- On save, automatically encrypt the document, but leave the
unencrypted doc open.
I'd use this to store passwords.
Any ideas?
Thanks a lot!
André
Textmate is great to work with, if you are using it on your mac. The moment
you have a file on a remote server though, things get tough, at least with
MacFuse using SSH.
Here are the most prominent problems:
- It is impossible to import a directory. You have to import the files
individually into the project. I don't know why this is the case, but sadly
it seems nothing can be done about it.
- Saving a file takes ages and locks up textmate. I have no problem if
saving the file takes time, after all it is going across a network. What I
don't understand though is why textmate has to lock itself up while it is
saving a file.
But maybe I am going the wrong way about it altogether for working with
remote files?
--
View this message in context: http://www.nabble.com/Textmate-for-remote-files-tf3822831.html#a10822703
Sent from the textmate users mailing list archive at Nabble.com.
Hi all,
for easier navigating with throught tex file and pdf with pdfsync, I
want to write one sentence per line in my tex document.
I wrote the a snippet inserting '.\n' with the key equivalent . (<dot>).
As I want it to apply to and only to the scope "text.tex.latex", I
had to set the scope selector to:
text.tex.latex - string - source - meta - entity - support - comment
to avoid to insert a line in lists, comments, etc...
Although it works well, I'm pretty sure there is a simpler scope
selector for this task.
If not, here is a feature request for TM2: Alow more complex scope
selection, with wildcards/jokers/regexps, or anything else...
please ;-)
Xavier CAMBAR
Hi All,
I am creating snippets and I was wondering if there is a way to force tabs
to follow similar lines...
Sample
Snippet 1
mytext -> -> -> Text
Snippet 2
(listens to line above and uses the tabs necessary to align Text in next
line
mytexttwo -> -> Text
So it would look like this:
mytext -> -> -> Text
mytexttwo -> -> Text
I can create two different snippets that use 1 or 2 or 3 tabs as neccesary
but since i will never know what mytext will be I need to create the tabs in
some kind of dynamic way.
Any ideas?
I must be missing something really obvious here but I don't know how
to do this most basic thing:
(1) Drag a folder onto TM icon to open as project
(2) Open an HTML file called index.html
-- Now here's the part that throws me ---
(3) Make a new file called index2.html based on the original index.html
My first instinct is to right click on the file in the project drawer
and look for "duplicate file" or something similar - no such option
exists. So the next thing I try is opening the file and using "Save
as" to make the new file. This actually works but something weird
happens: In the drawer, it has the effect of *renaming* my original
file rather than adding a new one. If I switch to another
application and then back to TM, the original file reappears. Is
this expected behavior?
So what's the preferred method of creating a new file starting with a
copy of an existing one?
Thanks!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Hi guys and gals,
I was wondering if anyone has a recommendation for a good command line
ftp client - ideally I want something that I can use much like rsync
but that works over ftp. ie. I want to upload entire directory
trees. (and I don't think I can do this with the default ftp client,
but I'd love to be shown wrong)
Thanks.,
Hadley
Hi all,
I'm attempting to write a command which uses the scope for input as in the
"Scope based customization" screencast, but I'm running into a strange
issue. Even though the scope does appear to be correctly managing when my
command is allowed to run the input to my command is always the whole
document (unless I have a selection in the correct scope, in which case I
get the correct selection).
I'm running the 30 day trial of Textmate: Version 1.5.5 (1368)
Any advice about what I'm doing wrong would be greatly appreciated!
Thanks!
:habib
Hello,
I am writing a bundle for Spice-like circuit simulator input files.
For these text files, one of the rules is to have the first line as a
comment, no matter what is on the line. I was wondering how this
could be incorporated into the language grammar to set the
appropriate scope for the first line.
Pavan
Hi everyone,
<not very interesting context>
I'm currently working with a software called OpenMusic. It's based on
an extension of Lisp and make massive use of CLOS.
I thus often have to define new classes. I don't know if it's CLOS or
OpenMusic related, but class slots definition are quite ineffective.
Typically, defining a class in OM would look like
(defclass* name (superclasses)
((<slot name> :accessor <slot name> :initarg :<slot name> :initform
<default value> :type <type of the slot>
:documentation "<obscure string>"))
)
The boring part, that is slot definition, could of course benefit a
lot of snippets. Typically, a <enter> short cut (or is it <return> ?
Well, the keypad one.), as in LaTeX itemize environment, would be
perfect.
So I'd like to define and extension of the Lisp language to match my
need. I already had a slight problem and expect more to come (like
when I started to write one for the GP language).
So here is the first one that I met. As you can see above, class are
usually defined by defclass* instead of defclass.
I didn't find in the documentation how to match the * character.
Escaping the * with \, as in
{ name = 'meta.class.lisp.openmusic';
match = '(\b(defclass|defclass\*)\b)(\s+)((\w|\-|\!|\?)*)';
captures = {
2 = { name = 'storage.type.class.lisp.openmusic'; };
4 = { name = 'entity.name.class.lisp.openmusic'; };
# Of course, there are still plenty of things missing.
};
apparently won't work. What did I wrote wrong in that part ? It's
just the meta.function.lisp rewritten and it does what expected when
used with "defclass".
Thanks for your help,
Édouard
PS : I know I could perfectly avoid such troubles by creating a tab
triggered snippet, but that's just a nice occasion to get in TM
languages definition a bit further.
I've mapped my Caps Lock key to act as the Ctrl key (in Keyboard &
Mouse preferences > Modifier Keys...). Problem is, not all TextMate
combos work with this.
[Hear me now, believe me later. I had an old Sun keyboard that was
laid out this way, and it's the only way to fly. Especially on the
MacBook Pro where the normal Ctrl key is quite inconvenient to hit.]
For example: Paste From History Ctrl-Option-Command-V. Works fine
with normal Ctrl key, but does not work with Caps Lock used as Ctrl.
Another example: Select Bundle Item... Ctrl-Command-T works fine
both ways, however.
Perhaps there's something deep in TextMate's key processing code
that's only looking directly at the Ctrl key, and not seeing the
system-remapped Caps Lock key?
Thanks for your attention!
Jon
I find my self wrapping html code very frequently.
It is a pain but I do not know how to work with regex,
Basically I need to use echo "" to wrap the html code and escape all of the
other " in it.
can someone help me?
Please.
-Thansk
-L
--
View this message in context: http://www.nabble.com/PHP-echo-wrap-tf3847294.html#a10896573
Sent from the textmate users mailing list archive at Nabble.com.
Hello!
I have a got a small problem: I want Textmate to compile my LaTeX
document via dvi - ps - pdf and _not_ with pdflatex. I can't find any
easy way to configure it like that I don't want to use the terminal
every time.
Do you know any way to configure this?
Yours,
Mark
One of the options when creating a command is to use a tab trigger but what
is the logic behind when selecting text and then allowing a tab trigger to
be fired?
Does anyone else have (a fix to) the following problem with the Haskell
bundle:
When making do statements, unless I do the brackets+semicolons thing to tell
ghc to ignore formatting, I get a
"The last statement in a 'do' construct must be an expression"
even though I have everything lined up correctly.
Thanks
I meant to mention this a while back. I stuck a utility in the
MoinMoin bundle for grabbing a browser cookie. The usage is simple:
cookie <url> <cookie_name>
It tries to find the named cookie which is the best match for the
url. It first tries to grab the cookie from the WebKit cookie file,
then Camino's, then Mozilla's. The cookie is emitted to stdout.
Might this be useful in the Support folder for other bundles to make
use of? (I was actually surprised to not find something similar
already there.)
j.
Hi all!
I have a problem with invisible characters here. E.g. writing perl
code, I use || quite often. I produce this character on my Swiss
German keyboard using Option-7. Normally, I put a space after || to
increase readability. There it happens that I keep the option key
pressed while pressing the space key - and this apparently produces
some invisible character. In any case, perl complains:
Unrecognized character \xC2 at /Users/abonhote/test2.pl line 5.
I have turned on "show invisibles", but the extra character doesn't
show up. How can I avoid typing these characters?
Thanks in advance!
André
helo i would like to use
----------
PHP Project Functions - "Dion Almaer"
Goes through the project directory and groks out all functions. If you
select some text it will narrow it to that.
Before running command: Nothing
Command(s): grep -E -n -r --include=\*.php --exclude=.svn "function
${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}\w+\s*\("
${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}
Standard input: None
Standard output: Show in separate window
Pattern: ^(.+):(\d+):(.*)$
Format String: $1, line $2: $3
File Register: 1
Line: 2
------------
finded there :
<http://macromates.com/wiki/Main/SearchWiki?pagename=Main%2FSearchWiki&q=php…>
but it didn't work
can you help me ?
> I too am a huge (unfortunate) fan of working on remote files...
> This topic has been discussed at great length. Since it is
> apparent none
> of the existing solutions work nicely and as elegantly as working
> on local
> code we all have come up with less than ideal solutions for solving
> this
> problem. I for example use RBrowser because I like that - but
> again it is
> less than perfect. So.. We need a better solution. Writing down the
> short list of requirements
> - Tie to Textmate - very closely
> - Allow me to easily create a project out of remote files
> - Allow me to add remote files
> - Allow me to search those remote files
> - Save the file back
> - Connect via ssh
> - Should be able to routinely (background) poll the remote
> system
> and determine the status of the file. This should be able to be
> turned
> off or time adjusted based on user needs. I wouldn't need this per
> se.
> - Should have an integrated browser mechanism which 1) gets
> on a
> remote system (ssh) 2) allows you to traverse a remote file system
> - Might want to be able to bind a command to a save ( svn
> commit )
> feature
> - Might want to be able to bind a command to the file
> status ( p4
> fstat ) feature
>
> OK what do we need to add shorten or comment on?? Perhaps the
> cyberduck /
> rbrowser / macfuse / Olrik folks are listening. I think David
> Olrik's
> solution is a decent start but needs a bit more polishing. A better
> solution can't be far off..
>
>
> Thoughts??
At this point (unless TextMate 2.0 addresses the issue ;) I think
MacFuse pretty much solves everything, so the single one change that
I would like to see in textmate is a mechanism to stop and/or set
intervals on the project directory scanning routine. I have no idea
what that would entail or if it's even feasible, so forgive me Allan
if what I'm saying is ludicrous... ;) That single change would make
MacFuse usable on projects that have more than 5 files... and solve
everything... no?
Me, again.
OK, so the GHCi fix was due to Alan's patch of the haskell bundle, not to my
trashing my local bundle repository.
I've been playing with the 3rd party bundle Plain Text Wiki, but it doesn't
seem to play nice with the fact that I modify some of the standard bundles
(LaTeX templates and commands primarily). I've installed it in the standard
place now, but then it will get wiped out upon update, right?
So, I tried the Experimental Wiki bundle: easy to do, perform the one
command available. Apparently it should open a wiki based in a subdirectory
of the bundle. I get the following error message, looks like a typo in the
file linkify.rb
(Errno::EPIPE)
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Experimental
Wiki.tmbundle/Support/bin/linkify.rb:39:in `<<'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Experimental
Wiki.tmbundle/Support/bin/linkify.rb:39
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Experimental
Wiki.tmbundle/Support/bin/linkify.rb:38:in `open'
from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Experimental
Wiki.tmbundle/Support/bin/linkify.rb:38
sh: line 1: /Users/ds08/Library/Application
Support/TextMate/Support/bin/Markdown.pl: No such file or directory
/tmp/tm_wiki/intro.html
I went into linkify.rb and noticed that the path is based on a HOME
directory, so I altered that path name to be based on TM_SUPPORT_PATH. Now
it works. And its cool (a bit clunky but useful).
It would be good to have the patch committed to the repository.
Best wishes
David
OK I know this is a lame feature that probably only I would use, but
here are my thoughts & maybe someone has a suggestion or maybe it
could make its way into TextMate 9.1 or something...
I know there are keyboard shortcuts to focus on the drawer and to
show the drawer, but I'd love a shortcut to toggle the size of the
drawer. By that I mean:
Initial State: Project window with drawer of n px width. (TM
"remembers" and saves this value)
Closed State: Drawer is hidden, but project window resizes its width
to fill the space that was once occupied by the drawer.
Expanded state: project drawer increases its width until all items in
the drawer are displayed without any ellipsis (...) characters. The
window resizes (reduces) its width to make room for the drawer.
In all of the modes the sum of window width + drawer width would
remain equal. The reason I bring it up is that I almost always work
with TM zoomed to fill the screen. Toggling the drawer on/off does
not resize the window so it doesn't improve the size of the project
window. Also, if I have several nested folders, it becomes difficult
to read file names when the drawer is kept narrow. I'm constantly
dragging folders from the drawer to the dock icon to open temporary
sub-projects or revealing files in the finder just to view the files
full names.
I don't expect that this is something that enough people need to
warrant major development time, but I thought I'd just voice my
opinion. Maybe TM 2.0 will open up something that a plugin can use
to handle this functionality?
If anyone sees some obvious currently available solution I'm
overlooking please let me know.
- Cliff
Hey all,
I'm currently working on the beginnings of of RubyCocoa Bundle, and
trying to do something similar to the "Build and Run" script from the
XCode Bundle:
#!/bin/sh
echo "<html><body>"
cd $TM_PROJECT_DIRECTORY && rake
MyApp.app/Contents/MacOS/MyApp
echo "</body></html>"
I've gotten to the point where I can run MyApp.app/Contents/MacOS/
MyApp and get the output, but only after the program has terminated.
I know there's some way to get my traces to output while I'm running
the program, but not sure how. Any pointers? Thanks,
Ben
I'd like to do a series of things automatically
each time I save a modified file. E.g. change
the name of the file adding a timestamp to it,
etc. What is the simplest way? Probably to
create a command which does all the stuff, and
assign the shortcut CMD-S to it. I do not
like this idea, emacs' hook mechanism sounds
the right way to achieve this, but I could live with it.
Anyway: how can I say TextMate to save the
open (modified) file? I mean, from inside my
command?
Thanks,
Piero
Hi,
When writing an article, it happens that some symbols appear very
very often, so instead of type-writing them all every time, I'm used
to create snippets or commands o make things faster and easier.
But such snippets are not to be kept in a safe place for a later
usage. So I was wondering if there wasn't a way to create project
snippets, not stored in a particular bundle, but (e.g.) in the
project file, so every time a projec is open, the custom commands are
available.
It would be like the Scope Selector, but concerning projects, sort of.
Xavier Cambar
PS: On the T-shirts debate, what about "Happy Mating"?
Is there a way to make it so that the sidebar for a project stays the
same size between invocations of TM?
Daniel Morrigan
"He who says it cannot be done is usually interrupting the one doing
it." - Chinese Proverb
Hi,
I'm using TextMate for Ruby and Rails development. There is a feature/
behaviour that worked correctly, back in early days, but it doesn't
work now, since long. Here it goes:
I have a changelog.txt file in my Rails project, that describes
changes made in svn-commits. This file should be viewed as "Release
Notes" file-type (then it's properly colored etc.). But it is in
conflict with the Subversion-bundle (or Diff-bundle?), because
temporaty diff-files generated by TextMate (when using Subversion-
bundle) have now a .txt extension too, not .diff, as it used to have.
Now, when I'm manually switching the language from the popup-menu
(the one located at the bottom of the diff window) then next time I'm
viewing a changelog.txt, it's treated as "Plain Text", not as
"Release Notes" type of document. When I'm manually switching it to
the "Release Notes" then next time a diff is generated, it's
displayed as "Plain Text", not as "Diff".
I tried to look into the bundles, but I cannot find anything helpful.
Maybe the diffs should have a .diff file--extension? Maybe I have
something messed-up in my bundle-config?
Described behaviour is consistent on 2 machines (both PowerPC and
Intel).
Any ideas? TIA.
--
Rafał Komorowski
komor(a)mac.com
GG: 4083718
<http://homepage.mac.com/komor/iblog/>
Hi there,
I was just wondering if there was a way to know if a key combination
was assigned to a particular action.
Why: I would like to avoid as much as possible the use of the pop-up
showing the corresponding actions, and so, assign a unique action per
shortcut per scope.
Even if there is the "Show Keyboard Shortcuts" command, it could be
more useful to type in the shortcut you want to test, and you get as
the result a list of actions assigned to that shortcut.
Thanks in advance,
Xavier Cambar
I'm getting crazy,
have a command with a simple "cat file"
when output set to "Replace Document"
I get nothing but an empty file,
works fine when output set to "Show as HTML"
Thank you!
-will
"Find in Project" is useful, but can be slow. I guess I've gotten
spoiled by Spotlight, Google Desktop, etc.
My request is that TextMate keep the contents of the project indexed
for speed. Also, results should come up as a I type. See, for example,
WingIDE which manages to do this.
-Chuck
I (and many others) use Mate with just typing
[term] mate /Dev/projectname
That gives you a TM window with the "project drawer".
But this isn't really a project since we have no .tmproj file.
Anyway, two questions
#1
Is there a $TM_... path that can tell me the top-level directory for
the open window?
Reason I'm asking is that some bundles, (just tried the AS3 one)
depends on knowing the "root folder". They should just assume that we
wanna use the currently opened dir (if one).
#2
Any alternative way of adding "tm shell variables" to a directory.
Like the ones in project.tmproj -> shellVariables -> ..
best
/david
Hi, t-shirt lovers:
I love Monokai theme personally, but the theme has fewer elements
resulting in fewer colors. I know I can add and customize it easily,
but I'm not talented with picking colors and designing.
Can anybody have her or his own customized themes? Can we share yours?
Regards.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
Hi Allan.
I started a new DRYML bundle (actually a.t.m. it's just a simplistic
language definition) and some other Hobo users thought it would be
nice to start a small DRYML bundle (anyone interested can see get it
at the Hobo forum). What would be the procedure to get the bundle
into TMs bundle repository?
And related Thomas: What happend to bundleforge?
Kind regards, Niko.
--
____________________________
niko dittmann <ni-di(a)web.de>
____________________________
On my MacBook (running ghc-6.6 and OS X 10.4), when I select "Load in
GHCi", nothing happens.
Any clue as to what's wrong, or anyone else experience this problem?
Thanks,
Edwin Chen
Hi,
TextMate's HTML syntax coloring seems to be based on rules while
other coloring schemes (e.g. CSS, PHP) are based on keywords.
Here's an example with syntax errors:
<style type="css">
table
{
broder:1px solid #000;
}
</style>
<p stlye="width:100px">foo bar</p>
So, TexMate will display the 'broder' NOT colored (because it's a
syntax error) which shows me that TextMate uses keywords here.
But it WILL display the 'stlye' colored (using the "Markup tag
attribute" color) because it is placed where a attribute has to
be... but of course, it's no valid HTML attribute.
So, my question is: Is there any way to get TextMate to use a keyword
list for HTML coloring as well - so it will use the default text
color for 'stlye' making me realize that it's a typo?
Kind regards,
Tobias Jung
Haris Skiadas wrote:
>
> On May 27, 2007, at 6:40 AM, Daniel Sönnerstedt wrote:
> > LaTeX - Insert Label Based On Current Word
> >
> > I didn't get this feature to work on my project. I experimented a bit
> > and it seemed like the script was having troubles dealing with
> >
> > \include{"filename.tex"}
> >
> I actually have tried using filenames this way, and I find that LaTeX
> doesn't process the corresponding file, unless you remove the .tex
> part in the above line. Is there some package you need to use to make
> this work with the .tex part?
You're right. I wasn't thinking when I wrote the example code. Of
course it actually should say
\include{"filename"}
> I'll commit your patch.
>
Great. I bought TextMate yesterday after trying it out for a few
weeks, and I'm already contributing. This is fun.
> > but not with
> >
> > \include{filename.tex}
> >
> > I use this since I have filenames with spaces. So I skimmed through
> > the code and added a small fix in LaTeXUtils.rb:
> >
> > def find_file(filename, extension, relative)
> > filename.gsub!(/\.#{extension}$/,"")
> > [...]
> > end
> >
> > became
> >
> > def find_file(filename, extension, relative)
> > filename.gsub!(/\"/,"") # Added this
> > to strip ":s
> > filename.gsub!(/\.#{extension}$/,"")
> > [...]
> > end
> >
> > And now it works!
> >
> > Now, I'm not a ruby programmer so there's is probably some better way
> > to solve this. But I think that this fix should benifit others;
> > perhaps implemented in a more proper way though.
> >
> > Thanks for another great LaTeX-bundle-feature.
> >
> > Regards,
> > Daniel Sönnerstedt
>
> Haris Skiadas
> Department of Mathematics and Computer Science
Daniel Sönnerstedt
Quicksilver has application activation very similar to TextMate's
ability to move between files, i.e. press an activation key to
activation, and then type a sequence of characters that appear (in that
order) with the application name (not necessarily sequentially). Is it
possible to activate TextMate commands (built-in and custom) in this way?
Thanks,
Ken
LaTeX - Insert Label Based On Current Word
I didn't get this feature to work on my project. I experimented a bit
and it seemed like the script was having troubles dealing with
\include{"filename.tex"}
but not with
\include{filename.tex}
I use this since I have filenames with spaces. So I skimmed through
the code and added a small fix in LaTeXUtils.rb:
def find_file(filename, extension, relative)
filename.gsub!(/\.#{extension}$/,"")
[...]
end
became
def find_file(filename, extension, relative)
filename.gsub!(/\"/,"") # Added this to strip ":s
filename.gsub!(/\.#{extension}$/,"")
[...]
end
And now it works!
Now, I'm not a ruby programmer so there's is probably some better way
to solve this. But I think that this fix should benifit others;
perhaps implemented in a more proper way though.
Thanks for another great LaTeX-bundle-feature.
Regards,
Daniel Sönnerstedt
I may be asking a few overly simple questions as, due to work pressure,
I only had time to really look at TextMate seriously just a bit before
trial mode expired.
1) I know that (using the great Key Binding Editor facility), I can bind
emacs-style multikey sequences to os x editing actions. Can I bind
multikey sequences to TextMate macros or scripts?
2) When editing text files in bundles, is it possible to bring up the
file directly in a normal textmate window, rather than in the 'bundle
editor window'? Copying and pasting back and forth seems sorta
pointless, for the most part.
Thanks, maybe some more questions later,
Ken
P.S. what's the best solution for making the caps lock behave like
ctrl--DoubleKey? It'd doesn't seem to work on my external keyboard
(hangs the keyboard), but maybe because that's because I have
Quicksilver installed.
Is there a way for me to take over the Standard ML bundle? I have
made some significant improvements.
On May 24, 2007, at 7:00 AM, textmate-request(a)lists.macromates.com
wrote:
>> Is there anyone actively maintaining the Standard ML bundle?
>
> No -- for the records, you can =93svn log=94 the bundle to see what
> =20
> activity it has seen, and the =93info.plist=94 in the bundle shows
> who=92s=
> =20
> the maintainer (and his contact email).
>
> For the ML bundle it is Sune, but he only used it for a university =20
> project, so it never evolved beyond the initial grammar and a run =20
> command.
Hi
If I mark
my 2xG5 does a bell sound when switching to terminal (or other
application). It does not occur in my PowerBook G4...
It is a bit inconfortable but I now can't live with this option!!
-----
Juan F.
Hi!
Any idea how I can find out why ctrl+esc won't open anymore bundle
items menu anymore but does nothing (it's quite for a long time now
but today I got curious ;) ).
Searching for it in the "select bundle item"-menu didn't bring up any
results.
Niels
TextMate shows the current line that contains the cursor by
highlighting the entire line. I like this because it makes finding the
cursor easy when I come back to a TextMate window.
But it gets short circuited by Find which highlights the found text,
but removes the "whole line highlight". Consequently, it takes more
effort to find where the selection/cursor jumped to upon finding text.
My request is that selecting text within a line would retain the
"whole line highlight".
-Chuck
Hi list!
Is there a way to open a textarea in textmate? Maybe with an extension
for Firefox? Cause I want to edit the textarea in a html-editor like
Textmate, editting HTML in a textarea drive me crazy.
--
Met vriendelijke groet,
Reinier Ladan
Digital Energy BV
W: www.digitalenergy.nl
T: +31624872725
E: reinier(a)digitalenergy.nl
Zin in een enorme lading web 2.0? Check uwbatterij.nl
DISCLAIMER
===========
De informatie verzonden met dit e-mailbericht is uitsluitend bestemd
voor de geadresseerde(n). Gebruik van deze informatie door anderen dan
de geadresseerde(n) is verboden. Openbaarmaking, vermenigvuldiging,
verspreiding en/of verstrekking van deze informatie aan derden is niet
toegestaan. Digital Energy BV staat niet in voor de juiste en
volledige overbrenging van de inhoud van een verzonden e-mail, noch
voor tijdige ontvangst daarvan. Wij raden u aan e-mail berichten bij
ontvangst op virussen te controleren. De verzender kan, ondanks
voortdurende controle, niet instaan voor het virusvrij verzenden van
e-mail berichten.
So I happened to notice that when I use the Shell Script bundles
"Open Terminal" that my project environment variables don't appear.
According to this tech note:
http://developer.apple.com/technotes/tn2002/tn2065.html
osascript (which is what the "Open Terminal" command uses to tell
Terminal.app to open a window) passes its environment along, which
contains the project variables.
Is this a limitation of using "do script" instead of "do shell script"?
The only work around I can think of is to explicitly set the
environment variables inside the "do script" (possibly exporting all
the variables to a temporary file and then sourcing that file inside
the "do script"). That seems icky for a variety of reasons.
Thoughts?
j.
Dear All,
Is there anyway to "tie" actions in other applications to actions in
Textmate? For example, I'd like the opening of a new file in Textmate
(by the file menu or input manager) to also initiate my timer program
(through an applescript, probably).
Is this possible?
Thanks,
Zvi Biener
Thanks everybody.
It looks like for the time being I'll just make a bundle command to
start the timer, and have to launch it myself. If you develop
something for this, Cliff, do let me know!
Best,
Zvi
> On May 23, 2007, at 1:57 PM, Brooks Seymore wrote:
>
>> Could this also be done through a Bundle Command, with the new
>> document created and the timer launched by running the command?
>>
>> B.
>
> Yeah, you can trigger a Applescript when you run a bundle command
> or even include run it from the script used when creating a file
> from a template so creating a new file would start the timer, but
> then you wouldn't be able to log time if you were just editing
> existing files.
>
> I haven't had time to look into it for myself, but does anyone else
> know if you can just use launchd to watch a TextMate related file
> for changes, say, the TextMates preferences for example? If the
> file is modified you can assume you're working with TM & then start
> your timer? I know launchd can monitor paths, but I don't know if
> TM alters its prefs file on disk when its running or just when it
> shuts down or what. If so it'd maybe work to use launchd to watch
> the prefs file and run a script. The script could even maybe use
>
> defaults read com.macromates.textmate NSRecentDocumentRecords
>
> to examine what documents were last opened / saved and mess with
> your timer accordingly, though you'd have to translate them from
> alias references (or whatever the heck the prefs file stores) to
> paths somehow. Thats beyond me at the moment.
>
> I'm just tossing out ideas...
>
> - Cliff
> De: Jacob Rus <jacobolus(a)gmail.com>
>
>
> Juan Falgueras wrote:
>
>> ....but, why it doesn't colour when you give it selections? ehmmm
>> I usually need to cut functions, etc...
>> but anyway the Brad Choate solution is much much better than the
>> enscript one. Thanks
>> Is there some trick for make B. Choate script to colour portions
>> of text?
>>
>
> You're going to have to explain what you're having trouble with. I
> have no trouble turning selections to html with that command...
>
Yes. If you select a slice of your source code like...
-------
int main(){
TpNumero numero;
if (LeerCadena(numero)){
cout << "La cadena es correcta: " << numero << endl;
ImprimeDisplay(numero);
}
return 0;
}
--------
you get:
---------
<pre class="textmate-source"><span class="source source_c++">
<span class="storage storage_type
......
</span></pre>
--------
without the definitions of styles.. and the the rendering of this
html is uncoloured...
You need to select ALL the source text to get the full html with
colour styles, etc.
If you do so, the generated html starts with all the necessary styles:
-------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>displayNum.cpp</title>
<style type="text/css">
/* Stylesheet generated from TextMate theme
*
* VERDE
*
*
*/
/* Mostly to improve view within the TextMate HTML viewer */
body {
margin: 0;
padding: 0;
}
pre.textmate-source {
margin: 0;
padding: 0 0 0 2px;
font-family: ProFont, monospace;
........
---------------
Hi
I used to need pretty print my C++ code for students and I have found
the next simple script solves my problem in a cute way, since it
shows me the formatted code in a separate window (output "Show as
HTML") and then I can easily copy the source (Cmd-Opt-U) or the
styled text (copying directly from the output window):
----- input "Selected text" or "Document"
echo "<PRE>"
enscript --language=html -Ecpp -e -B --color \
--header="$TM_FILENAME|$E|pag. $% de $=" --title="$TM_FILENAME" \
-o- 2>/dev/null | \
perl -ne 'next if (1../<PRE>/i); last if (m|</PRE>|..1); print'
echo "</PRE>"
------ output "Show as HTML"
--- Save nothing, source.c
I would like to generalize it for it to be used with other source
code, not only C, what should be the better way? to have a table
mapping modes with enscript input modes... ?
Any help will be welcome.
--
Juan F.
Thanks Dougal, it is very impressive, really.
...but, why it doesn't colour when you give it selections? ehmmm
I usually need to cut functions, etc...
but anyway the Brad Choate solution is much much better than the
enscript one. Thanks
Is there some trick for make B. Choate script to colour portions of
text?
Thanks!
> De: Dougal <dougal(a)gmail.com>
> Fecha: 22 de mayo de 2007 01:59:38 GMT+02:00
> Para: "TextMate users" <textmate(a)lists.macromates.com>
> Asunto: Re: [TxMt] html pretty print
> Responder a: TextMate users <textmate(a)lists.macromates.com>
>
> Have you tried "Create HTML from Document / Selection" in the
> TextMate bundle?
>
> On 5/21/07, Juan Falgueras < jfalgueras(a)uma.es> wrote:
>
> Hi
>
> I used to need pretty print my C++ code for students and I have found
> the next simple script solves my problem in a cute way, since it
> shows me the formatted code in a separate window (output "Show as
> HTML") and then I can easily copy the source (Cmd-Opt-U) or the
> styled text (copying directly from the output window):
>
> ----- input "Selected text" or "Document"
> echo "<PRE>"
>
> enscript --language=html -Ecpp -e -B --color \
> --header="$TM_FILENAME|$E|pag. $% de $=" --title="$TM_FILENAME" \
> -o- 2>/dev/null | \
> perl -ne 'next if (1../<PRE>/i); last if (m|</PRE>|..1); print'
>
> echo "</PRE>"
> ------ output "Show as HTML"
> --- Save nothing, source.c
>
>
> I would like to generalize it for it to be used with other source
> code, not only C, what should be the better way? to have a table
> mapping modes with enscript input modes... ?
>
> Any help will be welcome.
>
>
> --
> Juan F.
I am having trouble figuring out the spreadsheet bundle. Suppose I have the
following table:
|name |foo |bar |total |
|mike | 1 | 2 | |
How do I calculate the total?
>From the screencasts, I think I should have this line:
% A3 := SUM(A1:A2)
Then what do I need to do to get the cell to display the value?
Mike
I recently added support for .rcss files to my Ruby on Rails project, those
being the equivalent of .rhtml, but for stylesheets. I've been trying to make a
grammar that gives me all the nice ERB autocompletion and syntax coloring that
exists for .rhtml files, but seem to be running into issues with the scope
selectors.
My grammar, based on th HTML (Rails) one is here: http://pastie.textmate.org/63540
Using that, I get proper syntax coloring for embedded Ruby if I use it at the
root level, but I still don't get autocomplete. And inside a CSS selector, I
can't get anything.
The output I'm getting: http://pastie.textmate.org/63543
Is there a way to specify conditional scope within a grammar? It seems like once
it hits the CSS selector, it doesn't recognize ERB anymore.
I've made a command which will list all colours in a CSS file as a list of
swatches.
At the minute it only does Hex colours also I would like it if you could
click
colours and it would jump to them in your document but I lack the ruby
skills as I'm sure you will notice from the shoddy
"colourArrayToTrim.each" bit.
Anyway some people might find it useful
input:entire document
output:show as HTML
activation:Key cmd+shift+opt+ctrl+c (ALL modifiers + C, to show ALL
colours ;) )
scope: source.css
Code as follows:
#!/usr/bin/env ruby
file = STDIN.read
fileName = ENV['TM_FILENAME']
hex = Regexp.new(/(#(\d|[a-f]|[A-F]){3,6})/)
colourArrayToTrim = file.scan(hex)
colourArray = []
colourArrayToTrim.each { |colour|
colourArray.push colour.shift
}
puts '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Colours</title>
<style type="text/css" media="screen">
a {
color: #000;
text-decoration: none;
line-height: 22px;
border: 1px solid #fff;
padding: 2px;
}
a:hover {
background-color: #EFEFEF;
border: 1px solid #999;
}
.colourRow {
display: block;
margin-top: 5px;
margin-bottom: 5px;
width:160px;
margin-right: 10px;
float:left;
}
.swatch {
width: 20px;
height: 20px;
display: block;
border: 1px solid #666;
margin-right: 10px;
float: left;
}
.swatch div {
width: 18px;
height: 18px;
border: 1px solid #fff;
}
</style>
</head>
<body>'
puts "<h2>Colours used #{fileName}</h2>"
colourArray.each { |colour|
puts "
<a href='' class='colourRow'>
<div class='swatch'>
<div style='background-color:#{colour};'></div>
</div>
#{colour}
</a>
"
}
puts "
</body>
</html>
"
Hi,
Just wondering how I go about altering the setup to have folding
block comments in a PHP file? I only need to fold doc-block type
comments which I see have been designated as effectively ^/**$ - I'm
not worried about blocks within functions. My doc comments can be
quite voluminous, and it's frustrating seeing huge swathes of
comments and little class xxxx {... stubs when I want to get an over
view of the entire file...
;-)
R
Hi,
I'm experiencing some trouble running the auto-reload feature of Skim.
It seems that Skim doesn't wait for the pdf to be closed by the TxMt
command.
Looks like it was trying to reload the file as soon as a single bit
is added to it, imho.
What's more, a warning popup tells me Skim is "Unable to open the
file", but when TxMt is done compiling (displaying the # of errors
and warnings in the output window), I can reload the file successfully.
Have you ever noticed such a behaviour, Skim users?
Any ideas of workarounds?
Xavier Cambar
I use the Diff bundle a lot. I regularly do a 'svn diff | mate'
command prior to check-ins. One of the things I typically do with
larger sets of files is collapse all the diffs so there is one file
per line. I can then examine each group of changes, and once happy
with the review (or as they get committed), I will delete the
collapsed "line".
This is a tedious process because the foldings for a diff are not
automatically done for me. This is one of many cases I've found where
the folding separators cannot be described properly since the close
of the fold is not a match for anything in particular, just the fact
that a new fold is starting. (Another such case is for Markdown-- I'd
like to provide foldings for the "# ..." header, down to the next
available "# ..." header, but I can't express that.)
So what I do is start at the top of the file, then hit Option+Shift
+⇣ which will select just that one file's diff somehow (I haven't
investigated how TextMate knows to skip down to the next "Index..."
line like that. Does it do so based on the lines identified as
separators?). Then I hit ⌘+F1 to fold the selection.
Again this is very tedious, especially for a large diff. I would be
very happy if someone found a way to automate this process. Ideally,
it should be possible to describe a folding marker whose end is
identified by the start of a new fold, but I don't think it's
possible today.
-Brad
Hi,
Just wondering how I submit some snippets for the PHP bundle? They're
small, but I'm using them all the time.
( ${2:'$1'}=>${4:'$3'},$0
tab-triggered on (,
and the more general
, ${2:'$1'}=>${4:'$3'},$0
tab-triggered on ,,
They make typing hashed lists really very much quicker for me.
Or am I missing an altogether quicker way?
R
--
Richard Dyce MA (Cantab.) MBCS MIET
http://dyce.com
Hello all,
When I try to run the patch documented at http://macromates.com/wiki/
Blogging/WordPress, I get the following error:
burt:~/Desktop michael$ patch < wp-xmlrpc-mw-gmt-patch
patching file xmlrpc.php
Hunk #1 FAILED at 669.
Hunk #2 FAILED at 740.
2 out of 2 hunks FAILED -- saving rejects to file xmlrpc.php.rej
I'm assuming this means that my file is not patched correctly. I'm
running the latest Wordpress (2.2) but I'm not aware of any changes
that were made to the xmlrpc.php file from previous versions. Here is
what comes up in the xmlrpc.php.rej file (sorry for all the code)...
***************
*** 669,675 ****
if ($postdata['post_date'] != '') {
- $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date']);
$categories = array();
$catids = wp_get_post_cats('', $post_ID);
--- 669,686 ----
if ($postdata['post_date'] != '') {
+ /* BEGIN PATCH */
+ /* Convert post_date to GMT so receiving applications can
+ safely adjust it to the user's local time zone.
+ Using post_date_gmt instead of post_date does *not* work,
+ since it is (wrongly) adjusted for the gmt_offset *twice*. */
+ /* Old code:
+ $post_date = mysql2date('Ymd\TH:i:s', $postdata['post_date']); */
+ $post_date = mysql2date('Y-m-d H:i:s', $postdata['post_date']);
+ $post_date = get_gmt_from_date($post_date);
+ $post_date = str_replace('-', '', $post_date);
+ $post_date = str_replace(' ', 'T', $post_date);
+ /* END PATCH */
$categories = array();
$catids = wp_get_post_cats('', $post_ID);
***************
*** 729,736 ****
}
foreach ($posts_list as $entry) {
-
- $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']);
$categories = array();
$catids = wp_get_post_cats('', $entry['ID']);
foreach($catids as $catid) {
--- 740,759 ----
}
foreach ($posts_list as $entry) {
+
+ /* BEGIN PATCH */
+ /* Convert post_date to GMT so receiving applications can
+ safely adjust it to the user's local time zone.
+ Using post_date_gmt instead of post_date does *not* work,
+ since it is (wrongly) adjusted for the gmt_offset *twice*. */
+ /* Old code:
+ $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date']); */
+ $post_date = mysql2date('Y-m-d H:i:s', $entry['post_date']);
+ $post_date = get_gmt_from_date($post_date);
+ $post_date = str_replace('-', '', $post_date);
+ $post_date = str_replace(' ', 'T', $post_date);
+ /* END PATCH */
+
$categories = array();
$catids = wp_get_post_cats('', $entry['ID']);
foreach($catids as $catid) {
Can anybody diagnose this problem? I would appreciate it very much.
Thanks!
Michael
P.S. Great work on the blogging bundle! I love it!
Consider the following code:
=================
#include <Cocoa/Cocoa.h>
#include "MyClass.h"
@implementation MyClass
- (id) init
{
return self;
}
#ifndef _DEMO_
- (void) setSerialNumber: (NSString *) aSerialNumber
{
serialNumber = [aSerialNumber copy];
}
#endif
- (NSString *) description
{
return @"A MyClass";
}
@end
=================
The name of the method setSerialNumber: is not highlighted, and it
does not appear in the function popup. Removing the #ifndef cures
both problems.
Is there something I can do? Is there a later version of the Obj-C
bundle that covers this?
— F
Hari, you might be able to easily answer this, but I'm posting this
question here in case someone else knows as well...
I'm trying to typeset a document entirely in Greek. Document body,
section/chapter headers, everything. I have TeXniscope installed,
using teTeX (and relevant packages) installed through macports.
\usepackage[utf8]{inputenc} at the top produces errors for every
character in the document, in the form of:
./untitled.tex:50: Package inputenc Error: Unicode char \u8:Δ not set
up for us with LaTeX.
etc. I definitely came across this problem before, but I don't
remember if I eventually solved it or if I found it couldn't be
solved... Anything I can try to resolve this? (or typeset everything
in... ugh.. M$ w*rd??)
Thanks,
Constantinos
--
What's your Dream?
Make it happen with www.dostpost.com
Has anyone created an upload command when mp3s are dragged onto a
document? This would be a great podcasting feature for the blogging
bundle.
Thanks,
Graham English
I have noticed that if I set Line Endings to "CRLF (Windows)" (when
collaborating with windows people), line endings are correctly
translated to windows style. I forgot to set Textmate back to Unix
standard (LF), opened a text file, and when I next saved it it had
CLRF line endings. When I changed Textmate back to LF mode, the line
endings stayed as CRLF. Even if I delete then re-do all the
linebreaks, they are still CLRF. I need to get this sorted right
away, so I have used Fink to install dosunix to convert these
"CRLFed" documents.
Is this a bug in TextMate? It would be nice if there was some way to
set the line endings by file, rather than having an app wide setting.
Also, it would be great if this could be put in a bundle (LF->CRLF
and vice-versa).
Thanks,
Nick Forge
Hi All,
I am trying to use FileMerge for the 'Diff with...' commands in the
Subversion bundle.
The help file says to set $TM_SVN_DIFF_CMD to fmdiff. I guess that
should be fmdiff.sh, which needs to be downloaded and installed first
from elsewhere (help should mention that).
Anyhow after I did set that up and run a diff, it does open in
FileMerge, but the "Accessing Subversion Repository" panel in
TextMate sticks around until FileMerge is quit. Am I doing something
wrong, or is that a problem with the bundle?
Thanks
Gerd
Hello,
while testing mercurial I noticed that the diff commands in the
Mercurial Bundle behave differently than what I'm used to from the svn
bundle.
When I select a folder in the drawer and issue any diff command using
the subversion bundle, I get a diff for all files under that selected
folder.
The mercurial diff commands always use the currently active file in the
diff commands.
Changing the hg_diff.rb file enables me to select a folder and get a
diff for everything under it:
@@ -6,7 +6,7 @@
module Mercurial
def Mercurial.diff_active_file( revision, command )
hg = ENV['TM_HG'] || 'hg'
- target_path = ENV['TM_FILEPATH']
+ target_path = ENV['TM_SELECTED_FILE'] || ENV['TM_FILEPATH']
work_path = ENV['WorkPath']
path = target_path.sub(/^#{work_path}\//, '')
output_path = File.basename(target_path) + ".diff"
(patch is attached)
While I'm here .. I had to change all diff commands do something like
(
"${TM_RUBY:=ruby}" -I "$TM_BUNDLE_SUPPORT/" <<END
require 'hg_diff'
Mercurial::diff_active_file("-r$rev2 -r$rev1", "Diff Revisions…")
END
) | iconv -t UTF-8 -c
since without the iconv call I'd get empty diff windows (probably
because of incorrectly encoded german special chars inside the generated
diff) -- but I'm not shure if this is just a local problem.
Bye,
Eike
Index: /Library/Application Support/TextMate/Bundles/Mercurial.tmbundle/Support/hg_diff.rb
===================================================================
--- /Library/Application Support/TextMate/Bundles/Mercurial.tmbundle/Support/hg_diff.rb (revision 7253)
+++ /Library/Application Support/TextMate/Bundles/Mercurial.tmbundle/Support/hg_diff.rb (working copy)
@@ -6,7 +6,7 @@
module Mercurial
def Mercurial.diff_active_file( revision, command )
hg = ENV['TM_HG'] || 'hg'
- target_path = ENV['TM_FILEPATH']
+ target_path = ENV['TM_SELECTED_FILE'] || ENV['TM_FILEPATH']
work_path = ENV['WorkPath']
path = target_path.sub(/^#{work_path}\//, '')
output_path = File.basename(target_path) + ".diff"
I'd love to have a command that can put the current symbol on the
clipboard, and this would be short-work if the current symbol where
available via a TM_* variable, but I'm not seeing it.
My particular use case is Python and I'd like to be able to easily
construct "<module>.<class>.<method>" or "<class>.<method>".
I see no way of getting this information, short of writing a python-
specific parser to grab it (using TM_LINE_NUMBER to figure out where
the cursor is). Am I missing something?
j.
I have a user of my FlickrMate bundle getting the following error...
error 63 (File name too long) opening sem /tm_dialog async/
> nilsborchers/4.
> tm_dialog (async_update): Window '4' doesn't exist
> /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
> dialog.rb:83:in /bin/bash: -c: line 1: unexpected EOF while looking
> for matching `''
> /bin/bash: -c: line 4: syntax error: unexpected end of filecall'
> from /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/
> progress.rb:36:in /bin/bash: -c: line 1: unexpected EOF while
> looking for matching `''
> /bin/bash: -c: line 3: syntax error: unexpected end of filecall'
> from /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/
> progress.rb:49:in /bin/bash: -c: line 1: unexpected EOF while
> looking for matching `''
> /bin/bash: -c: line 3: syntax error: unexpected end of filefork'
> from /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/
> progress.rb:47:in /bin/bash: -c: line 1: unexpected EOF while
> looking for matching `''
> /bin/bash: -c: line 3: syntax error: unexpected end of filedialog'
> from /Applications/TextMate.app/Contents/SharedSupport/
Support/lib/
> progress.rb:40:in
It's occurring during the "Browse Flickr Photos" command. If anyone
is familiar with that particular error, could you please let me know
what it might be related to?
Thanks,
Brett
Hi. This may be an another obvious thing I have missed, but:
Running Ruby produces beautiful output, through Rubymate. But running
shell commands splats the output into a plain window, with output and
errors thrown in together, and line endings ignored.
Is there any way to pipe shell output through Rubymate, or any similar
functionality for the shell?
---
Bruno
Hi TextMaters,
I recently started to translate TextMate manual into Japanese.
Subversion repository is located at http://macromates.com/svn/Bundles/
trunk/Manual/pages .
`en` directory is a Markdown version of Allan's original manual,
which I use as a source of translation and as a template. We can,
therefore, expect the same look of the translation, sharing the same
graphics and layout if Allan can tweak his script a bit.
`ja` is used for the translation. Except for a `_read_me.mdown` file,
the directory will have the same file names. My plan is to translate
the all contents quickly but roughly, and polish the translation
later on. At the moment, there's no way to *compile* a book from the
files. (Note: I haven't even translated 5% of the Manual yet.)
**Caution**
TextMate doesn't support CJK at this moment. Users including those
who use [Fake CJK Support](http://macromates.com/blog/archives/
2006/11/09/faking-cjk-support/) are encouraged *not* to open files
other than `_read_me` file in the directory with TextMate. TextMate
or the entire system may hang. You may be able to open, but
converting the Markdown to HTML may also be a cause of this hang.
From my personal experience, handling lots of CJK text prones to
this issue.
Since I can't find anyone else who is using TextMate with a large set
of Japanese text, the problem may be personal. But for now, my
suggestion is that you not use TextMate to open the files. I get a
few emails saying I'm putting virus, but .mdown files are just plain
text files.
Takaaki
--
Takaaki Kato
http://samuraicoder.net
I'm having a problem running the default task with RakeMate. Rake reports
an error saying that '(default task)' is not a valid task. I worked around
the problem by converting the 'task' variable returned by TextMate::
UI.request_item to a string on line 58 of rake_mate.rb:
task = task.to_s
Apparently request_item is return an Array, so 'task == DEFAULT_TASK'
returns false. Converting task to a string fixes it. I'm using TextMate
1383, which is the latest cutting edge I believe.
Steve
I've been using CSSEdit for the last few days, and it's got a really
nice interface. There is a left-hand pane which is the equivalent of
the popup menu for functions in Textmate. And crucially, there is a
live search box at the top which filters that pane, so you start
typing, say 'news', and it shows all selectors with a class or id
containing that word.
I personally think that would be a great feature for Textmate to have,
perhaps in a drawer on the other side from the Projects drawer. The
popup menu is pretty unwieldy (IMHO) with big documents.
---
Bruno
Hello all,
I'm working on a command that generates some functions for a set of
variables, and I'd like to print out the result in line with the text
that is selected. Is there any really clean way to do this that I'm
not aware of? I need to get the tab indentation of one of the
selected lines of text.
Thanks,
Michael
Dear All,
I have a strange situation wherein the output of a command appears
properly if I select "Show as HTML", but disappears if I select
"Create New Document" (i.e., a blank file appears). Why does this
happen?
Here is the full story:
I wanted to modify the subversion Diff commands to use wdiff instead
of subversions built-in capacities. I added an enviornment variable
called "TM_SVN_DIFF_CMD", with a value "wdiff_svn_wrapper.sh".
"wdiff_svn_wrapper.sh" is simply a wrapper script that calls "wdiff
$6 $7". I do this in order to get read of the numerous options that
subversion attaches, and retain only the file names.
If I then use the commands "Diff Revisions..." or "Diff With
Revision..." everything works perfectly: I get the appropriate
comparison between the appropriate revision. If I use "Diff With
Newest (Head)" or "Diff With Working Copy (Base)", etc., I get the
appropriate output if I select "Show as HTML" for the output, but a
blank document if I select "Create New Document" as output. What can
be happening?
Thanks,
Zvi