dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit c85eeeb043bb838167167769b5d0aad81080b8a1
parent 5df98cafc6ca1bf7273c3b9f09a9ee8c7708419d
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 13 May 2026 13:56:05 +0900

zsh: update jj log formats: l, ll, ld, lp

Turns out there are builtin log formats for everything I need, and where
there aren't, the builtins are incredibly close and easy to build on.

Diffstat:
M.config/jj/config.toml | 29+++--------------------------
1 file changed, 3 insertions(+), 26 deletions(-)

diff --git a/.config/jj/config.toml b/.config/jj/config.toml @@ -6,37 +6,14 @@ email = "chris@bracken.jp" [aliases] l = ["log"] -ll = ["log", "-T", "fmt_lol", "-r", "::"] +ll = ["log", "-T", "builtin_log_oneline", "-r", "::"] +ld = ["log", "-T", "builtin_log_detailed ++ diff.stat() ++ '\n'", "-r", "::", "--no-graph"] +lp = ["log", "-T", "builtin_log_detailed ++ diff.stat() ++ '\n' ++ diff.git() ++ '\n'", "-r", "::", "--no-graph"] [ui] diff-formatter = ":git" revsets-use-glob-by-default = true -[template-aliases] -# Define the content format. -fmt_lol_content = ''' -change_id.shortest(8) ++ " " ++ -label("author", author.email()) ++ " " ++ -label("timestamp", committer.timestamp().local().format("%Y-%m-%d %H:%M:%S")) ++ " " ++ -commit_id.shortest(8) ++ " " ++ -separate(" ", - bookmarks, - tags, - if(self.contained_in("first_parent(@)"), label("git_head", "git_head()")), - if(empty, label("empty", "(empty)")), - if(description, - description.first_line(), - label("description placeholder", "(no description set)") - ) -) -''' -# Wrap the content in the "working_copy" label if applicable. -fmt_lol = 'if(current_working_copy, label("working_copy", fmt_lol_content), fmt_lol_content)' - -[colors] -"committer timestamp" = "cyan" -"working_copy committer timestamp" = "bright cyan" - [revsets] # Advance bookmarks to the most recent non-empty ancestor by default. bookmark-advance-to = "latest(ancestors(.. ~ empty()) & ~empty())"