protorepl

basti 2017-01-21T04:55:27.000578Z

Hi, so far proto-repl seems to be pretty good 🙂 I’m trying to change the default keybindings to my own custom ones. I modified the keymap.cson to contain

'proto-repl':
  ‘cmd-e’:'proto-repl:execute-block'
I also disabled the keybindings configuration in the proto-repl settings. But somehow my keybinding doesn’t work.

basti 2017-01-21T04:56:46.000580Z

Does somebody has an idea why’s that? 🙂

basti 2017-01-21T06:05:21.000581Z

ah epic found it, it needs to be in the

‘atom-text-editor’:
  'cmd-e':'proto-repl:execute-block'
block

basti 2017-01-21T06:07:03.000583Z

I could have just looked here https://github.com/jasongilman/proto-repl/blob/master/keymaps/proto-repl.cson ^^

bcbradley 2017-01-21T16:04:41.000585Z

Do you think the rules for block evaluation should be modified to grab a @ if it is prepended to the block?

richiardiandrea 2017-01-21T18:37:14.000586Z

@basti you can check this repo for custom conf, @seancorfield knows all the cool keybindings 😄 https://github.com/seancorfield/proto-repl-setup

basti 2017-01-21T18:37:48.000588Z

sweet I give it a go ^^

jasongilman 2017-01-21T19:49:00.000589Z

@bcbradley: yes I think it should. This is also an issue with sets and anonymous functions. It should detect the # at the beginning and include that.

bcbradley 2017-01-21T19:51:20.000590Z

@jasongilman the left parenthesis is not a legal character for symbols, numbers or values of any other kind, so by default you should just pull any char prependend to ( in a block evaluation

bcbradley 2017-01-21T19:51:59.000591Z

In other words the char has to be a reader macro