From 0d84266e5b34375eb9ec5be31fdeb12d5882a15b Mon Sep 17 00:00:00 2001 From: pajawojciech Date: Sun, 22 Feb 2026 11:32:45 +0100 Subject: [PATCH] Include name in orders export --- docs/changelog.txt | 1 + plugins/orders.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/docs/changelog.txt b/docs/changelog.txt index 3d78dd8335..6eb5bd1a43 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -59,6 +59,7 @@ Template for new versions: ## New Features - `orders`: added search overlay to find and navigate to matching manager orders with arrow indicators +- `orders`: exported orders now include a human-readable ``name`` field - `sort`: added ``Uniformed`` filter to squad assignment screen to filter dwarves with mining, woodcutting, or hunting labors - `sort`: Add death cause button to dead/missing tab in the creatures screen diff --git a/plugins/orders.cpp b/plugins/orders.cpp index 4bdff21fe2..af504b87c6 100644 --- a/plugins/orders.cpp +++ b/plugins/orders.cpp @@ -4,6 +4,7 @@ #include "PluginManager.h" #include "modules/Filesystem.h" +#include "modules/Job.h" #include "modules/Materials.h" #include "modules/World.h" @@ -376,6 +377,7 @@ static command_result orders_export_command(color_ostream & out, const std::stri order["art"] = art; } + order["name"] = Job::getManagerOrderName(it); order["amount_left"] = it->amount_left; order["amount_total"] = it->amount_total; order["is_validated"] = bool(it->status.bits.validated);