parinfer-codemirror icon indicating copy to clipboard operation
parinfer-codemirror copied to clipboard

Smart mode cut/paste breaks code

Open dustingetz opened this issue 7 years ago • 1 comments

https://imgur.com/4BsYQ3e

Pasting something should not alter its semantics

dustingetz avatar Jul 28 '18 21:07 dustingetz

Test case used in video:

[:div {:class class}
 [hyperfiddle.ui/table
  (fn [ctx]
    [(hyperfiddle.ui/field [0 :reg/email] ctx (comp str deref))
     (hyperfiddle.ui/field [0 :reg/birthdate] ctx (comp pr-str deref))
     (hyperfiddle.ui/field [0 :reg/gender] ctx (comp pr-str deref))
     (hyperfiddle.ui/field [0 :reg/shirt-size] ctx (comp (fnil name :–) :db/ident deref))])
  hyperfiddle.data/sort-fn
  ctx]]

dustingetz avatar Jul 28 '18 21:07 dustingetz