-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathelm-light.behaviors
188 lines (125 loc) · 7.09 KB
/
elm-light.behaviors
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
[[:app :lt.objs.plugins/load-js ["mode/elm.js"
"js/show-hint2.js"
"js/react.min.js"
"js/highlight.pack.js"
"elm/ModuleBrowser/moduleBrowser.js"
"DocPreview/docPreview.js"
"elm-light_compiled.js"]]
[:app :lt.objs.plugins/load-css "css/hinter.css"]
[:app :lt.objs.plugins/load-css "css/elm.css"]
[:app :lt.objs.plugins/load-css "css/graph.css"]
[:app :lt.objs.plugins/load-css "css/docpreview.css"]
[:app :lt.objs.plugins/load-css "css/inlinedoc.css"]
[:app :lt.objs.plugins/load-css "css/test.css"]
[:app :lt.objs.plugins/load-keymap "elm.keymap"]
[:files :lt.objs.files/file-types [{:exts [:elm], :mime "text/x-elm", :tags [:editor.elm], :name "elm"}]]
[:editor.elm :lt.object/add-tag :editor.elm.common]
[:editor.elm.repl :lt.object/add-tag :editor.elm.common]
[:elm.lang :lt.plugins.elm-light.clients/connect]
[:editor.elm :lt.plugins.elm-light/elm-unsupported]
[:editor.elm :lt.plugins.elm-light/elm-browse!]
[:editor.elm.common :lt.plugins.elm-light/on-eval.one]
[:editor.elm.common :lt.plugins.elm-light/eval-err]
[:editor.elm.common :lt.plugins.elm-light/eval-result]
[:editor.elm.common :lt.plugins.elm-light/repl-restart!]
[:editor.elm.common :lt.object/add-tag :docable]
[:elm.lang :lt.plugins.elm-light.clients/eval!]
;; ELM REPL behaviors
[:elmrepl :lt.plugins.elm-light.repl/repl-destroy-on-close]
[:elmrepl :lt.plugins.elm-light.repl/repl-close-parent]
[:elmrepl :lt.plugins.elm-light.repl/on-focus-repl-ed]
[:elmrepl :lt.plugins.elm-light.repl/on-show-repl-refresh-eds]
[:editor.elm :lt.plugins.elm-light/lint]
[:editor.elm :lt.plugins.elm-light/elm-lint-res]
[:editor.elm :lt.plugins.elm-light/make]
[:editor.elm :lt.plugins.elm-light/make-project]
[:editor.elm :lt.plugins.elm-light/elm-make-res]
[:editor.elm :lt.plugins.elm-light/elm-make-err]
[:editor.elm.common :-lt.plugins.auto-complete/textual-hints] ; just messes with autocomplete of elm stuff
[:sidebar.docs.search :lt.plugins.elm-light/elm-doc-search]
[:elm.lang :lt.plugins.elm-light.clients/elm-doc-search-results]
[:elm.packages :lt.plugins.elm-light.packages/show-project-packages]
[:elm.packages :lt.plugins.elm-light.packages/on-close-project-packages]
;; linter behaviors. TODO: Move to linter plugin eventually
[:editor.elm :lt.plugins.elm-light.linter/linter-result!]
[:editor.elm :lt.plugins.elm-light.linter/clear-linter-results!]
[:editor :lt.plugins.elm-light.linter/update-linter-on-editor-change]
;; Elm format
[:editor.elm :lt.plugins.elm-light.format/elm-format]
[:editor.elm.common :lt.plugins.elm-light.format/elm-format-expression]
[:editor.elm.common :lt.plugins.elm-light.format/elm-format-buffer]
;; dependency graph stuff
[:elm.graph.dependency :lt.plugins.elm-light.graph/on-show-dependencies]
[:elm.graph.dependency :lt.plugins.elm-light.graph/on-get-data]
[:elm.graph.dependency :lt.plugins.elm-light.graph/on-render]
[:elm.graph.dependency :lt.plugins.elm-light.graph/on-get-transitives]
[:elm.graph.dependency :lt.plugins.elm-light.graph/on-close-destroy]
[:tabset :lt.plugins.elm-light.graph/on-tab-resized]
;; module browser
[:editor.elm :lt.plugins.elm-light.modulebrowser/list-modules]
[:elm.modulebrowser :lt.plugins.elm-light.modulebrowser/clear!]
[:elm.modulebrowser :lt.plugins.elm-light.modulebrowser/show-project-modules]
[:elm.modulebrowser :lt.plugins.elm-light.modulebrowser/focus!]
[:elm.modulebrowser :lt.plugins.elm-light.modulebrowser/ensure-visible]
;; Doc preview
[:editor.elm :lt.plugins.elm-light.docpreview/gendoc]
[:editor.elm :lt.plugins.elm-light.docpreview/elm-gendoc-res]
[:editor.elm :lt.plugins.elm-light.docpreview/elm-docpreview]
;; New AST related behaviors
[:editor :lt.plugins.elm-light.elm-ast/update-ast-status-on-editor-change]
[:editor.elm :lt.plugins.elm-light/elm-jump-to-definition-start]
[:editor.elm :lt.plugins.elm-light/elm-jump-to-definition]
[:editor.elm :lt.plugins.elm-light/elm-doc]
[:editor.elm :lt.plugins.elm-light/elm-doc-start]
[:editor.elm :lt.plugins.elm-light.inline-doc/editor.elm.doc.show!]
[:editor.elm :lt.plugins.elm-light/elm-reload-ast]
[:editor.elm :lt.plugins.elm-light/elm-reload-ast-started]
[:editor.elm :lt.plugins.elm-light/elm-parse-editor]
[:editor.elm :lt.plugins.elm-light/elm-parse-editor-on-change]
[:editor.elm :lt.plugins.elm-light/elm-parse-editor-result]
[:editor.elm :lt.plugins.elm-light/elm-editor-disconnected]
[:editor.elm :lt.plugins.elm-light.hinter/elm-hints]
[:editor.elm :lt.plugins.elm-light.hinter/elm-hints-parser-results]
[:editor.elm :lt.plugins.elm-light.gutter/elm-gutter-exposeds]
[:editor.elm :lt.plugins.elm-light.gutter/elm-gutter-exposeds-mark]
[:editor.elm :lt.plugins.elm-light.gutter/show-elm-gutter]
;; **** Refactoring stuff *******
[:editor.elm :lt.plugins.elm-light/elm-expose-top-level]
[:editor.elm :lt.plugins.elm-light/elm-unexpose-top-level]
[:editor.elm :lt.plugins.elm-light/elm-autoimport-module-selected]
[:editor.elm :lt.plugins.elm-light/elm-autoimport-module-init]
[:editor.elm :lt.plugins.elm-light/elm-sort-imports]
;; find usages
[:elm.usages :lt.plugins.elm-light.usages/elm.find-usages]
[:elm.usages :lt.plugins.elm-light.usages/elm.find-usages.complete]
[:elm.usages :lt.plugins.elm-light.usages/on-close]
[:elm.usages :lt.plugins.elm-light.usages/clear!]
;; Module graph
[:elm.graph.module :lt.plugins.elm-light.module-graph/on-render]
[:elm.graph.module :lt.plugins.elm-light.module-graph/on-show-modules]
[:elm.graph.module :lt.plugins.elm-light.module-graph/on-close-destroy]
[:elm.graph.module :lt.plugins.elm-light.module-graph/on-move]
[:tabset :lt.plugins.elm-light.module-graph/on-tab-resized]
;; Elm test
[:editor.elm :lt.plugins.elm-light.test/elm-test]
[:editor.elm :lt.plugins.elm-light.test/elm-test-suite.init]
[:editor.elm :lt.plugins.elm-light.test/elm-test-suite]
[:editor.elm :lt.plugins.elm-light.test/elm-test-setup]
[:elm.test.dashboard :lt.plugins.elm-light.test/on-testrun-init]
[:elm.test.dashboard :lt.plugins.elm-light.test/elm-test-result]
[:elm.test.dashboard :lt.plugins.elm-light.test/elm-test-error]
[:elm.test.dashboard :lt.plugins.elm-light.test/on-close-destroy]
;; ***** Alternate autocompleter *****
[:editor.elm :lt.object/add-tag :editor.keys.normal.elm] ;; Allow overriding tab which defaults to auto-complete command in std autocompleter plugin
;; 1) Disable std autocompleter alltogether
[:editor.elm :-lt.plugins.auto-complete/intra-buffer-string-hints]
[:editor.elm :-lt.plugins.auto-complete/textual-hints]
[:editor.elm :-lt.plugins.auto-complete/async-hint-tokens]
[:editor.elm :-lt.plugins.auto-complete/show-hint]
[:editor.elm :-lt.plugins.auto-complete/remove-on-move-line]
[:editor.elm :-lt.plugins.auto-complete/remove-on-scroll-inactive]
[:editor.elm :-lt.plugins.auto-complete/auto-show-on-input]
;; 2) Add "generic" autocompleter behaviors
[:editor.elm :lt.plugins.elm-light.autocompleter.core/start-hinting]
[:editor.elm :lt.plugins.elm-light.autocompleter.core/auto-show-on-input]
]