Closed Beethoven-n closed 10 months ago
Agree. I have similar use-cases. I proposed “command-chaining” in https://github.com/kamiyaa/joshuto/issues/241#issuecomment-1546851335 with the enhancement that a subsequent commands can use stdout
and the return-code of a former shell
command as variables. That would allow for a lot of useful things, like open a new tab in a directory that is returned by script.
I would like to pick that up but life keeps me surprisingly busy the last months.
Added in 31beaabe6b2cf4119aacae6c1722cdc1e5ba2f5b
Let me know how it is.
It breaks existing keymap.toml
configs
command chaining works just fine afaik. gonna close
i've had the idea to add mounting volumes to my config, but i wanna try and do it a bit fancy.
once i'm done with the command in
command
, i want to do:new_tab
to the directory that i just mounted. this would be especially handy withgio mount
, because i'd have to cd to a directory i can't specify, and would have to find with a script.could i get some way to do multiple commands in a row? or a post-command hook? unsure how best to implement that