make kak-shell scriptable
basbebe opened this issue · comments
I would love to ahve the possibility to make kak-shell
scriptable.
What do I mean?
E.g. I have a fish function that does:
- open a new kitty tab at a given folder
- create a new kakoune ide session with the folders' name
At this point, when I want to leverage all that awesome connect.kak
functionality, I would have to more or less re-write kak-shell
in the fish function:
instantiate session in the background, wait, connect client, issue connect-detach, sh connect.sh, open ide.
What I would like to do would be:
kak-shell -n sessionname
and that would open a new kak-shell with a new session 'sessionname'.
In short, you want to connect to a session from the command-line without a prompt?
yes.
Or create that session if it doesn't exist yet.
How about:
kak-shell [session] [commands]
Example – Without a prompt:
kak-shell kanto :attach
Example – With a prompt:
kak-shell '' :attach
would be great I think
I like the functionality but I also think the UI isn't intuitive.
kak-shell :attach
now ends in an infinite loop.
I personally would prefer flags like kak-shell -s kanto :attach
which wouldn't break kak-shell :attach
.