Beyond jj: config & tools ecosystem

84 points by abhin4v a day ago on lobsters | 3 comments

confusedalex | 12 hours ago

The talk can also be watched as a video on youtube [1]

[1] https://www.youtube.com/live/DFjbAsWQ9ns?si=RrFoNO5hSq7i_CpX&t=25149

My current position is that this is now the biggest gap in jj’s built-ins. I realize that you can create and push a branch with push -c, but that doesn’t give you a human name for discussion or review.

I too would like to see pre-push hooks, but you can create a branch with a "human name":

[template-aliases]
"slugify(str)" = '''
  truncate_end(
    65,
    str.first_line()
      .replace(regex:'[^[[:alnum:]]]', '-')
      .replace(regex:'-{2,}', '-')
      .replace(regex:'-+$', '')
      .lower()
      .replace('eng', 'ENG')
  )
'''

[templates]
git_push_bookmark = 'slugify(description)'

Small plug for my own jj-stack tool for those of us using GitHub.