Hi,
imagine I have two documents open for Ruby or R. I wrote some scripts and I know that these scripts are running for a while. I select one doc and press APPLE+R and I switch to the other one and I press APPLE+R. Fine. I see two HTML output windows working. But just in the moment I switched to the second doc to execute it, the first script finished its job. Thus my script from the second doc will be shown in the same HTML window for the first document. And I had no chance to read the result or error message.
How can I get rid of it. I thought maybe by naming the HTML windows differently. But what will be the best way? Add a the starting time or the name of my doc window?
But this leads to the problem that I want to have one HTML window for one script. I do not want several HTML windows hanging around, I do not know which belongs to which.
Is that possible in some way?
Many thanks in advance,
--Hans
On 18 Apr 2008, at 16:23, Hans-Joerg Bibiko wrote:
[...] But this leads to the problem that I want to have one HTML window for one script. I do not want several HTML windows hanging around, I do not know which belongs to which.
Is that possible in some way?
The window is tied to the commands UUID so the same command cannot get more than one window open unless the already window is busy.
I take it you would be happy with a per-command setting for whether the window should be re-used globally or only for the current file!?!
Not sure I will actually add such option though, as I have something else in mind that might remedy your need for such option.
On 21 Apr 2008, at 17:16, Allan Odgaard wrote:
On 18 Apr 2008, at 16:23, Hans-Joerg Bibiko wrote:
[...] But this leads to the problem that I want to have one HTML window for one script. I do not want several HTML windows hanging around, I do not know which belongs to which.
Is that possible in some way?
I forgot to mention, this is not an urgent request ;)
The window is tied to the commands UUID so the same command cannot get more than one window open unless the already window is busy.
Ahh, I see.
I take it you would be happy with a per-command setting for whether the window should be re-used globally or only for the current file!?!
Well, it is not easy ;) The current behaviour is actually perfect. But there are some cases where it would be nice to have an option to bind the HTML output of a scriptmate to one particular HTML window. To switch this behaviour globally to "always open a new HTML window" is not a good idea I mean, because then one would have many such windows open. I have in mind something like a command exit_show_html("A NAME"). If a name is given the output will be written into that HTML window, if not everything behaves like now.
Not sure I will actually add such option though, as I have something else in mind that might remedy your need for such option.
As I've already mentioned, it is not urgent. TextMate breaks in on me every single day, thus I can wait ;)
Thanks,
--Hans