jj/docs
Yuya Nishihara c52efd9df3 templater: add fill(width, content) function
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.
2023-03-10 16:07:55 +09:00
..
technical docs: mention that the "view" object knows about all workspaces 2022-12-08 17:30:29 -08:00
branches.md templater: indicate if branch needs to be pushed to a remote 2022-11-09 22:44:55 -08:00
code-of-conduct.md Boilerplate for new Google open source project 2020-12-11 23:37:59 -08:00
config.md templater: require infix ++ operator to concatenate expressions 2023-03-01 16:39:23 +09:00
config.toml Update docs/config.toml with new way to show relative timestamps 2023-02-15 21:26:14 -08:00
conflicts.md docs: indent conflict marker examples to not confuse tools 2022-12-12 16:20:40 -08:00
contributing.md contributing.md: Add a link to the "Comprehensive Rust" course 2023-01-25 21:10:10 -08:00
git-comparison.md Rename jj touchup to jj diffedit 2022-12-21 08:15:06 -08:00
git-compatibility.md docs: Update section about support for .gitignores 2023-03-01 18:03:31 -08:00
github.md style: fix typos found by codespell 2023-01-28 07:23:45 -08:00
operation-log.md operation-log.md: Give a brief description of @, +, - 2023-02-18 22:42:51 -08:00
related-work.md docs: hyphenate "working-copy" when used as a compound modifier 2022-08-25 18:08:36 -07:00
revsets.md Clarify that files() is relative 2023-03-06 13:54:38 +09:00
templates.md templater: add fill(width, content) function 2023-03-10 16:07:55 +09:00
tutorial.md tutorial: update with recent changes, plus some other editing 2023-02-14 06:06:58 -08:00
working-copy.md workspace: add a root subcommand to print the workspace root path 2023-01-24 16:53:54 +01:00