Marks also for containers

timeout_old
Tassilo Horn 3 years ago
parent 12fb13e063
commit 5cbefd746f
  1. 4
      src/config.rs
  2. 7
      src/tree.rs

@ -218,7 +218,7 @@ impl Default for Format {
window_format: Some(
"img:{app_icon}:text:{indent}<i>{app_name}</i> \
{urgency_start}<b>{title}</b>{urgency_end} \
on workspace {workspace_name} {marks} \
on workspace {workspace_name} <i>{marks}</i> \
<span alpha=\"20000\">({id})</span>"
.to_string(),
),
@ -229,7 +229,7 @@ impl Default for Format {
),
container_format: Some(
"{indent}<b>Container {layout}</b> \
on workspace {workspace_name} \
on workspace {workspace_name} <i>{marks}</i> \
<span alpha=\"20000\">({id})</span>"
.to_string(),
),

@ -411,6 +411,13 @@ impl DisplayFormat for DisplayNode<'_> {
.replace("{indent}", &indent.repeat(self.get_indent_level()))
.replace("{layout}", format!("{:?}", self.node.layout).as_str())
.replace("{id}", format!("{}", self.node.id).as_str())
.replace(
"{marks}",
&maybe_html_escape(
html_escape,
&self.node.marks.join(", "),
),
)
.replace(
"{workspace_name}",
&maybe_html_escape(

Loading…
Cancel
Save