Open as3ii opened 1 month ago
in joshuto 0.9.8 something like this don't work (joshuto crash):
:shell a="%s"; alacritty --working-directory "${a%/*}"
and in the following the string %s
is not substituted correctly:
:shell bash -c "a=%s; alacritty --working-directory ${a%/*}"
it can be useful to have more variables accessible while composing a command with
:shell
and:spawn
(particularly inkeymap.toml
. Below is an example that would satisfy one of my use cases:Or
:spawn alacritty -e joshuto "%f"
where%f
(random letter) is replaced with the path of the current directory.Other useful variables can be
$SHELL
and$EDITOR
to compose commands without invoking external scripts or hardcoding which is the preferred shell or editor (for example).Workarounds/suggestions are welcome (shell scripts aside)