Hi,
Is it just me or the active bundle no longer "centered" under the
mouse when opening the bundle menu on TM's window bottom toolbar? Is
this by design?
Christian
I have not tried it yet, and it is still very much a work in
progress, but now Fuse and the ssh file system are available for OS X:
http://googlemac.blogspot.com/2007/01/taming-mac-os-x-file-systems.html
If that works well there would be no need for an ssh implementation
in TextMate, and Allan could use the time to add other cool things...
And it probably is just a matter of time before ftp will be supported
by this as well.
Gerd
> My first intention, just to see how things are working i wanted to
> make a trace output - which says "Hello World". What am i doing
> wrong? Ive tried to use the ActionScript template and i did a
> script which just says trace ("Hello World"); I did use the
> "Install MTASC Support Files" and i did a try without...nothing
> happens. Can anybody help or does know where i get some
> information? ==================================
trace() is used by the Flash IDE. The MTASC equivalent is TRACE(),
which you can set up on the command line to point to another
function. I'm currently using the LuminicBox logger, but everyone has
their favorite. Google 'actionscript logger' for more options. Most
of them either work over a LocalConnection or an XMLSocket to pass
information to the logger. XMLSocket loggers are faster but the ones
I've seen are less robusty (Luminic, which is a LC debugger, has a
nice tree view for your objects).
Good luck :)
P.S. If you're interested in a more complete workflow, check out my
howto on the subject at
http://www.unfitforprint.com/articles/2006/01/02/howto-develop-flash-
on-mac-osx-with-rake-mtasc-swfmill-and-textmate
___________________
Ben Jackson
Diretor de Desenvolvimento
+55 (21) 2256-1022
ben(a)incomumdesign.com
http://www.incomumdesign.com
For some reason, over time, about half of my Ruby files have 4-space
indents and the other half want to indent by 2 spaces. I've been
living with it, but not my source is looking a bit like it had too
much to drink last night. Questions:
1) How do I tell TM how many spaces to indent?
2) Is there some cool way to invoke the auto indenter across a whole
file (I know it will get some of the indents a bit wrong, but it's
easier than going line by line)?
Thanks
Hi,
why does the LaTeX bundle suddenly default to \emph instead of
\textit when I press command-i? This is a most unwelcome change as I
often use the scrartcl-class where \emph seems to be typeset as
underlined text instead of italic.
Any chance for a *different* shortcut for emph in the default LaTeX
bundle? I don't like messing around in the default bundles myself for
as far as I understand TM will create a "local" copy and I can no
longer easily benefit from updates in the default bundles … :(
Christian
> Hmm, well you'll have to explain what you mean. There's no way
> that the bundle can really fetch posts from a BB, etc. The best
> way to use the BBCode bundle is--assuming you use a webkit-based
> browser like Safari, OmniWeb, etc.--to make a new post in your
> browser, and then use the edit in textmate input manager to get the
> text into TextMate. Then when you save the textmate window, it
> will put the updated text back into your browser. If you use
> firefox, i think some sort of external editor support is
> achievable, but I don't know how. If you use Opera or Camino, I
> think you're out of luck for now (though I could be wrong about
> Opera).
>
> Hope this helps,
> Jacob
>
Nonono you misunderstand me. Go to your favourite Board and do the
following:
1. Start making a new Post/Thread/Message
2. Type in some text. Lets say "This is my text"
3. Lets say you want the word "text" to appear as a link.
4. In a normal web browser you do this by marking the text "text",
click on "URL=" then the text "text" changes to [url=]text[/url].
Did it become clearer to you what i mean?
It would be nice to have TM act like the web editor so i can paste
the text back to the browser when i fnished with my post.
> Yes, I made a bulletin board bundle (in fact these things were my
> first textmate bundle items, so they're probably somewhat shitty
> with out-of-date scopes, etc.). It doesn't have too much
> functionality, but it should do reasonable syntax highlighting, and
> things like cmd-b for bold, etc.
Yes it does work very well. I was just thinking that it would be
something cool if the Bundle could handle these things. So that
editing is a little more comfortable.
@Niels: I have the Bundle already installed! Thanks for your
information ;)
Hi
Today i was just asking myself, when i was editing a quite big Forum
Post. Why there is no "Bulletin Board"-like editing mode in TextMate?
I hope you know what i mean...but let me describe.
When you are on the website of your favourite board. And make a new
post, the editor comes up and you start typing.
Then you decide: this one has to be size 1, this passage has to be a
link and so on.
On the Forum you are just mark which text has to be size 1 or the
link, click the size or link button and your marked text is put
between the tags you decided eg [size=1]my little text[/size]
This would be very handy to have! Because i am (very) addicted to
some forum i am visiting and i am writing some large entries there
which are posted on the start-page of the site.
Thanks!
Zettt
Greetings, I've encountered a bug recently with textmate after 6
months of use. it just popped up so I'm presuming it's related to
something with the systems font or somesuch. but no other app has
this issue.
I use textmate primarily for editing my rails scripts , As I said it
worked fine, but now my cursor is generally 1 or 2 columns off from
the insert point.
here's an example
type a number sequence to show
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9 0
then hilite, copy and paste in groups of +5
1 2 3 4 5
1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9
same thing without spaces..
12345678901234567890123456789012345678901234567890
12345
1234567890
123456789012345
1234567890123456789
123456789012345678901234
I've tried different fonts but get the same result. some times in my
code when there is italics or bold the spacing can be very off like
by 4 chars or more.
any ideas?
osx 10.4.8, default install
thanks
-zaq
Howdy all --
I'm wondering if Macromates is, or is not, at Macworld. There's a
listing in the program guide, but I looked and I couldn't find the
booth.
If so, I was going to stop by and say hi. :-)
Thanks,
--
Matt Anderson
Hi all,
I'm trying to re-implement the Emacs sentence navigation/kill commands.
http://www.delorie.com/gnu/docs/emacs/emacs_235.html
I've managed to write some macros that behave the same as Emacs for
most situations except near the beginning or end of the file. To fix
this I would need to be able to match the EOF or Beginning Of File in
a regex. Reading
http://macromates.com/textmate/manual/regular_expressions
I can't see these as available characters... do they exist?
--
Sam
Dear all,
Thomas Aylott wrote a nice Filename Completion within the
Experimental bundle. With this command you can simulate the TAB
behaviour at the console writing paths or file names.
By myself I prefer to see all suggestions with their real names (not
only the rest). That's why I wrote my own humble version, and I added
a nice 'auto correction' function to it.
With 'auto correction' I mean:
Examples:
I type '/Apppli' , invoke the completion, and finally it writes '/
Applications/'
or
I type '~/Dyskt' , invoke the completion, and it goes back to the
first valid path and makes a pull down list of 'Desktop, Documents'
The next thing I changed is that if the completion finds only one
match it outputs it directly without asking me.
Together with the auto correction the completion makes it easier to
insert a specific file name with a typo. For instance, I have a file
at my desktop named 'test3.txt' and I type '~/Desktop/test33.txt' ,
start the completion, it changes it at once to '~/Desktop/
test3.txt' (of course, if you have no other files beginning with
'test3').
The feature to select a part of the path with the mouse to indicate
what I want to change is missing in my script, because I'm a keyboard
person. If I take the mouse to select something, then I also can
press 'DELETE' before I invoke the completion script.
As default the pull down menu doesn't list files beginning with a
dot. If you want to see them, then you have to type:
'~/.+' (to see all) or '~/.p' (to see all with a p)
I bound the script to the key CRTL+TAB and the scopes: source.shell,
string.interpolated.ruby; but here are no limits.
Please check it and don't hesitate to comment my script ;) (Maybe I
forgot something)
Cheers,
Hans
Hi all,
I noticed that the Cocoa autocomplete word (ESC in Tiger) works in
TextMate. Using ~/Library/KeyBindings/DefaultKeyBinding.dict I have
set ^/ to also do autocomplete in Cocoa apps. I've been using this
keybinding for a long time now, but I'm new to TextMate (bought
license today).
Unfortunately, this user set binding does not work in TextMate
although it does work in other Cocoa apps such as TextEdit. Does
anyone know why this might be the case and any hints to fix it?
Optimally I'd like to set "Apple /" to autocomplete, but for some
reason Cocoa doesn't allow this.
cheers,
Sam
--
http://fommil.me.uk
Since my ISP is slow, I've added timeouts to the blogging module. I
guess its time to check that module out and see about diffs.
Anyway, you can now add, optionally, whitespace ddd to each blog
entry in the preference file to specify a per blog timeout.
Love the openess of this system :)
The Mac web development tool we've all been waiting for is here: "IE
Preview" allows previewing TextMate's current working document
directly in Internet Explorer through Parallels -- with a single
shortcut key! Many of us are forced into testing for IE
compatibility, and this makes it far less tedious.
I'm providing the app and the script on my site, here: http://
www.ryanvb.com/ie-preview/
If you find it useful, diggs and/or comments are much appreciated!
Thanks,
Ryan van Barneveld
Avid TextMate User
Hi,
I'm using textmate for my python work.
Templates are good but i can't replace spaces increment by tabulation :
if __name__ == '__main__':
(_ _ _ _) main() # spaces
if __name__ == '__main__':
(tabulation) main()
I must change it manually each time...
How to do that with bundle editor ?
Thx, C.
>
>> Hi out there,
>>
>> Sorry to disturb you during Steve is showing the new iPhone. But i
>> have a little question. I am using TextMate to compile my LaTeX
>> Documents. I was just asking if i can use LaTeX to create a Test or
>> Quiz. And yes you can! If you are using the package exam. So i was
>> downloading some examples hit Command+R and the compiler said that
>> he is missing some exam.sty
>>
>> Can someone help me out?
>>
> It is possible you don't have the exam package installed. Try running
> this on the terminal and see if you get something back:
>
> locate exam.cls
>
> Btw, exam is not a package, it is a document class, so you should
> access it via:
>
> \documentclass{exam}
> ......
>
> There is a TextMate Template creating a basic exam for you (File ->
> New From Template -> LaTeX -> Exam). Here you can find documentation
> for the class: http://www-math.mit.edu/~psh/#ExamCls
You're right. When i am in the \documentclass {exam} it will do the job.
My exam.cls is located at
/usr/local/teTeX/texm.tetex/tex/latex/exam.cls
I know whats wrong now. The example.tex Files ive downloaded had
these information in the preambel:
\documentclass{article}
\usepackage{exam}
%%%% If you are not using LaTex2e, replace the first two lines
%%%% with the following:
\documentstyle[exam]{article}
\paper{445.123 FC}
\degree{BA, BSc etc}
\title{An introduction to basic set theory}
\note{Attempt any {\bf THREE} questions}
Hello all,
As I was monkey-bashing the keyboard around Apple-D, I managed to
turn-off syntax highlighting. Can someone tell me how to restore
syntax highlighting or provide a link that includes this help?
Why was I monkey-bashing? For some reason Project Drawer will not
open on ^-Ctl-Apple-D. The menu works just fine. Any bugs around this?
Thank you, thank you, thank you,
Peter Fitzgibbons
peter.fitzgibbons(a)gmail.com
> On 1/7/07, thomas Aylott <oblivious(a)subtlegradient.com> wrote:
>>
>> On Jan 6, 2007, at 1:59 PM, Peter Michaux wrote:
>> >
>> > Is there a way to insure that the project draw will always open on the
>> > left? About fifty percent of the time it opens on the right and I have
>> > to close it, then move the window to the right and then reopen the
>> > project drawer so it shows on the left. A hassle I would really like
>> > to eliminate.
>>
>> It opens up on whichever side has more room.
>> If you drag your window all the way to the right and open the drawer,
>> it'll
>> open on the left.
>
> The steps you describe are the steps I unfortunately have to do half
> of the times I open a project in Textmate which is a tedious task just
> to make sure the drawer is on the left. It would be nice if Textmate
> always made sure that the window was far enough to the right so the
> drawer would automatically open on the left.
>
> Peter
I find this to be a feature, rather than a bug. I like to keep two (or
more) projects open at once, and have one with a drawer to the right,
and another with drawer to the left. This guarantees that the corner of
the other project window will always be showing, which sometimes is
useful for toggling between windows (it would be nice to be able to use
command-`), and as a visual reminder of what I'm working on. So at most
I think we might ask for a pref to control which sides the drawer can
appear on. Personally, I'll be a lot more excited when there's a pref to
turn off the automatic rescanning of files in a project (especially when
they're on a network vol), as the lag when switching between Textmate
and other apps is very annoying.
-Toby.
Hi out there,
Sorry to disturb you during Steve is showing the new iPhone. But i
have a little question. I am using TextMate to compile my LaTeX
Documents. I was just asking if i can use LaTeX to create a Test or
Quiz. And yes you can! If you are using the package exam. So i was
downloading some examples hit Command+R and the compiler said that he
is missing some exam.sty
Can someone help me out?
Thanks
Dear all,
I'm hacking on a little project that is somewhat abusing the
'Pipe text through' feature of TextMate's Web Preview window
(''abusing'' in the sense that I do not want to preview HTML text).
If you open the Web Preview and uncheck the 'Pipe text through'
option you can observe how rapidly TextMate can update the
preview (set the 'Refresh after change delay' to 0.00s and type
away in some plain text -- the update seems almost immediate and
you'll have immediate typing response in the editor window).
Enabling 'Pipe text through' makes TextMate pipe the current
editor window contents into the specified command. Even if you
only specify 'cat >/dev/null' as that command, you will notice
that text editing will become sluggish. I assume that this
delay is all due to the overhead of *forking* the specified
command -- executing 'cat >/dev/null' itself takes no noticable
time on files of size <100k on my Powerbook G4.
I've got two questions here:
(1) Is there a smarter way to receive live updates of the
current editor window contents? Maybe via the plugin API?
(2) How about a comptabile change in 'Pipe text through's
behavior? If the file specified in 'Pipe text through' is a
named pipe (mkfifo(1)) do not fork any command but simply
write the editor window contents into that named pipe.
Otherwise, behave as before.
Item (2) sounds like a moderate change that could get us rid
of the forking overhead for at least some applications that
need live update. What are the chances that Allan has open
ears for such things?
Thanks and all the best for the New Year,
--Torsten
1-open a new TM window
2-write a line containing " \\\a" (some spaces, some slashes, smthng else)
3-move the cursor back in the middle of the spaces
4-double click
Result: the spaces AND the slashes are selected.
Am I the only one to hate this? I expect the spaces
only to be selected.
Regards,
Piero
On Jan 8, 2007, at 10:23 AM, textmate-request(a)lists.macromates.com
wrote:
> As a Textmate user on multiple Macs, I totally support the idea of
> keeping my stuff in a Subversion repository :)
>
> Makes life so much easier when syncing, and helps me fix things fast
> when I break my own stuff (something that happens quite a lot :)
>
> Just my .02
Alex,
I'm with you all the way, but as a SVN noob, I haven't been able to
figure out how to set up ssh + svn so that I could use something like
ZigVersion on my various macs. If you know of a good guide, I'd be
much obliged. (And the one that comes with SVN leaves me in the dark.)
Darkly yours,
john
I'm switching from Zends IDE to textmate and have encountered
something i would like to enable but have the foggiest how to or even
if it is possible.
In Zend if you double click a php variable, ie $variable_name; then
the whole variable word including the $ would be selected and not
just the word text. Is there anyway to code this via the bundle
editor. I haven't really got a clue about it myself.
K, so I just started using TextMate. I am not a huge coder but let me
say that this software rocks.
So I am wondering if any of you can tell me how to fix this error
that I am having with the blogging bundle?
When I fetch posts I get this error
/usr/lib/ruby/1.8/net/protocol.rb:83:in `initialize': getaddrinfo: No
address associated with nodename (SocketError)
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `new'
from /usr/lib/ruby/1.8/net/protocol.rb:83:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:55:in `timeout'
from /usr/lib/ruby/1.8/net/protocol.rb:82:in `connect'
from /usr/lib/ruby/1.8/net/protocol.rb:64:in `initialize'
from /usr/lib/ruby/1.8/net/http.rb:430:in `open'
from /usr/lib/ruby/1.8/net/http.rb:430:in `do_start'
... 8 levels...
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `popen'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:11:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.vF4NMJ:3
I am using a Wordpress Blog
I am behind a linksys router. Is there some settings or something
that I should do? Not really sure. The site prompts me for my
password and I am 99% sure that I am putting in all the right settings.
thanks,
Matthew Wallace
Web Development
http://mswallace.comhttp://flashalisious.com
Office: 615-261-8149
Is it possible to re-bind Cmd+J and Shift+Cmd+J? Or are they consumed
by the menu system? I was unable to locate the appropriate command
TextMate uses for these keys.
Also, is there a complete list of commands TextMate supports for key
bindings. The default KeyBindings.dict does not list everything
(e.g., movePageUp, movePageDown).
Thanks.
Brendan Dixon
brendandixon(a)mac.com
425.922.8798
Hi,
has someone experiences with RubyOSA – a Ruby/AppleEvent Bridge (esp.
whether it is faster than osascript running in BASH)?
http://rubyosa.rubyforge.org/
-Hans
Is there an equivalent in TextMate to C-x C-f in Emacs, where you can
specify the path and name of a file to open using the keyboard? I know
about CMD-O but that brings up the GUI File/Open dialog.
Been using TM for about 2 weeks now, I'd like to know bundles others find
useful.
Thanks
--
---------------------------------------
The Code Ninja is swift with his tool, precise in his delivery, and deadly
accurate in his execution.
Wondering if there is a way that I can configure the web preview
window to open up previews using a testing server address instead of
the file path.
Instead of it previewing like this
file:///Users/mswallace/Sites/phpTuts/lesson2/arithmetic.php
I want it to open like this
http://localhost:8888/php Tuts/lesson2/arithmetic.php
thanks,
Matthew Wallace
Web Development
http://mswallace.comhttp://flashalisious.com
Office: 615-261-8149
Attached is a bundle of commands for html h1-h5.
They build on the bundle "additional html" which was just sent to the
list.
They add the feature which most brings me back to Dreamweaver: they
not only turn selections (or whole lines with no selection) into a
heading, they also work on existing headings, changing them to the
selected level.
I'd welcome feedback and/or seeing something like this included in
the proposed expanded html bundle.
If you drag-and-drop a CD or DVD on an open
TextMate window this produces a nicely formatted
list of the contents. Folder names end with / ,
and one or more tabs denote the hierarchy
of nested folders.
I'm tempted to use TM for this. Actually searching
is already ok; I might use a project to group different
media into different folders, etc.
The only thing I am missing is a way to fold the
list at the appropriate level. The fully expanded
list is something like
CDname/
firstFolder/
subFolder/
file1.txt
file2.mp3
file3.txt
secondFolder/
file1
file2
file3
thirdFolder/
and I would do things like: see only the
CD names, or see only stuff down to one level
of tabs, or down to two levels of tabs etc.
This should be doable with the folding system of TM.
How? ok I could discover myself, and I'll certainly do
as soon as I have one solid week free (around 2009 I guess)
BTW, if you have a cataloging bundle ready I would
appreciate it a lot...
Piero
Hi,
Is there a way to insure that the project draw will always open on the
left? About fifty percent of the time it opens on the right and I have
to close it, then move the window to the right and then reopen the
project drawer so it shows on the left. A hassle I would really like
to eliminate.
Thanks,
Peter
--
Fork JavaScript: http://forkjavascript.org
Today I got this error trying to post / fetch some entries
tm_dialog: you have updated the tm_dialog tool to v8 but the Dialog
plug-in running is still at v4.
tm_dialog: either checkout the PlugIns folder from the repository or
remove your checkout of the Support folder.
tm_dialog: if you did checkout the PlugIns folder, you need to
relaunch TextMate to load the new plug-in.
/Users/gotchi/Library/Application Support/TextMate/Support/lib/
dialog.rb:42:in `initialize': No such dialog ()
(TextMate::WindowNotFound)
} for command: /Users/gotchi/Library/Application\ Support/TextMate/
Support/bin/tm_dialog -a -p \<\?xml\ version\=\"1.0\"\ encoding\=
\"UTF-8\"\?\>'
'\<\!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\>details\</key\>'
'\ \<string\>\</string\>'
'\ \<key\>isIndeterminate\</key\>'
'\ \<true/\>'
'\ \<key\>summary\</key\>'
'\ \<string\>Contacting\ Server\ “blog.gotchi.at”…\</string\>'
'\ \<key\>title\</key\>'
'\ \<string\>Fetch\ Post\</string\>'
'\</dict\>'
'\</plist\>'
' ProgressDialog.nib from /Users/gotchi/Library/Application Support/
TextMate/Support/lib/dialog.rb:25:in `new'
from /Users/gotchi/Library/Application Support/TextMate/Support/lib/
dialog.rb:25:in `dialog'
from /Users/gotchi/Library/Application Support/TextMate/Support/lib/
progress.rb:38:in `call_with_progress'
from /Applications/TextMate.app/Contents/SharedSupport/Bundles/
Blogging.tmbundle/Support/lib/blogging.rb:546:in `fetch'
from /tmp/temp_textmate.87V0KW:3
I tried to update all Bundles with the "GetBundle" Plugin but nothing
changed.
I am sure this topic was already mentioned but I wasn't able to find
anything in the archives or my mailbox (cause of deleting unnecessary
things).
Thanks for helping
herbert
Does anyone have a working command to trigger YummyFTP's insanely
cool AutoRoute feature?
I want to be able to click "CMD-Shift-U" and have my current file
magically get uploaded to the correct server and location. I've found
accounts online of people doing this, but they don't say exactly how
it's done.
Thanks in advance!
Sean
:::: DataFly.Net ::::
Complete Web Services
http://www.datafly.net
Could the list help me with the following: I like to have a command
that, when activated with the caret in a (unique) file-in-project
name, finds this file and loads it automatically in textmate.
The function I'm looking for is comparable to that offered by the
txmt URI with 2 differences: (1) with the txmt URI any text file can
be loaded (I only want a file from my textmate project) and (2) the
full path and file name needs to be specified (I only want to give
the file name).
Any help is appreciated.
-- Bert
Brad,
I'd not used tags before, and I like the cloud so I'll toy with it.
However, adding some tags via MT fetches:
ype: Blog Post (Markdown)
Blog: Geeks R Us
Link: http://www.geeksrus.com/archives/000978.html
Post: 978
Title: Blog Entry from TextMate
Keywords:
Tags: Software, TextMate
Format: markdown_with_smartypants
Date: 2007-01-03 21:52:26 -0800
Pings: On
Comments: On
Basename: blog_entry_from
If I tack on ', Fred' to the tags and post, the tag is tossed. What
am I missing at this late hour? :)
Steve
Hi,
I look at 'Insert Command Template' and this one of my favorites ;)
Nevertheless I have some humble suggestions to improve it:
1)
Now this command executes the apropos function within a new fresh R
session. This means that it doesn't know which libraries I'm
currently using and it doesn't know which functions I defined within
my R session. To use 'Insert Command Template' also for this you
should load the function 'getSig.r' in my current session (renamed in
'.getSig' ) and executes this within my session to get these
signatures too.
By doing so you would increase the speed of it enormously and you can
insert signatures for user-defined functions and functions coming
from loaded libraries.
The disadvantage of it would be that you have such queries in your
current session; ok you don't see them in the TM R console window,
but if you save it workspace you would have these.
To avoid this you could think about to write the answer of the query
into a file and load it in TM.
Or, if you don't interested in the user-defined functions you could
start a new R session which loads all libraries which are loaded in
my current session.
(I don't know whether this would also work for user-defined fucntions?)
2)
If you use the approach in 1) then you can do more elaborated things
with it because of the speed.
Examples:
-If I look for for a keyword it will insert the signature like the
old version. If there is nothing found it will look for functions
which begins with the keyword like the old version.
-If I type e.g. 'data.' it lists all methods for 'data.' like
data.class, data.frame etc. but not 'dataentry'
-If I type e.g. '.difftime' you get all functions where '.difftime'
is specified like mean.difftime, print.difftime. To insert the
signature you have to select the keyword in beforehand otherwise it
shows a tooltip.
-If I have no idea about the complete name of a function you can type
e.g. '.load.'. This would look for '*load*' as regexp. Furthermore
sometimes I cannot remember whether the a function is called
'shownames' or 'showNames', so you can write '.names.' and it looks
for '*names*|*Names*'.
I would use periods for '.foo.' for indicating this because it will
be caught be Ruby's getword function.
Of course you can do more things:
-You could catch the 'apropos()' function and run it in TM and print
the result as pop down menu
and and and
What do you think about it?
To change to code would be relatively easy.
Best,
-Hans
Dear group,
Thanks for your excellent PyMate. Unfortunately I have started using
shelve to save intermediate results and have found a bug. Try the
following simplest script. (which uses the underlying problem pickle)
Please can somebody check that the error below occurs on the minimum
script that I have. I have copied the PyMate output below. I
particularly want to know if I have corrupted my python bundle in
some way.
This script runs without error when using the normal textmate command
=============
import pickle
class testobject(object):
pass
pickle.dumps(testobject())
=============
HIDE STDERR SHOW STDERR
Python 2.4.3 - PyMate r5848
For comments contact the author.
The regular Python interpreter can be invoked using ⌘⇧R.
>>> shelvetest.py
forcing redraw!!! don't remove
PicklingError: ("Can't pickle : it's not found as __main__.testobject",)
Traceback:
function module body
in shelvetest.py at line 6
function dumps ⎋
in pickle.py at line 1386
function dump ⎋
in pickle.py at line 231
function save ⎋
in pickle.py at line 338
function save_reduce ⎋
in pickle.py at line 415
function save ⎋
in pickle.py at line 293
function save_tuple ⎋
in pickle.py at line 576
function save ⎋
in pickle.py at line 293
function save_global ⎋
in pickle.py at line 760
Thanks
---
Nigel King
Hi,
I just thought about a tiny improvement regarding to display plots in
Preview.
If I want to plot something, Preview opens it. Fine. After doing that
I want to change the plot for instance. The new plot will be
calculated but Preview still displays the old one. I have to 'Revert'
it or close it before running the R script.
To make a quasi-update automatically here's a suggestion:
________________
defaults write /Applications/Preview.app/Contents/Info
NSAppleScriptEnabled -bool YES
P=$(osascript -e 'tell application "System Events" to (name of
processes) contains "Preview"')
if [ "$P" == "true" ]; then
osascript <<-AS2 &>/dev/null
tell application "Preview"
close every window
end tell
AS2
fi
"$TM_BUNDLE_SUPPORT/tmR.rb"
________________
Explanation:
'default write' has to execute only once to enable AppleScript in
Preview. So you can comment it out if set.
The next line checks whether Preview runs or not.
If Preview is running I close every window in Preview. This is a kind
of a small hack because AppleScript returns a warning 'missing
value', so I send it to the nirvana.
Both AppleScripts could be replaced by changing tmR.rb directly.
I.e., if tmp_dir is not empty and Preview is running (system(ps -aux
| grep Preview)) then call an AppleScript to close every window.
On the other hand it would be nice to have an easy way to set pdf()'s
'onefile' argument in order to be able to print all plots in one pdf.
Maybe solvable by using a TM variable?
Any comments?
All the best,
Hans
Sorry for the n00b questions, this is all new to me :)
I'm working on the blogger bundle, and saw that when I make end user
changes, those are mirrored into App Support, which rocks!
However, I'm tinkering with the ruby stuff (like I want it to upload
into /images/) just getting my feet wet and really don't want to be
mucking around inside of the app's bundle. Is there any way to
locally override the bundle file in App Support?
Thanks!
Steve
I'm trying to put together a grammar and having a hard time getting
the pattern matching right.
The line I'm interested in will be in the following format--
KW: [any text except a percentage sign can go in here] % (fold)
What I want to do is apply the scope comment.line.percentage from the
% sign to the end of the line, and variable.notes to everything in
between KW: and the percent sign. I also want to be able to use
Markdown-style italics within the variable.notes section.
Here is the patterns block as I have constructed it thus far:
patterns = (
{ name = 'comment.line.percentage';
match = '%.*$';
},
{ begin = '^KW:';
end = '% \(fold\)|$';
patterns = (
{ name = 'markup.italic.notes.variable';
match = '\*[^\*]+?\*';
},
);
contentName = 'variable.notes';
},
{ name = 'markup.italic.notes';
match = '\*[^\*]+?\*';
},
);
This does everything correctly except the % (fold) only acquires the
scope of the whole grammar and not the comment scope. Anything
following a percentage sign on a line that doesn't begin with KW: is
matched fine.
Any help on how to construct the grammar to match the end of this
line would be appreciated!
Colin Hahn
»Geben Sie mir Kaffee, dann mache ich Phänomenologie daraus.«
"Give me my coffee so that I can make phenomenology out of it." --
Edmund Husserl
ok it appears this was only tested on WordPress according to the
comments. :)
I duplicated "Category" into "Category MT" and changed the xmlrpc
call to:
blog_id = cred.blog_id
res = [{'categoryName' => cred.username},{'categoryName'=>'two'}]
res = TextMate.call_with_progress(:title => "Fetch
Categories", :message => "Contacting Server “#{cred.host}”…") do
cred.client.call("mt.getCategoryList", blog_id, cred.username,
password)
end
Now I get a list of categories! However they are not posted, because
MT does all of its category stuff with IDs. So more work is involved.
I guess nobody is using the Blogging bundle with MT?
Steve
Hi everyone,
I'm trying to run a ruby script via Cmd-R, and I get this error:
RubyMate r6189 running Ruby r1.8.4 (/usr/local/bin/ruby)
>>> symlink_dotfiles.rb
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:39:in
`filter_stdout': undefined method `test_script?' for nil:NilClass
(NoMethodError) from /Users/sean/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:59:in `emit_html' from
/Users/sean/Library/Application
Support/TextMate/Support/lib/scriptmate.rb:53:in `emit_html' from
/Applications/TextMate.app/Contents/SharedSupport/Bundles/Ruby.tmbundle/Support/RubyMate/run_script.rb:73
The script runs fine in the shell, using the same ruby executable.
Any idea where something went wrong?
Thanks!
Sean
Am checking out textmate (am a 10 year bbedit user). So far I love
what I see, tho I have much to learn.
I am trying the blogging bundle with movable type 3.33 (I upgraded
from 3.2 just for this issue, but that didn't help. At least I got a
better blog out of it :))
I can retrieve posts fine.
When I make a new post and try cat tab, I get:
/usr/lib/ruby/1.8/xmlrpc/parser.rb:154:in `fault': wrong fault-
structure: {"faultCode"=>"Client", "faultString"=>"Failed to locate
method (getCategories) in class (metaWeblog) at /usr/home/geeksrus/
public_html/cgi-bin/mt/extlib/SOAP/Lite.pm line 2180.\n"} (RuntimeError)
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:562:in `tag_end'
from /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:26:in `parse'
from /usr/lib/ruby/1.8/rexml/document.rb:171:in `parse_stream'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:722:in `parse'
from /usr/lib/ruby/1.8/xmlrpc/parser.rb:462:in `parseMethodResponse'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:410:in `call2'
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in `call'
from /tmp/temp_textmate.GnKX4C:46
from /tmp/temp_textmate.GnKX4C:45:in `popen'
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/
progress.rb:11:in `call_with_progress'
from /tmp/temp_textmate.GnKX4C:45
MarsEdit works fine.
Thanks and I look forward to learning more about TextMate!
Steve
Hi,
this already cropped up in the list: sometimes
the Latex bundle does not catch errors which
are however catched by TeXshop (and by
collaborators :). But if you look into the
.log file you see that the error was correctly
identified by TeX, so the problem must be in
the bundle.
To reproduce, create a new .tex file containing
\documentclass{article}
\begin{document}
\begin{equation}
\frac a b }
\end{equation}
\end{document}
(notice the unmatched brace).
If you save the file as "a.tex" and
run CMD-R, the error is caught (catched?).
Now the fun: save the file as "a-b.tex"
(a hyphen must be in the name) and run
CMD-R again. The error is not caught
(but is reported in the a-b.log file).
So Haris: this has something to do with
how the bundle handles files. Or not?
Piero
PS happy new year everybody!
It stopped working for me. I reinstalled and it still does not work.
I want to keep all my files in Markdown and convert to html ad back
to markdown for saving.
If I Shift-Apple-} it deleted the highlighted html
If I Shift-Apple-} the spinning wheel turns for a moment and nothing
changes.
Can anyone help.
Hi,
Regarding to the R-bundle command 'Command Usage':
I find this idea very good, but it supposes that on every Mac
'texscan' is installed.
So here's my suggestion for it:
1)
I don't use Ruby, only Bash with a tiny Perl snippet. It is a bit
faster.
2)
I'm looking for HTML files, not for tex files.
3)
It could happen that the structure of a help file is inconsistent,
i.e. no 'Usage' header. If so, now it outputs the first 1100
character of the help as plain text. Maybe you find what do you are
looking for.
4)
I suppressed the error messages coming from the 'find' command
mentioning that there is no permission to do something.
Here the code:
________________
COM=`tail`
FILES=`find "${R_HOME:-/Library/Frameworks/R.framework/Resources}"/
library -name $COM.html -print 2>/dev/null`
if [ ${#FILES} -eq 0 ]; then
echo "Nothing found for '$COM'"
exit_show_tool_tip
fi
for F in $FILES
do
cat "$F" | perl -e '$a="";while(<>){$a.=$_};$a=~m/<h3>Usage<\/h3\>[.|
\n]+<pre>(.*?)<\/pre>/sim;if($1){print "Usage:\n".$1;}else{$a=~s/<.*?
>//gms;$a=~s/\n{3,}/\n\n/gms;print substr($a,0,1100)."\n[...]"}'
done
__________________
Any comments?
Best,
-Hans