clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
dharrigan 2020-11-18T06:37:57.007300Z

Good Morning!

djm 2020-11-18T06:56:55.007500Z

👋

Nicky Chorley 2020-11-18T07:20:17.007700Z

morning!

yogidevbear 2020-11-18T07:34:06.007900Z

o/

thomas 2020-11-18T08:22:42.008100Z

😼

jasonbell 2020-11-18T08:28:08.008300Z

Morning

alexlynham 2020-11-18T08:36:13.008400Z

morning

codeasone 2020-11-18T08:43:35.008600Z

Morning

mccraigmccraig 2020-11-18T09:10:57.008800Z

månmån

agile_geek 2020-11-18T09:43:01.009600Z

Bore da :welsh_flag:

2020-11-18T10:31:10.010100Z

Bore da! :flag-wales:

dominicm 2020-11-18T10:39:09.010200Z

Morning

2020-11-18T11:09:54.010400Z

Morning

2020-11-18T11:13:32.010700Z

Has anyone done one of these for clojure? https://git-scm.com/docs/gitattributes#_defining_a_custom_hunk_header

dharrigan 2020-11-18T11:16:45.011500Z

Would this help? <https://gist.github.com/amalloy/ea5eada8a5bffc722b9ba8e44b7d5e2c>

dharrigan 2020-11-18T11:17:04.011800Z

at least to get started

2020-11-18T11:18:11.012200Z

Ah interesting. I came up with this while playing around for a few minutes.

[diff "clj"]
			xfuncname = "^(\\((defmethod|def|defn|ns).*)$"

2020-11-18T11:19:45.013300Z

Though there's definitely more. And I need to figure out the regex incantation to exclude things beyond the [ so I just get the name

2020-11-18T13:16:54.018900Z

you could do something like xfuncname = "^[ \t]*(\\((ns|def[a-zA-Z0-9_-]*)[ \t]+[^[]+).*$" , assuming everything you are interested in starts with def

2020-11-18T13:27:33.019300Z

Yeah, ended up with something like that. Seems to work quite nicely: https://gist.github.com/cddr/f269b4465a823e567bd85eb3aa16ed0d

1
rlj 2020-11-18T14:30:17.019600Z

Mornin

👋 1