Hacker News new | past | comments | ask | show | jobs | submit login

AFAIK there's no keyboard shortcut that selects the whole block (taking block to mean a multi-line chunk of code, rather than a closure).

What you can do is put empty (or even non-empty!) comments between chunks of code, double-click just after the comment and everything up to (but not including) the start of the next comment will be selected.

  ""
  myFoo do: [:each |
      each bar
  ]
  ""
... and so on.

Many years ago someone did produce a set of vim key bindings for some version of Squeak (ancestor of Pharo), never tried it and I've no idea how well it would work under Pharo. Googling for vim squeak will get you some starting points.




you dont need to do that as I replied above. Using my approach will automagically select the whole block and evaluate it without having to touch the mouse.


Thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: