jj/src
Yuya Nishihara 84ee0edc51 templater: add Template::has_content() to filter out empty expressions
This allows us to insert a separator between non-empty template fragments.
Since FormattablePropertyTemplate::has_content() needs to extract
a TemplateProperty, using this function means the property function will
be evaluated twice, one by .has_content() and later by .format(). The cost
is basically the same as 'if(prop, " " prop)'.
2023-02-04 15:19:02 +09:00
..
commands templater: add Template::has_content() to filter out empty expressions 2023-02-04 15:19:02 +09:00
config formatter: rename underlined color config to underline 2023-01-31 08:14:27 -08:00
cleanup_guard.rs cleanup: let new Clippy move variables into format strings 2022-12-14 21:30:58 -08:00
cli_util.rs cli_util: always run custom global-args-processing function 2023-02-03 22:18:51 -08:00
config.rs Don't output implicit defaults from "config list" 2023-02-01 19:49:57 -06:00
diff_util.rs formatter: remove write_bytes() method 2023-01-22 17:45:12 -08:00
formatter.rs formatter: rename underlined color config to underline 2023-01-31 08:14:27 -08:00
graphlog.rs cli: rename ui.graph.format to ui.graph.style 2023-01-27 10:36:26 -08:00
lib.rs refactor: separate timestamp related utilities in time_util module 2023-01-14 16:07:09 +01:00
main.rs refactor: return ExitCode from CliRunner::run() 2023-01-20 06:42:08 +01:00
merge_tools.rs cli: remove redundant check for undefined "merge-tools" section 2023-01-24 15:06:12 +09:00
progress.rs cleanup: let new Clippy move variables into format strings 2022-12-14 21:30:58 -08:00
template.pest templater: disallow empty template in function arguments and parens 2023-01-30 12:50:40 +09:00
template_parser.rs templater: add separate variants for exact/range argument count errors 2023-02-04 15:19:02 +09:00
templater.rs templater: add Template::has_content() to filter out empty expressions 2023-02-04 15:19:02 +09:00
time_util.rs refactor: separate timestamp related utilities in time_util module 2023-01-14 16:07:09 +01:00
ui.rs cli: error out if colors section isn't of map type 2023-01-24 15:06:12 +09:00