cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
588 stars 7 forks source link

move caret to next symbol #1855

Open CmdrDats opened 7 years ago

CmdrDats commented 7 years ago

I find the default move to next word (alt-arrow) with clojure code so cumbersome that I don't end up using it. It would be great if it can just skip to the start of the next symbol (ignoring parens), ie. instead of like this (| markers where the cursor traverses)

|(|defn |merge|-|rows |[|items |{|:|keys |[|rows|] |:|as |item|}|]|
  |(|reduce |#|(|conj |% |(|merge |item |%|2|)) |items |rows|))|

it would traverse as:

|(|defn |merge-rows [|items {|:keys [|rows] |:as |item}]
  (|reduce #(|conj |% (|merge |item |%2)) |items |rows))

It just feels like this mode would make the most sense in your head and you can nearly instantly get a feel for how much you'd want to move forward or back to get where you want..

CmdrDats commented 6 years ago

lol, I was about to open up another issue for this now, but found the old one I reported xD - hitting this frustration again now that I have more key-space thanks for the smart-mode parinfer