To clarify, you want that title string to also be in the body of the file?
> On Feb 6, 2026, at 12:55 PM, Henry Stukenborg <[email protected]> wrote:
> This becomes the BBEdit document title (edited out the actual data):
> <base path> — <command and params> — <date and time>
>
> Is there any way to capture this information in BBEdit to make it part of the
> document automatically? You can access the info get Get Info, but I'd like to
> be able to automatically grab it and make it a part of the document.
>
If that is the case you could try adding this line to your function.
logbb () {
ORIG_CMD=`tail -n1 $HISTFILE| awk -F'\;' '{print $2}'`
bbedit -t "${PWD##*/} — ${ORIG_CMD} — $(date)”
echo "${PWD##*/} — ${ORIG_CMD} — $(date)" | bbedit --prepend
}
The flags —prepend will tack the piped data to the top of the doc and — will
place it at the end.
--
This is the BBEdit Talk public discussion group. If you have a feature request
or believe that the application isn't working correctly, please email
"[email protected]" rather than posting here. Follow @bbedit on Mastodon:
<https://mastodon.social/@bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/bbedit/C02D3C0D-1AB5-4E9F-AABF-9F5D102A229A%40rustydogink.com.