This post originated from an RSS feed registered with Python Buzz
by Ng Pheng Siong.
Original Post: Keyboarding Squeak
Feed Title: (render-blog Ng Pheng Siong)
Feed URL: http://sandbox.rulemaker.net/ngps/rdf10_xml
Feed Description: Just another this here thing blog.
I haven't played with Squeak as much as I want to. Squeak is a world
unto itself - Squeak runs within a single native windowing system's window
and all its windows within said native frame window are managed by Squeak's
Morphic window system. When programming, I'm used to cycling thru windows
using alt-tab, whether these are LispWorks' REPL and editor windows, or vim
and a shell when programming in Python. I can't do that with Squeak - I
find myself using the mouse for windowing operations frequently and it
breaks my programming rhythm.
Until I discover SVI. ;-) Since I've set up SVI as the default editor,
the Squeak workspace morph is also SVI-enabled. This means I can switch
between workspace and browser method panes entirely via keyboard. Not quite
alt-tab or vim's ":ls" and ":sb", but close enough.
Next, SUnit. I want to drive Test Runner via keyboard. In workspace,
(tr := TestRunner new) openAsMorph.<alt-s>di
"<alt-s> di" is the "do it" keychord: This pops up a Test
Runner window. Next,
tr selectedSuite: 4.<alt-s>di
This selects the Association test suite. Then,
tr runOneTest.<alt-s>di
This runs the selected test suite; the TestRunner GUI updates itself as
the tests run.
I envisage subclassing TestRunner with methods to load and invoke my
specific test suites only, allowing me to ignore all other test suites
that happen to exist within my Squeak world.