Can kitty @ ls expose win.at_prompt property? #6670
salmankhilji
started this conversation in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to iterate over all kitty windows and execute a command only if the shell is idle and not running a command. i.e., the shell is not running, say
vi
or any other command in the foreground.For what I can tell, each window has an
at_prompt
property within Python, and I suppose this property may work only with shell integration enabled.Can we expose this within the kitty @ ls output?
An alternate would be to parse the output and check whether the foreground process is the shell itself. But doing so is not all that easy using
jq
on the command line.Beta Was this translation helpful? Give feedback.
All reactions