I'm currently using the Blogging Bundle to post to a WordPress 2.4
blog. I'm not entirely sure if the problem I'm experiencing is on the
WP or the TM side of things (or someplace in between), but it
manifests itself within (and so far, only within) TM, so I thought I'd
start here. If these questions would be better directed elsewhere,
please let me know.
After posting via TextMate, the post gets sent back down to TextMate
with various meta-data filled in. Among this meta-data is the date
field. This date is being offset back by 4 hours, although the actual
post within WP has the correct time.
For instance:
* I create a post within TM at 11:04:41 -0400, and post it to my blog.
* The post, within wordpress, has a post date of 11:04:41 -0400
* The post that's returned to TM, however, now has a Date of 07:04:41
-0400
This rollback appears to be directly related to the time zone as
defined in WordPress. If I change my time zone to NDT (-0230), then
the time that appears on the post inside TextMate is rolled back by
2.5 hours:
* I create a post within TM at 11:04:41 -0400, and post it to my blog.
* The post, within wordpress, has a post date of 11:04:41 -0400
* The post that's returned to TM, however, now has a date of 08:34:41
-0400
The issue is that if I then update the entry and repost via TextMate,
I need to manually adjust the time on the entry, or it will now be
back-dated within WordPress as well. I frequently revise posts after
they've been published, and depending on the time of day, this
behaviour can even result in my permalinks being changed.
I also downloaded another blogging client (MarsEdit), and attempted to
re-create the problem there. Other Blogging Client displays the same
date/time as is stored in WordPress; reposting the entry does not
cause the date/time in Other Blogging Client to change.
Which leads me to suspect that the problem is somehow specific to
TextMate or the Blogging Bundle.
I'm running TextMate Version 1.5.7 (1455) if it matters. I'm not sure
which version of the Blogging Bundle I'm using, as it doesn't seem to
advertise that anywhere that I can see.
My thanks in advance for any pointers or suggestions anyone may be
able to offer.
Gwen
Hi,
I do not know whether this is interesting for other users as well,
but I find it's worth to have a small note on it.
Up to now TM doesn't have the chance to do something when it starts.
But there is an easy way to trigger a tmCommand or whatever.
A concrete example:
I want to open TM and it should start Rdaemon automatically.
Solution:
I wrote a tiny AppleScript with Script Editor:
tell application "TextMate"
activate
tell application "System Events" to keystroke "r" using {control
down,command down,option down}
end tell
and I save it as an application with the name "TM_Rdaemon" (if you
want, customize the icon ;). Now you put this app to any location or
drag'n'drop it to the Finder's toolbar.
If you invoke TM_Rdaemon.app it starts TM and it executes the key
combo CTRL+OPTION+APPLE+R which is a shortcut to open Rsession.proj
and to start Rdaemon.
To generalize it a bit one can also use this simple approach to
trigger a auto-start-up script. The only thing to do is to create a
tmCommand, let's say AUTOSTART, with the desired commands you want to
call after TM started and bind it to a UNIQUE key combo without
setting a scope.
After doing it, change the above mentioned AppleScript and
change ...to keystroke ... to your UNIQUE key combo.
Then you can change the AUTOSTART tmCommand easily to trigger some
stuff, e.g. open the Bundle Editor and open a specific project or
whatever; or open a file and set it to specific grammar language.
Everthing is done by using AppleScript's '"System Events" to keystroke'.
At least for me, it saves sometimes a bit time.
[BTW Is this worth to mention it in TM's wiki "How to > AppleScript" ?]
Cheers,
--Hans
I have a question about comment blocks in Java and possibly a bug with
the scope.
consider this (foo.java):
/**
* This class interfaces with the native Cpp Library to model a jet
engine.
* It provides methods to set input parameters and retrieve the state
of the
* engine via a list of output values.
*
* @author Thomas Krajacic
* @version 1.0
*/
when I put the cursor somewhere inside the first paragraph and select
from the menu
Edit > Select > Current Scope
The selection is missing the first 'T' and starts with the 'h'.
Anyway. There used to be this little command called "show current
scope" but I can't find it anymore.
Is it gone? I saw it in one of the first screencasts. (The shortcut he
used was Ctr-Shift-P, but typing that
actually performs the same thing as Shift-UpArrow... just selecting
the line from the cursor back to one line above)
Furthermore there was this episode [Scope Based Customization] where
Allan showed
the snippet to make returns inside a comment block automatically
insert an asterisk at the beginning of the line.
This has not been implemented yet? (Still something to create
yourself? Admittedly really simple but still...)
I already suspect that I have somewhat of a corrupt Textmate Bundle
maybe because I can't find those things.
I use the svn checkout to get the latest bundles and in my users
library/application support, there is no
Textmate Bundle that would override the checked out version.
Maybe someone can try the selection thing out and shed some light on
the snippet inexistence for me.
Thanks,
Thomas
Hi
I'm writing a Bundle to integrate RubyStacks in TM, the first release is
almost finished. However, I'm stuck with one feature:
One of the bundle commands is supposed to start mysqld. It's working so far,
but mysqld does not detach from the process and thus the (Ruby) script hangs
TM until killed. I've tried all kinds of things like calling it in backticks
`/path/to/mysqld`, or forking/detaching, even `nohup /path/to/mysqld &`. No
matter what I do, mysqld doesn't detach from the script launched from within
TM.
Any ideas why?
Thanks, -sven
--
View this message in context: http://www.nabble.com/Starting-mysqld-from-Bundle-tp16117091p16117091.html
Sent from the textmate users mailing list archive at Nabble.com.
Why is this not working for me?
When I use a \ref{} and press escape nothing happens except a sound
from the computer.
How can I track down the problem?
Christopher
*****************************************************
Department of Computer Science, University of Sheffield
Greetings list members,
Does anyone have any applescripts or information on enabling tiling
and cascading TextMate windows? I'm hoping to find someone on this
list who has a simple expedient or barring that finding out that it
isnt currently possible. Then take it from there. Thanks all~
~James
On Mon, Mar 17 Mar 2008, at 16:33, Hans-Joerg Bibiko wrote:
> I changed the code for it a bit in that respect.
>
> Now you can select the function declaration and send it to the
> Rdaemon, switch to the Rdaemon doc, and you can use that function
> (the Rdaemon console is not "messed up", error messages could be seen
> with opt+apple+A 2).
> ...
> Of course, if there is a need to have also/only the "old" behaviour I
> can add/change this. Any comments?
Ah, I see. Interesting approach. I do like that in some circumstances.
Other times, however, it is nice to get some immediate feedback on
errors and/or R output when sending selections of text to Rdaemon. I
guess the disadvantage is that you can't have multiple console windows
open without consequences. (Although I've never found myself doing
that.)
Might be nice to simply have two bundle commands: one to send silently
and one to update the console and output the result.
This new behaviour reminds me of the Emacs + ESS command 'evaluate
this line/region' without switching focus. On that note, as an
alternative, would it be possible to have a selection sent to the
console, the output displayed, and the focus shifted back (or always
staying on) the R source code window? I would find that quite useful.
Thanks for all your work!
Sean
> all three R bundles (R, R Console (Rdaemon), R Console (R.app)) are now uploaded to macromates' svn repository (Review trunk).
First of all, thank you for the continued development of these
excellent bundles!
When using these new versions of the Rdaemon and R bundles, the first
time I send code to Rdaemon from an R file, it works fine. After that,
however, I can't send any more code (i.e. nothing happens) until I
kill and restart the Rdaemon. The Rdaemon console continues to
function on it's own. Sending code to R.app works fine.
It works fine for me with the previous versions of these bundles.
This is R 2.6.1, TextMate 1.5.7 (1455), OS X 10.5.2.
Any ideas?
Cheers,
Sean
Hi,
all three R bundles (R, R Console (Rdaemon), R Console (R.app)) are
now uploaded to macromates' svn repository (Review trunk).
- to install them simply delete them using the Bundle Editor and
restart TM.
- have a look at http://wiki.macromates.com/Main/SubversionCheckout
for details how to checkout
- an example script
export LC_CTYPE=en_US.UTF-8
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
svn co 'http://macromates.com/svn/Bundles/trunk/Review/Bundles/R
Console (R_app).tmbundle'
svn co 'http://macromates.com/svn/Bundles/trunk/Review/Bundles/R
Console (Rdaemon).tmbundle'
svn co 'http://macromates.com/svn/Bundles/trunk/Review/Bundles/
R.tmbundle'
- reload Bundles
Changes:
1) R
- web search for the current word using RSeek.org
- if Rdaemon runs Send Doc/Selection to Rdaemon simply sends the code
to R without opening console.Rcon
2) Rdaemon
- starts faster
- Graphic Manager (prototype) opt+apple+G 1
If one has opened several graphic devices (x11, png, quartz, etc.)
the Graphic Manager will display previews of all devices (not yet for
pdf() or postscript() and the original devices are still open). One
can click on a preview to set it to the current device, one can close
a device (or all), and one can save a device as pdf, eps or as 150
dpi png, jpeg, tiff, pict, bmp, gif, sgi, jpeg 2000, tga, psd in
color or as grayscale. The preview by itself is a pdf, thus one can
drag&drop it to a location.
(Feedback is highly welcomed!)
- second syntax highlighting "Plain" to suppress the highlighting of
R's output
- and some minor fixes
Have fun,
Hans
Would it be possible to have something like flymake (http://flymake.sourceforge.net/
) for TextMate?
If it's not currently possible to build such a feature as bundle,
could it be possible in TextMate 2?
Maybe someone has already thought about this and could post some
conclusions/reasons/show-stoppers to the list.
I was a bit surprised that searching for "flymake" in the list
archives and the wiki didn't yield any results.
Of course, "flymate" comes to mind as a the natural name for such a
functionality. :-)
-Jojo