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

`>)` does nothing in this situation

Open elzibubble opened this issue 8 years ago • 6 comments

(deftest r-account
  (let [account (first accounts)
        id (:id account)])

  (is (= account (r-account nil {:id id} nil))))

When I use >) on the closing paren of the let form, it doesn't move. Trying this without parinfer-rust works.

elzibubble avatar Apr 11 '18 15:04 elzibubble

I'm using vim-sexp, vim-sexp-mappings-for-regular-people and Neovim.

elzibubble avatar Apr 11 '18 15:04 elzibubble

Interesting. I'm not sure how to get that to work. I guess it should use paren mode after slurp and barf and other paren-preserving, indent-destroying transforms.

I will generally use >> on the last line instead to get the same effect.

I'll look into it later.

eraserhd avatar Apr 11 '18 18:04 eraserhd

I've run into this issue as well. I appreciate the >> workaround!

joephayes avatar Mar 07 '19 22:03 joephayes

I'd also like to be able to use sexp_capture_next_element, especially since I have >> mapped to something else.

Wonko7 avatar Mar 13 '19 15:03 Wonko7

it's a pity because it was otherwise very well thought, but I ended up deactivating smart mode :(

Wonko7 avatar Apr 16 '19 09:04 Wonko7

Ran into this now, workaround works for me as well but it would be neat due to muscle memory. Appreciate all the work!

emilaasa avatar May 28 '21 09:05 emilaasa