Hi Allan,
I just noticed that the command output option ³output in new window² is deprecated in the latest builds, is something going to take its place in the future?
Chris Jenkins
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
On 14/10/2005, at 16.48, Chris Jenkins wrote:
Hi Allan, I just noticed that the command output option “output in new window” is deprecated in the latest builds, is something going to take its place in the future?
The intended replacement is 'Show as HTML', which is (with a little extra work) more powerful.
-- Sune.
Ugh. Except that's not actually useful to me.. and the extra-work would be a LOT of hassel, actually. I need a plain-text completely boring output from an external command I didn't write, and I don't want to go through the (big, in this case) hassel of putting a wrapper around.... Why can't we keep both?
On 10/14/05, Sune Foldager cryo@cyanite.org wrote:
On 14/10/2005, at 16.48, Chris Jenkins wrote: Hi Allan, I just noticed that the command output option "output in new window" is deprecated in the latest builds, is something going to take its place in the future?
The intended replacement is 'Show as HTML', which is (with a little extra work) more powerful.
-- Sune.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 14/10/2005, at 18.39, IxokaI wrote:
Ugh. Except that's not actually useful to me.. and the extra-work would be a LOT of hassel, actually. I need a plain-text completely boring output from an external command I didn't writeand I don't want to go through the (big, in this case) hassel of putting a wrapper around....
echo -n '<pre>' command_you_did_not_write 2>&1|perl -pe 's/&/&/g; s/</</g'
Why can't we keep both?
Well, I'm unlikely to remove the other one, since too much depend on it, but it's bad in so many ways (bad UI, no arithmetic for line/ column numbers, running synchronously with no in-app abort option, weird behavior on resize etc.)
On 10/14/05, IxokaI ixokai@gmail.com wrote:
Ugh. Except that's not actually useful to me.. and the extra-work would be a LOT of hassel, actually. I need a plain-text completely boring output from an external command I didn't write, and I don't want to go through the (big, in this case) hassel of putting a wrapper around.... Why can't we keep both?
Exactly my point as well. I don't want to have to include HTML <pre> wraps just to make my pure Perl code look nice to the HTML output window.
On 10/14/05, Sune Foldager cryo@cyanite.org wrote:
On 14/10/2005, at 16.48, Chris Jenkins wrote:
Hi Allan, I just noticed that the command output option "output in new window" is deprecated in the latest builds, is something going to take its place in the future?
The intended replacement is 'Show as HTML', which is (with a little extra work) more powerful.
-- Sune.
I was wondering this as well...as currently the HTML option doesn't output things correctly. For instance if you do a simple count that should look like:
1 2 3
It is instead:
123
And for longer outputs it just wraps the screen.
Robert
You'll want to wrap the output in a <pre> block, then.
On Oct 20, 2005, at 3:30 PM, Robert wrote:
I was wondering this as well...as currently the HTML option doesn't output things correctly. For instance if you do a simple count that should look like:
1 2 3
It is instead:
123
And for longer outputs it just wraps the screen.
On 20/10/2005, at 21.30, Robert wrote:
I was wondering this as well...as currently the HTML option doesn't output things correctly.
Yes it does, in HTML whitespace is collapsed, which is how it's supposed to work. Use a <pre> block for pre-formated text like yours.
-- Sune.
On 21/10/2005, at 2.37, Sune Foldager wrote:
I was wondering this as well...as currently the HTML option doesn't output things correctly.
Yes it does, in HTML whitespace is collapsed, which is how it's supposed to work. Use a <pre> block for pre-formated text like yours.
Starting with next build (which is not 576, which I just did) I've added this function to bash_init.sh:
pre () { echo -n '<pre>' perl -pe 's/&/&/g; s/</</g; s/>/>/g' echo '</pre>' }
Then it's simply a matter of writing:
«command»|pre
And the output from «command» will be shown w/o whitespace collapsing nor wrapping, and with HTML characters escaped.
On 10/20/05, Sune Foldager cryo@cyanite.org wrote:
On 20/10/2005, at 21.30, Robert wrote:
I was wondering this as well...as currently the HTML option doesn't output things correctly.
Yes it does, in HTML whitespace is collapsed, which is how it's supposed to work. Use a <pre> block for pre-formated text like yours.
Yes "I" know that. But why would I want to add the time to wrap it in a <pre> block when none of the other editors I have ever used has made me do that. Sure that works but I see it as a very unnecessary step. If it is going to replace the current way (now deprecated) which works the way you would expect it, then it should out just the way you expect it as well.
Anyway I see later on in this thread the issue has been taken care of...
On 22/10/2005, at 16.09, Robert wrote:
On 10/20/05, Sune Foldager cryo@cyanite.org wrote: Yes it does, in HTML whitespace is collapsed, which is how it's supposed to work. Use a <pre> block for pre-formated text like yours.
Yes "I" know that. But why would I want to add the time to wrap it in a <pre> block when none of the other editors I have ever used has made me do that.
Of course the TM world isn't all about what individuals are used to from their old editors :-p.
Sure that works but I see it as a very unnecessary step. If it is going to replace the current way (now deprecated) which works the way you would expect it, then it should out just the way you expect it as well.
Well.... at least HTML output should surely work as now, or it would be a very misleading name :-). Also, making HTML display preformatted text is easy, given the function Allan added to the init file.
-- Sune.