cursive

Ivar Refsdal 2025-10-08T07:48:08.119049Z

I sometimes like to sort vectors in a .clj file. I can do sort lines in IntelliJ, but that requires something like:

(def omit-stacktrace-frames
  [#"aaaa.*"
   #"aero.*"
   #"aleph.*"
   #"bidi.*"
   #"clj-http.*"
   #"clojure.*"
   #"cognitect.test-runner.*"
   #"com.stuartsierra.component.*"
   #"java.*"
   #"manifold.*"
   #"org.apache.*"
   #"reloaded.*"
   #"slingshot.*"
   #"sun.*"
   #"yada.*"
   #"zzzz.*"])
where I select everything but #aaaa and #zzzz. Has anybody got a better suggestion so that I don't need those dummy values? Something like sort selection (not lines) / selected text?

Ivar Refsdal 2025-10-09T12:05:14.906039Z

Thanks @imre, that worked great!

๐ŸŽ‰ 1
imre 2025-10-08T11:26:52.453129Z

I use the String Manipulation plugin, which has a Sort Tokens... action

๐Ÿ‘ 1
๐Ÿ˜ 1
๐Ÿงก 2
cfleming 2025-10-08T20:01:57.181599Z

Nice! I didn't know about that one.

imre 2025-10-08T20:07:40.450389Z

I think I found it back in the day when there wasn't a Cursive action to sort required namespaces