Is there an easy way to read the last X lines from a session?
Feature Request
I have a trigger that uses regex to extract some things from the line and then pass it to another program. This works great.
Summary
What is the feature you'd like to request?
I want in addition to the extracted regex groups, extract a few lines that preceded the "trigger line", as part of the trigger process, or as a separate call to iterm (maybe via applescript). Somewhere above the trigger line, there's a callstack and I was hoping there's an easy way to get to it.
Alternatives
I tried looking at the built-in functions page to see if there's anything I could use. I saw there's no regex-y way of including X previous lines across linebreaks.
Thanks!
Edited by Mad