Login  Register

Re: A keyboard controlled code editor, how difficult would that be?

Posted by philippeback on Sep 22, 2015; 7:52am
URL: https://forum.world.st/A-keyboard-controlled-code-editor-how-difficult-would-that-be-tp4851368p4851454.html

Hi Stephan,

I made it work nicer with the dark theme.

Inline image 1

I used a it to do that, and faced a couple issues:

- there was a MNU popping up for some selected thing, I implemented the missing thing by copying it from workspace and it went smooth, autocompletion working.

- the cards aren't picking up changes done elsewhere, nor are they saving the contents back to the system. Ah, I wanted to use it for a lot of coding already! Peter is right, no more picking around when focusing on one interaction.

- I'd love being able to move to the class of the selected card

There is a lot of good stuff in this thing, please push forward!

I've put the code in: 

http://www.smalltalkhub.com/#!/~philippeback/HOExtras/packages/NewUI

Phil


On Mon, Sep 21, 2015 at 8:57 PM, Stephan Eggermont <[hidden email]> wrote:
When experienced (non-smalltalk) developers come to Pharo, they often complain about the (perceived) lack of keyboard control. Spotter has made it easy to open new browsers and inspectors, but navigating between all the open windows is still mostly done with the mouse.

What would happen if we create an state-full interface, showing code as cards, and explicitly switch between navigating and editing?

https://vimeo.com/139960287

Drag some methods to the code panel, click on it and start editing.
Esc switches between navigation and editing, when navigating switches enter between the collapsed and expanded view of a card. The arrow keys select other cards, and using shift a card can be moved.

How much code do we need for that? Well, the prototype fits in 6 columns on an UHD screen.

Gofer it
  smalltalkhubUser: 'StephanEggermont' project: 'Documentation';
  configurationOf: 'NewUI';
  load.

CodePanel new openInWindowLabeled: 'CodePanel'

What needs fixing: navigating over empty columns.

Stephan