Elektrine lite

← Feed

@chandlerc@hachyderm.io

Post #3129175

2026-05-21 05:05 UTC

FYI, https://ddbeck.com/notes/jj-git-push-bookmark-template/ is pretty nice! I wrote up my own slugify function though: ``` "slugify(str)" = ''' truncate_end( 40, str.first_line() .replace(regex:'\. .*$', '') .replace(regex:'^\[([^\]]+)\]\s+', '$1/') .replace(regex:'[^[[:alnum:]] -]', '') .replace(regex:'-{2,}', '-') .replace(regex:'\s+', '-') .lower() ) ''' ``` Think I might still want some more tweaks to this, but so far quite liking a bit more details in the branch name for when I see it in various surfaces like GitHub code reviews.

Replies (0)

No replies.