Can kitty @ ls expose win.at_prompt property? #6670
salmankhilji
started this conversation in
Ideas
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
vior any other command in the foreground.For what I can tell, each window has an
at_promptproperty 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
jqon the command line.All reactions