Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
grierson committed Aug 15, 2023
1 parent 6774ec0 commit ec13f76
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Paredit in fennel
./scripts/nfnl # To download nfnl
```

[ ] - inner select
[ ] - root select
[ ] - slurp/barf

## Unlicensed

Find the full [Unlicense][unlicense] in the `UNLICENSE` file, but here's a
Expand Down
3 changes: 3 additions & 0 deletions docs/sample.clj
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
(+ 1 2 3)
[1 2 3]
#{1 2 3 (+ 2 (+ 1 2))}

(defn foo [x] x)
(defn bar [x] x)
1 change: 0 additions & 1 deletion fnl/formedit/init.fnl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

(local find (require :formedit.find))
(local insertion (require :formedit.insertion))
(local select (require :formedit.select))
Expand Down
7 changes: 6 additions & 1 deletion fnl/spec/delete_around_spec.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
(local h (require :spec.helper))
(local select (require :formedit.select))

(describe "delete around"
(describe "delete around form"
(fn []
(before_each (fn []
(vim.keymap.set :o :af select.form)))
Expand Down Expand Up @@ -51,6 +51,11 @@
(h.setup {:content "(+ 1 (+ 2 3))" :cursor [1 0]})
(h.feedkeys :daF)
(h.expect {:content "" :cursor [1 0]})))
(it "cursor in sub form deletes root"
(fn []
(h.setup {:content "(+ 1 (+ 2 3))" :cursor [1 7]})
(h.feedkeys :daF)
(h.expect {:content "" :cursor [1 0]})))
(it "cursor in sub form deletes root"
(fn []
(h.setup {:content "(+ 1 (+ 2 3))" :cursor [1 7]})
Expand Down
10 changes: 8 additions & 2 deletions lua/spec/delete_around_spec.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ec13f76

Please sign in to comment.