Edward K. Ream <[email protected]> 于2018年10月9日周二 上午12:05写道: > > On Monday, October 8, 2018 at 7:46:01 AM UTC-5, vitalije wrote: > >> To achieve code completion, there is an interesting idea behind Nightlight >> editor. > > > I just took at the Nightlight sources. There are 5 .clj files in > src/clj/nightlight directory, and 11 files in the src/cljs/nightlight > directory. Most files are less than 100 lines long. The only files larger > than 100 lines are: > > components.cljs: 364 lines > editors.cljs: 350 lines Nightlight/editors.cljs at master · oakes/Nightlight https://github.com/oakes/Nightlight/blob/master/src/cljs/nightlight/editors.cljs
short not amazing for clj, just the JVM ecology: (ns nightlight.editors (:require [paren-soup.core :as ps] [mistakes-were-made.core :as mwm] [clojure.string :as str] [nightlight.state :as s] [nightlight.completions :as com] [nightlight.repl :as repl] [nightlight.constants :as c] [nightlight.control-panel :as cp] [nightlight.ajax :as a] [nightlight.watch :as watch] [goog.functions :refer [debounce]] [reagent.core :as r] [cljsjs.codemirror] [cljsjs.codemirror.mode.css] [cljsjs.codemirror.mode.javascript] [cljsjs.codemirror.mode.markdown] [cljsjs.codemirror.mode.sass] [cljsjs.codemirror.mode.shell] [cljsjs.codemirror.mode.sql] [cljsjs.codemirror.mode.xml] [goog.string :refer [format]] [goog.string.format] [goog.dom :as gdom]) (:import goog.net.XhrIo)) in fact, nightlight like Ajax, just make up existing software as new feature. Leo is the only creater for literature programm in Python ecology, so had to build everything need. > core.clj: 195 lines > control_panel.cljs: 186 lines > > This is amazing. > > Edward > > -- > You received this message because you are subscribed to the Google Groups > "leo-editor" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/leo-editor. > For more options, visit https://groups.google.com/d/optout. -- life is pathetic, go Pythonic! 人生苦短, Python当歌! 俺: http://zoomquiet.io 授: http://creativecommons.org/licenses/by-sa/2.5/cn/ 怒: 冗余不做,日子甭过!备份不做,十恶不赦! KM keep growing environment culture which promoting organization learning! -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
