This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-23
Channels
- # adventofcode (4)
- # beginners (25)
- # biff (11)
- # clojure (2)
- # clojure-bay-area (1)
- # clojure-europe (5)
- # clojure-norway (2)
- # clojuredesign-podcast (4)
- # datalevin (2)
- # dev-tooling (34)
- # hyperfiddle (2)
- # missionary (5)
- # off-topic (3)
- # polylith (4)
- # rewrite-clj (13)
- # shadow-cljs (11)
- # tools-deps (1)
- # vim (1)
- # xtdb (5)
Cross-posting re structural editing: https://github.com/guns/vim-sexp/issues/32 > What I think we need is sexp-specific paste commands that do not rely on placing the cursor to achieve the desired result and that get whitespace right every time. >
sexp_paste_at_list_head
> sexp_paste_at_list_tail
> sexp_paste_after
>
> sexp_paste_after
would mean “paste after the element containing the cursor.”
> These should take a buffer and a count and paste into the counth outer sexp relative to the cursor.
> I do not know a lick of vimscript but I think I can help describe the desired UI and behavior and it doesn’t seem prohibitively complex to get it right in 99% of cases, since you pretty much never want whitespace between the enclosing bracket and the element and pretty much always want it between the element and any adjacent elements.