aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_info-fmt.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/clients/cave/cmd_info-fmt.hh')
-rw-r--r--src/clients/cave/cmd_info-fmt.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_info-fmt.hh b/src/clients/cave/cmd_info-fmt.hh
index 919c93e63..3878f0573 100644
--- a/src/clients/cave/cmd_info-fmt.hh
+++ b/src/clients/cave/cmd_info-fmt.hh
@@ -15,3 +15,16 @@ const auto fs_id_heading = make_format_string_fetcher("info/id_heading", 1)
const auto fs_heading = make_format_string_fetcher("info/heading", 1)
<< c::blue_or_pink() << param<'s'>() << c::normal() << ":\\n";
+const auto fs_contents_file = make_format_string_fetcher("info/contents_file", 1)
+ << param_if<'b'>() << "%{column 30}" << param_endif<'b'>() << param<'r'>() << param_if<'b'>() << "\\n" << param_else<'b'>() << " " << param_endif<'b'>();
+
+const auto fs_contents_other = make_format_string_fetcher("info/contents_other", 1)
+ << param_if<'b'>() << "%{column 30}" << param_endif<'b'>() << param<'r'>() << param_if<'b'>() << "\\n" << param_else<'b'>() << " " << param_endif<'b'>();
+
+const auto fs_contents_dir = make_format_string_fetcher("info/contents_dir", 1)
+ << param_if<'b'>() << "%{column 30}" << param_endif<'b'>() << param<'r'>() << param_if<'b'>() << "\\n" << param_else<'b'>() << " " << param_endif<'b'>();
+
+const auto fs_contents_sym = make_format_string_fetcher("info/contents_sym", 1)
+ << param_if<'b'>() << "%{column 30}" << param_endif<'b'>() << param<'r'>() << " -> " << param<'v'>()
+ << param_if<'b'>() << "\\n" << param_else<'b'>() << " " << param_endif<'b'>();
+