Created
June 3, 2014 18:05
-
-
Save kurogelee/825801d0ccfaf8db30c7 to your computer and use it in GitHub Desktop.
Light Tableでマルチカーソルの位置を取得する ref: http://qiita.com/kurogelee/items/c285e9874c77555918cd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(4 4 4 13 5 8 5 7 7 0 7 66) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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