How to get kitty tab title using kitty @ ls | jq #3563
Unanswered
salmankhilji
asked this question in
Q&A
Replies: 2 comments 1 reply
-
I dont use jq so I can help with that. If I were you I'd simply write a script in a proper programming language, which makes it trivial. Indeed just use python and you can run it with kitty itself, like this kitty +launch myscript.py |
Beta Was this translation helpful? Give feedback.
0 replies
-
not sure if I understand the problem, but why don't you save the tab id in a variable when the tab is created? then you can use it in your jq script later |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The issue with the following
jq
query is that it needs the tab to be focused when it is called. I have a bash script running in a non-focused (i.e., background) tab that needs to get the title of the kitty tab its running in.Writing a
jq
query that gets the tab title from within a background tab seems to be significantly harder. Does kitty provider an easier way?Beta Was this translation helpful? Give feedback.
All reactions