This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-08
Channels
- # bangalore-clj (5)
- # beginners (6)
- # boot (66)
- # cider (48)
- # cljsrn (14)
- # clojure (699)
- # clojure-austin (2)
- # clojure-berlin (1)
- # clojure-boston (5)
- # clojure-dev (3)
- # clojure-india (7)
- # clojure-italy (24)
- # clojure-nl (5)
- # clojure-russia (33)
- # clojure-spec (30)
- # clojure-uk (64)
- # clojure-ukraine (22)
- # clojurescript (123)
- # clojurewest (1)
- # cursive (18)
- # datascript (44)
- # datomic (12)
- # dirac (46)
- # figwheel (1)
- # gsoc (5)
- # hoplon (6)
- # immutant (29)
- # instaparse (1)
- # juxt (26)
- # lein-figwheel (5)
- # leiningen (4)
- # luminus (8)
- # mount (56)
- # off-topic (60)
- # om (67)
- # om-next (1)
- # onyx (8)
- # proton (28)
- # re-frame (125)
- # ring (3)
- # ring-swagger (3)
- # specter (22)
- # testing (2)
- # unrepl (1)
- # untangled (91)
hello! I'm trying to add a little shortcut for myself to open up .proton
, specifically I want SPC-f-c
to open .proton
. I understand how to set something to SPC-f-c but I am having trouble figuring out what I should put in the :action field
if anyone knows what action I should use to open a file that would be great, even better would be some info about where to go to find the answer to this sort of question myself
but to answer your question, you can't do this from the .proton
file since you have to execute javascript and the current dotfile isn't designed to be able to do that.
So you either have to
a) Create a plugin that implements this action and exposes it (so proton can use it)
b) Modify the core layer / create a new layer, though this requires compiling
:action
is any action that is available inside atom, either from core atom or added through a plugin
do you recommend maintaining basically your own plugin that gets sourced into proton for any js needs?
and just out of curiosity why is it not possible to just write the equivalent clojure inside of .proton?
clojurescript is a compiled language that needs to get compiled to javascript first before it can be used. Adding clojurescript into .proton
would mean that we'll have to compile/parse it on the fly
a quick google gave me code snippets like this:
atom.commands.add 'atom-text-editor', 'custom:exec-and-move', ->
editor = atom.views.getView(atom.workspace.getActiveTextEditor())
atom.commands.dispatch(editor, 'hydrogen:run')
atom.commands.dispatch(editor, 'core:move-down')