dotfiles

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

commit ad05a6db74a5aeade8a6c2a68e4241e0bf5d5a7f
parent d2ed293948558b49204c2a47195e301aac796640
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri, 15 May 2026 15:24:45 +0900

jj: configure jj fix formatters

Turns out jj has a format command built in that already does roughly
what my jj format script (which I forgot to check in) did. This replaces
it with the native approach.

Diffstat:
M.config/jj/config.toml | 17++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/.config/jj/config.toml b/.config/jj/config.toml @@ -9,7 +9,6 @@ l = ["log"] 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"] -format = ["util", "exec", "--", "jj-format"] ws-add = ["util", "exec", "--", "jj-ws-add"] [ui] @@ -19,3 +18,19 @@ revsets-use-glob-by-default = true [revsets] # Advance bookmarks to the most recent non-empty ancestor by default. bookmark-advance-to = "latest(ancestors(.. ~ empty()) & ~empty())" + +[fix.tools.clang-format] +command = ["clang-format", "--assume-filename=$path"] +patterns = ["glob:'**/*.c'", "glob:'**/*.cc'", "glob:'**/*.m'", "glob:'**/*.mm'"] + +[fix.tools.dart] +command = ["dart", "format", "--output=show", "--stdin-name=$path"] +patterns = ["glob:'**/*.dart'"] + +[fix.tools.gn] +command = ["gn", "format", "--stdin"] +patterns = ["glob:'**/*.gn'", "glob:'**/*.gni'"] + +[fix.tools.swift-format] +command = ["swift-format", "format", "--assume-filename=$path", "-"] +patterns = ["glob:'**/*.swift'"]