Fork me on GitHub
#protorepl
<
2017-01-21
>
basti04:01:27

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.

basti04:01:46

Does somebody has an idea why’s that? 🙂

basti06:01:21

ah epic found it, it needs to be in the

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

bcbradley16:01:41

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

richiardiandrea18:01:14

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

basti18:01:48

sweet I give it a go ^^

jasongilman19:01:00

@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.

bcbradley19:01:20

@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

bcbradley19:01:59

In other words the char has to be a reader macro