Hi all,
I was wondering if anyone has any suggestions as to how one might use
Textmate to interface with Matlab? I can have a command execute a given
.m file, but Matlab is a much heavier process to load than perl is from
the command line, so that becomes a very unattractive option.
Ideally I'd like to have Matlab running in a terminal (the java
interface is just too slow for me), and edit with Textmate in such a
way that commands could reach the already loaded session.
cheers,
-don
==========================
Don Kalar
Graduate Student,
Cognitive Neuroscience
UCLA Department of Psychology
1285 Franz Hall, Box 951563
Los Angeles, CA
90095-1563
==========================
Hi,
i've run into a little problem:
I've made a "draft" via webinterface of wordpress, but when i press
"Fetch Post" i don't get to see the "Draft"
Is this a missing feature (sinds it isn't also in the "headers" part
Or is that the xmlrpc.php that has the limitations
Regards J.
Hi,
I am slowly developing a Cheetah bundle, adding functionality as I go.
Now I like to add the correct behavior invoked when I trigger cmd
+/ , the Comment Line/Selection command.
Cheetah command looks like this:
## a comment
How do I tell the "Comment Line/Selection" command how a comment in
Cheetah looks like?
Cheers
dirk
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi, to all of you TM and TXP friends,
The next version of the TXP Bundle is available for download. Version
0.7, because version 0.6 will remain unreleased. The only purpose of
version 0.6 was to pile up in-house evaluation data, before then
refactoring the Language Grammar, which is based on a little different
concept.
If you had any previous version, it is recommended, to through those
away prior installing this Bundle.
In a nutshell, the concept is to follow the same shortcuts and Behavior
as is in the HTML Bundle, so the typing becomes homogeneous with the
former in one go.
Most shortcuts have been changed, but you will find it to be more
convenient , once yo get used to it
Furthermore the scope names have been simplified and plugin tags are
only matched in generic manner for both single and container tags
I am still working on a concept to refine the matching of the plugin
tags, but this will take time.
If you still use older versions of this Bundle, it is recommended to
through these away.
A last check shows, that there is no Errors in Console, however, it
would be nice, if yo could check the latter on yours and confirm that
at some point
The Language Grammar that drives this Bundle, spans more than 4300 lines
of code an there are 86 Bundle items, which puts it in the range of
some of the most comprehensive Bundles done ever.
I would recommend, to place your customizations in a separate Bundle,
instead of this one
It will be necessary to install the custom Theme as well, since there is
currently no Them other available that would give us the Syntax
highlighting we need, and since I had t change the Scope names, the
current Theme that you have, will not give you what yo need
You may wish to start off, calling the documentation,which is basically
the same of what follows below, by just pressing ⌃ H, from any TXP
scoped document window.
The first http://www.consking.com/screencasts/txp_bundle_typing_1.mov/
Screencast, that is pretty trivial, walks you through the Typing Basics.
I used the H.264 settings to render it, which AFAIK means, you need
Quicktime 7 to watch it.
It's about 32 MB/ ~12minutes.I didn't bother much to get it down more in
file size, since it will only result in ugly artifacts in most cases.
One last thing, I would like to mention:
Although it took me much longer than expected, I've gained a big deal of
things doing this, which I am quite grateful for, so you can take this
as an example, that even Non-programmers can take advantage of this
Power tool, to create a Language Grammar for about any CMS Language you
can think of. if you wanted to.
With best regards, marios
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: This might change in the future
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFTe3b8tSzPOYuZvQRAuObAJ9crxe24GxdH/aMwHuUwF1QhhLjdwCdEYbg
XheT1ATizrVmMwM8iZU0R7o=
=E5DV
-----END PGP SIGNATURE-----
I just noticed that <%= %> and <% %> have been moved from Rails to
Ruby. But it does not work now in either. I tried text.rhtml for scope
but it didn't help either. Did a svn up also.
ANy help will be greatly appreaciated.
Thanks,
bakki
Is it possible to have web preview window always on top of other windows?
I haven't found that in prefs and it doesn't seem to be any basic option
in Interface Builder.
--
regards, porneL
If anyone wants to modify my blog linking commands to work with
Markdown, feel free ;-). I'm so used to HTML that I didn't even
think to code it in (sorry) and I'd never use it, so I'll leave it up
to someone who will...
Brett
Excerpt functionality *is* built in to the xmlrpc in wordpress, you
just have to send it the mt_excerpt header, as mentioned on this list
previously.
If you edit the blogging.rb file in the blogging bundle support
directory (or make a copy in a new bundle) and add:
@post['mt_excerpt'] = @headers['excerpt'] if @headers['excerpt']
around line 224 (it's not especially important, as long as it's in
that block) it will send a header in this format:
Excerpt: your text without line breaks
You'll want to edit the language file to include the [Ee]xcerpt
header so it highlights properly.
Then you'll want to add
doc += "Excerpt: #{self.post['mt_excerpt']}\n" if self.post
['mt_excerpt'] && (self.post['mt_excerpt'] != '')
at about line 400 in blogging.rb so that it will retrieve the
excerpts when you fetch the post or after posting.
That's it. Excerpts should work for you then.
Brett
Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
877.858.4332
f: 1.866.540.3063
e: brett(a)circlesixdesign.com
http://www.circlesixdesign.com
..................................................
The 'Open Module' command in the Perl bundle looks for a line like
use ModuleName;
but quite a lot of code uses instead
require ModuleName;
Changing line 9 of the command to
if ($line =~ /^\s*(?:use|require)\s+([^\s;]+)/) {
fixes this.
--
Andy Armstrong, hexten.net
I just tried to post a blog entry that is scheduled for a future day…
is that possible in the blogging bundle? It seemed to ignore my
manual set date?!
thx,
Dan
Hello
This bundle is awsome and very useful.
For people who works with LaTeX and with a lot of files with iso
8859-1 encoding, i make a widget after having looked at the sreencast
#!/usr/bin/env bash
for file in "$@"
do
/usr/bin/iconv -f ISO-8859-1 -t UTF-8 "$file" > "$file".utf8 && mv
"$file".utf8 "$file"
done
Now i can drop all the files of a directory and get utf8 files
(attention : with this script , the old files are lost, perhaps a
backup is necessary before)
Thanks Andy, for this great tool
Alain Matthes
Ok, this is it, I'm getting back to work. No, actually it's time for
a movie with my wife. Looks like I'll be working Sunday ;-).
This is a Wordpress plugin, a blogging.rb patch and a Search Posts
command. The plugin returns related posts with title, permalink and
ID. The blogging.rb patch/command will give you a dialog to enter a
search term or phrase (unless there is text selected) a dropdown to
pick a post, fetch it and open it in a new window.
I hope somebody finds it useful. I know I do.
Brett
This is a quick patch file for metaweblog. If you install the plugin
(seriously, it is, in my opinion, very cool), you'll need this to run
the command in TextMate.
I have gone a step further and modified the plugin by one tiny line
and now I can run a search for posts by keyword using the plugin, and
open them just like Fetch Post. Difference being I can open any post
I've ever written and I can narrow the field down instantly... I
will post the updated plugin, a patch for blogging.rb and a Search
Posts command all together.
Brett
In my enthusiasm I forgot that I made a 3 line addition to
metaweblog.rb in order to make the related posts plugin work. I'm
going to paste it here (sorry, Allan) but I will make a diff file in
a minute.
def getRelatedPosts(blog_id, username, password, data)
call("wordpress.getRelatedPosts", "#{blog_id}", "#{username}", "#
{password}", data)
end
Brett
Another unproductive day at the office yields more of my usual tricks.
I was writing a blog post and realized that I often want to link to
an article I've written myself. This tends to be a good practice,
even if just to keep new visitors delving a little deeper into your
site. But none of the current linking tools in TextMate were
especially good at handling this. So I started problem solving.
Solution 1: Lookup Word/Selection on blog and link. This command
was my first idea. It's just a modification of the google lucky
linking command that takes your selection, lets you choose which blog
from your endpoints and then runs a google search with a
site:your.blog.com in the search string. So it's limited to results
from your own site, and links to the first result returned.
Solution 2: That wasn't effective enough. Posts aren't always on
Google if they're too old or too new and there was no control over
which post was chosen. So I modified the Fetch Recent Posts command
to insert a link to the chosen post. If you run it without any input
it will ask you for the text of the link.
Solution 3: That wasn't complicated enough. This last solution is
for Wordpress users only, I'm afraid, but it's a doozy. The plugin
included here is a heavily modified version of the Related Posts
plugin. It runs a FULLTEXT search on your posts with your selected
text and returns relevant posts in an array. The whole thing is an
XMLRPC hook. No hacking required. I finally figured out how to do
this today, so I'm going to modify my Ultimate Tag Warrior hack to be
a plugin as well. I'll get to that later. There's a command with
this called "Link to Related Posts" that will query the database and
present the related posts in a dropdown.
Haven't seen anybody mention this yet. If you go to
Bundles->Textmate->Install Edit in Textmate, the instructions are a
very cool halloween theme. Not sure what kind of window this is
for..I looked at the help docs and they look normal. But yeah, pretty
cool
If you got away from the satanic animal sacrifice version, you here's
a screenshot: http://www.javaspot.net/images/textmate_halloween.png
http://www.randsinrepose.com/archives/2006/10/31/
bright_patient_design.html
<snip>
I'm not a power user, but I know what I expect out of a good editor
and, well, BBEdit is a good editor, but whenever I fire it up I feel
like I forgot to read some imaginary manual called, "BBEdit Rocks.
Really." I suspect the fact that I didn't grow up with BBEdit is part
of the issue. The fact that I'm a pure Mac OS X guy with zero pre-Mac
OS X experience probably contributes to feeling like I'm missing part
of the BBEdit joke. Yeah, Zap Gremlins. Ha ha. I get it. Clever, but
great design?
My BBEdit ambivalence allows me to check out new editors as they
stream across my consciousness and, to BBEdit's credit, it's lasted
four years. I've test driven several editors during that time and
BBEdit remained my technical tool of choice, but it was only a matter
of time until someone else knocked my socks off.
The buzz around TextMate started many months ago, but it's when folks
started to ask me to order it that I started to pay attention. There
is no copy protection known to man that any bright engineer can't
circumvent, so when an engineer asks you to purchase the software
they're saying, "This is the shit. We should pay these guys for this
fine piece of work."
You bet I downloaded it.
After two steady months of TextMate, I'm happy to declare it my
editor of choice because it demonstrates a design philosophy I love.
Bright, Patient Design. I'll explain
...
</snip>
j.
Hello,
is there any way to add support for non-image files when dragged onto
the TM window; these files should be linked and uploaded to the
serves as are images?!
thx,
Dan
>> something i didn't understood, suppose i write a wrapper to mate
>> "sudo_mate" even launching TextMate like that :
>>
>> sudo /Applications/TextMate/TextMate.app/Contents/MacOS/TextMate
>> blahblah
>>
>
> In my experience, any time I need to edit a file I don't have
> access to, TextMate will realize that and authenticate me so I can
> save the file. This probably requires you to be in the admin group,
> but then so does sudo (by default), right? The only possible
> drawback is that new files might not get root as the owner. But
> maybe in that case you could just do:
>
i just dis a small over a file on my desktop :
~/Desktop/sudo_textmate%> ls -al
-rw-rw-rw- 1 news admin 122 Nov 3 11:01 essai-sudo-config
i open it with TextMate, add "Hello world !" inside and save it.
TextMate didn't ask in authetification and the file has now those
user:group :
~/Desktop/sudo_textmate%> ls -al
-rw-rw-rw- 1 yvon yvon 140 Nov 3 18:16 essai-sudo-config
(yvon being my login name)
this should be considered as a bug afaik ?
TextMate would have either not open the file or ask for
authentification ...
I'm usinf TextMate Version 1.5.4 (1324).
also for mate it is, in my opinion, about the same because on my box
mate leaves in :
~/Desktop/sudo_textmate%> which mate
/opt/local/bin/mate
where all the bins are aware of which root|user opened a file...
best,
Yvon
Le 3 nov. 06 à 16:20, Rob McBroom a écrit :
> On Nov 3, 2006, at 12:06 AM, Une Bévue wrote:
>
>
>> something i didn't understood, suppose i write a wrapper to mate
>> "sudo_mate" even launching TextMate like that :
>>
>> sudo /Applications/TextMate/TextMate.app/Contents/MacOS/TextMate
>> blahblah
>>
>
> In my experience, any time I need to edit a file I don't have
> access to, TextMate will realize that and authenticate me so I can
> save the file. This probably requires you to be in the admin group,
> but then so does sudo (by default), right? The only possible
> drawback is that new files might not get root as the owner. But
> maybe in that case you could just do:
>
i just dis a small over a file on my desktop :
~/Desktop/sudo_textmate%> ls -al
-rw-rw-rw- 1 news admin 122 Nov 3 11:01 essai-sudo-config
i open it with TextMate, add "Hello world !" inside and save it.
TextMate didn't ask in authetification and the file has now those
user:group :
~/Desktop/sudo_textmate%> ls -al
-rw-rw-rw- 1 yvon yvon 140 Nov 3 18:16 essai-sudo-config
(yvon being my login name)
this should be considered as a bug afaik ?
TextMate would have either not open the file or ask for
authentification ...
I'm usinf TextMate Version 1.5.4 (1324).
also for mate it is, in my opinion, about the same because on my box
mate leaves in :
~/Desktop/sudo_textmate%> which mate
/opt/local/bin/mate
where all the bins are aware of which root|user opened a file...
HOWEVER other people don't have this experience with TextMate, they
have veryfied TextMate doesn't change file owber and asks for
authentification.
then the prob comes from my machine...
i'm wiping out TextMate and related to get a fresh install...
best,
Yvon
On Fri, 3 Nov 2006 05:24:16 +0100, Allan Odgaard wrote:
> On 3. Nov 2006, at 05:09, Une Bévue wrote:
>
>>> This calls mate as super user, but mate only passes a file name to
>>> TextMate, which is still running as your regular user -- so this
>>> doesn’t work as you expect.
>> ok thanks, and using :
>> sudo open -a <absolute_path_2_TextMate> <my_config_file> would open
>> another TextMate ?
>
> No, it would effectively do the same as mate (i.e. sending the
> filename to TextMate).
>
> There basically is no way you can currently do what you want -- but
> since ‘sudo mate’ is (by several users) expected to transfer the
> super user privileges to TextMate (for just that file), I will look
> into how this could possibly be pulled off sometime in the future (it
> would be a nice little feature).
One hack would be to use something like my RemoteEdit scripts.
The script would need to:
i) make a temporary copy of the file
ii) open the file in TextMate for editing
iii) On save or close, copy the temporary file back over the
original.
hrm. In fact, as my scripts use scp, and that works locally as well
as remotely, my remoteEdit script should work just fine for this. :)
http://www.cse.unsw.edu.au/~willu/RemoteEdit/
sudo remoteEdit /my/local/file
should just work... but it doesn't. sigh. It has problems
forwarding the ODB suite AppleEvents between root and the normal
user. It might not be too hard to work around that though.
*wanders off to think*
Cheers,
Will :-}
I often use TextMate's "anonymous project" feature, where I drop a
folder onto TextMate, and it automatically creates a project for me.
Unfortunately, I've noticed that if I rename this folder or move it
to the trash, TextMate gets confused. It apparently can't find the
project and displays all the files in the file drawer in red text.
Also, if I happen to have an unsaved file open beforehand, TextMate
insists that I type my administrator password (why?) every time I
switch apps, since I have the "Save files when focus is lost" setting
on.
This wouldn't be so bad, except that sometimes -- and I haven't
figured out what causes this -- TextMate prompts me for my password,
then beachballs permanently after I enter it, and I have to Force
Quit. This has happened to me on quite a few occasions, and just
happened again today. (I'm using version 1.5.3.) Has anyone else seen
this?
Anyway, shouldn't TextMate be able to track folder changes? I don't
understand why it has to get all confused just because I move or
rename a folder.
Trevor
I've had a problem with TextMate (and with OmniOutliner), where
writing in very long lines was extremely slow. Very slow.
I've just updated the utility FruitMenu, since the update claimed to
fix a problem where writing in OmniOutliner was very slow. Guess
what, writing speeds in both applications have dramatically improved.
It might be a coincidence, but then maybe not.
/Peder Axensten
The SWIG bundle should derive from source.c++ as SWIG interface files
may include C++ code.
Also, how do you guys maintain bundles. I have my checkout in /
Library, and I want to make changes without a .tmDelta being created
so I can commit. Should I just checkout to ~/Library instead?
Thanks,
-- Daniel
Hi List,
I'm playing around with templates for Actionscript, at the moment
all's working fine except the class path of the new class I'm
generating.
I'm using the TM_DIRECTORY variable in combination with the
TM_NEW_FILE_BASENAME as in the original AS template and attempting to
parse it with a regexp to change it from a file path the the class path.
i.e. change _workingcopy/com/native/project/package/ClassName to
com.native.project.package.ClassName
My limited grasp of regexp is tripping me up however.
As I understand the problem, I need to look for "com" as the start of
the class path, strip out anything before that and then convert
subsequent slashes to full stops.
So far I've got as far as
(.+)(com)(.\w+)\3*
Which as I understand it, matches "com" and then "/[somefoldername]",
and then repeats the 3rd match pattern ("/[somefoldername]") until
the end of the path on each path segment.
Am I close? How do I now go about replacing each / with a . in the path?
Thanks for any help!
Sam
Haris, cool. thanks for helping! yea, now you got me into this bash-scripting thing..
based on your hint i adjusted the compile-section in the "typesed and view" command and it seems to work now. thanks again!
# Compile.
run_tex "$FILE" 2>&1| latexErrWarnHtml.py -v
# If there is a "nlo" nomencl-file, then run makeindex and compile again
if [ -e "${M%.*}.nlo" ]; then
makeindex "${M%.*}.nlo" -s nomencl.ist -o "${M%.*}.nls"
run_tex "$FILE" 2>&1| latexErrWarnHtml.py -v
fi
RC=$?
if [[ $TEX_PSTRICKS ]]; then
dvips "$DVI" -o "$PS" && ps2pdf "$PS"
fi
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer