proton

https://github.com/dvcrn/proton
dvcrn 2016-08-09T01:19:04.000175Z

it was a variation with big tabs before but we reverted it. Most people seemed to prefer smaller tabs The ideal solution would be to not have tabs at all and treat open tabs like buffers like in other editors. You navigate with SPC b b + SPC tab and fuzzy jump between open files

dvcrn 2016-08-09T01:19:13.000176Z

though most people didn't get that ๐Ÿ˜›

bazzy 2016-08-09T07:28:42.000178Z

Hello, fellow protonists ๐Ÿ˜‰

spectre 2016-08-09T07:30:45.000179Z

hi

bazzy 2016-08-09T07:31:04.000180Z

Please, help me to resolve configuring issues with proton. How I should write proton config statement, that tranforms to that block in config.cson:

".clojure.source":
  editor:
    tabLength: 1

spectre 2016-08-09T07:33:00.000181Z

hmm

spectre 2016-08-09T07:33:01.000182Z

let me see

spectre 2016-08-09T07:37:03.000187Z

@bazzy: you would probably have to do something like [โ€œ.clojure.source.editor.tabLengthโ€ 1]

bazzy 2016-08-09T07:38:15.000189Z

Let me check

bazzy 2016-08-09T07:40:26.000190Z

Nah, doesn't work. It transforms into the:

"":
    clojure:
      source:
        editor:
          tabLength: 1

spectre 2016-08-09T07:40:42.000191Z

hmm

spectre 2016-08-09T07:40:54.000193Z

yea looks like this is a problem then, you have an edge case

spectre 2016-08-09T07:41:24.000194Z

I would ask @dvcrn or open up an issue

bazzy 2016-08-09T07:42:42.000195Z

I'm surprised, because any clojure-language package configs should be written in that ".clojure.source...." form

bazzy 2016-08-09T07:43:17.000196Z

How do you guys reconfigure those defaults for clojure-language?

spectre 2016-08-09T07:43:30.000197Z

yea not sure, not exactly the pro here

dvcrn 2016-08-09T07:44:09.000198Z

hrrm I'm pretty sure we had this problem before

dvcrn 2016-08-09T07:44:12.000199Z

ping @geksilla

dvcrn 2016-08-09T07:57:50.000200Z

I knew we had that before!

dvcrn 2016-08-09T07:58:22.000201Z

@bazzy, @spectre: use

["editor.tabLength" 2 {:scopeSelector [".source.clojure"]}]
apologies for not having documented this earlier

dvcrn 2016-08-09T08:00:17.000203Z

https://github.com/dvcrn/proton/pull/169

๐Ÿ‘ 1
bazzy 2016-08-09T08:02:26.000205Z

@dvcrn Thanks a lot, it helps ๐Ÿ‘

dvcrn 2016-08-09T09:26:33.000206Z

@bazzy: no problem! You can use the scopeSelector as well to apply the same options to multiple scopes. Just add them to the array

2016-08-09T10:53:04.000207Z

I'm using Proton with Atom 1.11. It was too slow to use before that. Great work done with Proton by just a handful of you guys. Much appreciated ๐Ÿ™‚

2016-08-09T10:56:54.000208Z

@dvcrn: Can I create private layers in proton like in spacemacs?

dvcrn 2016-08-09T11:22:58.000209Z

@ikhthiandor: yes and no. You canโ€™t put them into a directory and let proton read it because clojurescript is a compiled language. But you can clone fork+clone the project, create a new layer and run lein run -m build/release and it compiles it with your newly created layer

2016-08-09T11:51:32.000211Z

ok. thanks for clarifying

2016-08-09T15:22:11.000212Z

It seems like it should eventually be possible to have a bootstrapped clojurescript compiler for loading cljs at runtime, right?

dvcrn 2016-08-09T15:24:47.000213Z

that is the goal, yes

dvcrn 2016-08-09T15:24:59.000214Z

but last time I checked bootstrap cljs was still too new

2016-08-09T15:27:11.000215Z

yeah. Having an atom setup for it would be awesome though. I saw that proto-repl has a self hosted cljs repl, but it is unclear how useful it is yet

dvcrn 2016-08-09T15:27:28.000216Z

if you have experience with it, please. We could definitely need that knowledge ๐Ÿ™‚

2016-08-09T15:29:50.000217Z

haha, I hacked replumb to let me use the compiler piece rather than just eval in the browser, but I barely understood how I actually got it working

dvcrn 2016-08-09T15:45:03.000218Z

it would already help a lot if we could turn .proton from edn into a real cljs file that allows anonymous function definitions. if we read that with bootstrap and get the functions to be useful it would be huge

dvcrn 2016-08-09T15:45:46.000219Z

we could start shifting more power into .proton like allowing keybindings to directly execute anonymous functions that receive some of the atom context (like workspace, etc). That would be the first step in direction โ€œprivate layers"

spectre 2016-08-09T19:54:22.000220Z

@ikhthiandor: how much of a speed boost are you noticing with atom beta vs atom? I definitely notice that the space menu opens up and move a lot faster, and some of the UI just feels a lot faster