Skip to content

Disabling targets - #11

Merged
kpassapk merged 8 commits into
mainfrom
target-override
Aug 16, 2026
Merged

Disabling targets#11
kpassapk merged 8 commits into
mainfrom
target-override

Conversation

@kpassapk

@kpassapk kpassapk commented Aug 16, 2026

Copy link
Copy Markdown
Owner

Sometimes it's useful to run a quick local command.

For example:

#+TARGET: /ssh:server.com|podman:my-container: (container)
* Service status                                      :container:

#+NAME: status
#+BEGIN_SRC sh
some-cli status --json
#+END_SRC

#+BEGIN_SRC sh :stdin status :target nil
jq -r '.services
  | to_entries[]
  | select(.value.state != "running")
  | "\(.key)\t\(.value.state)\t\(.value.health)"'
#+END_SRC

kpassapk and others added 8 commits August 11, 2026 13:11
The babel advice consed its resolved target onto params, so it won
over any :dir on the block itself, and multi-tag headings prompted
for a target even when the block already had one. Skip resolution
entirely when a :dir is present in the override params or the
block's resolved params (block, #+header: line, or header-args
property); :dir nil opts a block out of injection.

Also pass executor-type through to the advised function instead of
dropping it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@kpassapk
kpassapk merged commit 4137531 into main Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant