mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-18 18:27:38 +00:00
c52efd9df3
The parameter order follows indent()/label() functions, but this might be a bad idea because fill() is more likely to have optional parameters. We can instead add template.fill(width) method as well as .indent(prefix). If we take this approach, we'll probably need to add string.fill()/indent() methods, and/or implicit cast at method resolution. The good thing about the method syntax is that we can add string.refill(), etc. for free, without inventing generic labeled template functions. For #1043, I think it's better to add a config like ui.log-word-wrap = true. We could add term_width/graph_width keywords to the templater, but the implementation would be more complicated, and is difficult to use for the basic use case. Unlike Mercurial, our templater doesn't have a context map to override the graph_width stub. |
||
---|---|---|
.. | ||
technical | ||
branches.md | ||
code-of-conduct.md | ||
config.md | ||
config.toml | ||
conflicts.md | ||
contributing.md | ||
git-comparison.md | ||
git-compatibility.md | ||
github.md | ||
operation-log.md | ||
related-work.md | ||
revsets.md | ||
templates.md | ||
tutorial.md | ||
working-copy.md |