{"id":14112,"date":"2026-09-28T11:20:10","date_gmt":"2026-09-28T15:20:10","guid":{"rendered":"https:\/\/irreal.org\/blog\/?p=14112"},"modified":"2026-09-28T11:20:10","modified_gmt":"2026-09-28T15:20:10","slug":"a-nice-example-of-an-embark-action","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=14112","title":{"rendered":"A Nice Example Of An Embark Action"},"content":{"rendered":"<p>\nAs I <a href=\"https:\/\/irreal.org\/blog\/?p=13954\">wrote back in July<\/a>, although I&rsquo;ve had <a href=\"https:\/\/github.com\/oantolin\/embark\">Embark<\/a> installed for some time, I&rsquo;ve only just begun to really use it. Most of my uses involve following a link (of any type) and acting on a group of files, typically to delete several files at once. Of course, those uses are barely scratching the surface of Embark&rsquo;s capabilities.\n<\/p>\n<p>\nThose capabilities are essentially open ended. By that I mean you can define your own Embark actions. Stefano Rodighiero has a <a href=\"https:\/\/stefanorodighiero.net\/blog\/personalized-embark-actions.html\">nice example of this<\/a>. It&rsquo;s a nice example for two reasons. First, it&rsquo;s simple and easy to follow even though\u2014the second reason\u2014I don&rsquo;t know anything about what he&rsquo;s trying to do.  The point is that Rodighiero has an obscure\u2014to me\u2014application that he wants to provide an action for but you don&rsquo;t need to know the details of the application to follow the action.\n<\/p>\n<p>\nThis is incredibly powerful. Rodighiero let Embark do the hard work of identifying and parsing the target and merely wrote some simple glue to take that target reference and do something useful with it.\n<\/p>\n<p>\nIf, like me, you&rsquo;re just beginning to feel your way around Embark, Rodighiero&rsquo;s post is a useful read. You almost certainly won&rsquo;t have a need to copy his action but it&rsquo;s an excellent go by for your own.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As I wrote back in July, although I&rsquo;ve had Embark installed for some time, I&rsquo;ve only just begun to really use it. Most of my uses involve following a link (of any type) and acting on a group of files, &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=14112\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-14112","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14112","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14112"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14112\/revisions"}],"predecessor-version":[{"id":14113,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14112\/revisions\/14113"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}