Re: selecting all text in a viewer
... select large quantities of text. What a PITA though! I'm sooo used to ^A or in emacs ^spacebar+arrowDown.
ETHO is easier hence superior, in that you don't need to 'associate a random-key with an action'. You can 'read' the instruction. I.e. it's easier to learn to push the button marked "sit", to do the action `sit`, that to have to remember if it's Ctrl/S or Alt/Z. OTOH, the few clux-actions are random and should not be remembered, but should become instinctive, like riding a bicycle. Apparently the leading HCI experts have shown that the best is icons with 'popup explanation text when the cursor hovers over the icon for a short time'. I'm infuriated that I don't know how to disable these mosquitoe-like popups on kde-3.0. Peter E. wrote
Making a "Select all" button for the pop-up menu in ET is a good little programming exercise. Yes, but I prefer a M.P which is independant of ET. And I've just confirmed that: CRGtrace.Font2MrkdVwr Courier8.Scn.Fnt ~ works with document frames too.
And it should need only one click, MM. Not two as in most commercial systems.
Well that's what my previous post was about: * set the action once, * repeat single clux to select the args * until the 'mode' is reset to normal ETHO mode. eg. 1. klux = all subsequent selected [by MR on any char/s] words [bounded by white-chars] are to take this font and colour. 2, 3...N = DoIt N+1 = restore system to normal ETHO-mode. Of course Duke would know by now the more tedious manual way of make all text of a frame have a specific font and colour:- select the whole text: MR/select from the beginning to the end if the total text exceeds a screen length, then break it into 2 frames: `Copy` to create the second frame select the beginning of the text in the top frame with MR hold <shift> while selecting the end of the text in the bottom frame with MR Confirm that the 'whole selection' is hi-lighted. ML/MR on the sample text anywhere on the screen which you want to have the selected text to copy the sample's font and colour. Using successive refinement, you off course, first confirm this on a small text selection. ----------- The cited example based on *5*.Text is quite complex: * locate the frame which is 'marked' * change all of its text's font to the new font. I'm guessing that Duke didn't make appropriate multiple steps from 'hello world' to this utility, because he needs to have better viewing of the screen to make progress? So, A2's auto-font magnification, struck me as the most obvious improvement on N-O. ----------- Re. ETHO 'trap facility': this is astounding. I doubt that the M$ & C-boys have any thing similar. I won't mention the facility to 'go directly to the source error' because I've hardly used it; but the trap-format, where the sequence of procedure-calls, before the trap, is displayed with the local variables is very powerful ! Thanks, == Chris Glur.
-----Original Message----- From: oberon-bounces@lists.inf.ethz.ch [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Chris Glur Sent: Tuesday, 5 January 2010 1:00 AM To: oberon@lists.inf.ethz.ch> Subject: [Oberon] Re: selecting all text in a viewer ... ...
Re. ETHO 'trap facility': this is astounding.
I agree it is extremely useful but it is nothing new in the Wirth world. CDC6000 Pascal had this feature way back in the mid 1970's. Then it was astounding.
I doubt that the M$ & C-boys have any thing similar.
They do but they are typically called 'post-mortem debuggers' (PMDs) rather than 'trap viewers'. Oberon microsystems have combined the concept very well with the use of 'folded text' in the trap viewer used in Windows-based Blackbox Component Builder. However, most Windows developers would scoff at the thought of using a system that *only* had a post-mortem debugging facility. They are accustomed to using Visual Studio for VB/C/C++/C# or RAD Studio for Delphi/C++ with their *interactive* source level debugging features. They give you all of that information and much more at *any* pre-determined occasion during a program execution based on breakpoints, watchpoints etc. - not just when a program crashes or fails an assertion. I use both PMDs and interactive debuggers. Interactive debuggers are seductive but unproductive. Their focus is very narrow. I find they lead to trial and error hacking instead of planned, disciplined, programming. The worst sin is to jump into the debugger to diagnose a problem before narrowing down the scope. I usually liken misuse of debuggers to: a) trying to search for a needle in a haystack without first identifying which haystack you should be looking in. b) using a microscope to look for your car when you can't remember where you parked it In the long run I find it quicker to program defensively and make judicial use of assertions to trigger a PMD when unanticipated situations occur. Regards, Chris Chris Burrows CFB Software http://www.cfbsoftware.com
On Sun, 5 Sep 2010, Chris Glur wrote:
... select large quantities of text. What a PITA though! I'm sooo used to ^A or in emacs ^spacebar+arrowDown.
ETHO is easier hence superior, in that you don't need to 'associate a random-key with an action'. You can 'read' the instruction. I.e. it's easier to learn to push the button marked "sit", to do the action `sit`, that to have to remember if it's Ctrl/S or Alt/Z.
I see your point! BUT.... You first have to know _where_ all these commands live _before_ you can 'read' them. If there existed a popup menu, or a Tool, or a Panel containing _all_ text-file editing/manipulating commands that could ever be dreamed of for use within NO, _then_ it would be a no-brainer to go down the list and 'read' a command and 'klux' (whatever that's an acronym for?) to your heart's content. In the meantime I have to grope around and find some of these commands EditTool, e.g., or create my own, I suppose. However, after 20 years of using emacs, I'm pretty darn efficient with it. And there's even a tutorial and menus just a keystroke away. Not to say that the NO environment cannot become efficient for someone - I'm sure it can, with time and practice (and Reiser's book) :)
OTOH, the few clux-actions are random and should not be remembered, but should become instinctive, like riding a bicycle.
Emacs key-bindings likewise..
Apparently the leading HCI experts have shown that the best is icons with 'popup explanation text when the cursor hovers over the icon for a short time'. I'm infuriated that I don't know how to disable these mosquitoe-like popups on kde-3.0.
Yep! They can be a real PITA...
Peter E. wrote
Making a "Select all" button for the pop-up menu in ET is a good little programming exercise. Yes, but I prefer a M.P which is independant of ET. And I've just confirmed that: CRGtrace.Font2MrkdVwr Courier8.Scn.Fnt ~ works with document frames too.
OK! Are you in the mood for sharing "CRGtrace.Font2MrkdVwr"? Sounds like a swell little tool to me.
Well that's what my previous post was about: * set the action once, * repeat single clux to select the args * until the 'mode' is reset to normal ETHO mode.
eg. 1. klux = all subsequent selected [by MR on any char/s] words [bounded by white-chars] are to take this font and colour. 2, 3...N = DoIt N+1 = restore system to normal ETHO-mode.
Don't get it!
Of course Duke would know by now the more tedious manual way of make all text of a frame have a specific font and colour:-
select the whole text: MR/select from the beginning to the end if the total text exceeds a screen length, then break it into 2 frames: `Copy` to create the second frame select the beginning of the text in the top frame with MR hold <shift> while selecting the end of the text in the bottom frame with MR
Confirm that the 'whole selection' is hi-lighted.
I _didn't_ realize that if the text was larger than what could _all_ fit in a "Viewer", that I had to make a copy to "see" the bitter end. I thought that the "copy" was a destination viewer or something. I did exactly like Chris Burrows recommended - I MR one character at the beginning of the text in the 1st Viewer; I MR a single character at the bitter end in the 2nd (copy) Viewer. &^%$#$-all happened! I kluxed till the bloody cows came home, and then threw the friggin mouse out the window, and went fishing :)
ML/MR on the sample text anywhere on the screen which you want to have the selected text to copy the sample's font and colour.
Using successive refinement, you off course, first confirm this on a small text selection. ----------- The cited example based on *5*.Text is quite complex: * locate the frame which is 'marked' * change all of its text's font to the new font.
I'm guessing that Duke didn't make appropriate multiple steps from 'hello world' to this utility, because he needs to have better viewing of the screen to make progress?
Yep! I missed the boat somewheres - and _that's a fact! BTW, have you ever tried Modula-2? I'm kinda looking at GNU M2. ;)
----------- Re. ETHO 'trap facility': this is astounding. I doubt that the M$ & C-boys have any thing similar. I won't mention the facility to 'go directly to the source error' because I've hardly used it; but the trap-format, where the sequence of procedure-calls, before the trap, is displayed with the local variables is very powerful !
I'm fairly sure that Mike Spivey's "obc" compiler ships with a GUI debugger that does the very same thing. -- Duke
-----Original Message----- From: oberon-bounces@lists.inf.ethz.ch [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Duke Normandin Sent: Tuesday, 7 September 2010 6:18 AM To: ETH Oberon and related systems Cc: crglur@gmail.com Subject: Re: [Oberon] Re: selecting all text in a viewer
I _didn't_ realize that if the text was larger than what could _all_ fit in a "Viewer", that I had to make a copy to "see" the bitter end. I thought that the "copy" was a destination viewer or something.
"copy" in this context is equivalent to using a "split-screen" editor. Any changes you make in one window are reflected in the other.
I did exactly like Chris Burrows recommended - I MR one character at the beginning of the text in the 1st Viewer; I MR a single character at the bitter end in the 2nd (copy) Viewer. &^%$#$-all happened! I kluxed till the bloody cows came home, and then threw the friggin mouse out the window, and went fishing :)
Don't say I didn't warn you - I couldn't get it to work on my Windows PlugIn Oberon either. Maybe I lost something in the translation. When your Reiser book finally arrives you might have to return it and ask for your money back ;-) P.S. I hate letting machines get the better of me (and don't enjoy fishing) so just had another go while writing this. Eureka! I got it to work by holding down the shift key when I selected the text in the second viewer. It actually highlighted all of the selected text in both viewers.
Yep! I missed the boat somewheres - and _that's a fact! BTW, have you ever tried Modula-2? I'm kinda looking at GNU M2. ;)
Most Oberon / Component Pascal developers I encounter once used Modula-2. I really liked it at the time and there were one or two things I missed when first making the changeover but I haven't felt any need to go back since. However, that might change if I decide to do some iPad development as there is an M2 compiler in development that you are supposed to be able to use with Cocoa. Regards, Chris Chris Burrows CFB Software http://www.cfbsoftware.com/modula2
On Tue, 7 Sep 2010, Chris Burrows wrote: [snip]
I did exactly like Chris Burrows recommended - I MR one character at the beginning of the text in the 1st Viewer; I MR a single character at the bitter end in the 2nd (copy) Viewer. &^%$#$-all happened! I kluxed till the bloody cows came home, and then threw the friggin mouse out the window, and went fishing :)
Don't say I didn't warn you - I couldn't get it to work on my Windows PlugIn
You did so!
Oberon either. Maybe I lost something in the translation. When your Reiser book finally arrives you might have to return it and ask for your money back ;-)
Now you tell me! :)
P.S. I hate letting machines get the better of me (and don't enjoy fishing) so just had another go while writing this. Eureka! I got it to work by holding down the shift key when I selected the text in the second viewer. It actually highlighted all of the selected text in both viewers.
Not even fly-fishing? Are you ill? ;) Just kidding... The shift key! My intuition should have homed one of my fingers right to one of those keys! Darn intuition anyway... Thanks! L8r... -- Duke
participants (3)
-
Chris Burrows -
Chris Glur -
Duke Normandin