Skip to content

Instantly share code, notes, and snippets.

@kurogelee
Created June 3, 2014 18:05
Show Gist options
  • Save kurogelee/825801d0ccfaf8db30c7 to your computer and use it in GitHub Desktop.
Save kurogelee/825801d0ccfaf8db30c7 to your computer and use it in GitHub Desktop.
Light Tableでマルチカーソルの位置を取得する ref: http://qiita.com/kurogelee/items/c285e9874c77555918cd
(4 4 4 13 5 8 5 7 7 0 7 66)
(ns sample.core
(:require [lt.objs.editor :as editor]
[lt.objs.editor.pool :as pool]))
(do (range 2) (range 4)
(map - (range 6)))
(def select (.listSelections (editor/->cm-ed (pool/last-active))))
(.. (first select) -anchor -line)
(for [s select
ah ["anchor" "head"]
lc ["line" "ch"]]
(aget s ah lc))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment