Closed basbebe closed 3 years ago
My
$VISUAL
variable consists of two words:
mkdir -p ~/bin
export PATH=$PATH:~/bin
cat <<EOF > "$HOME/bin/kcr-edit"
#!/usr/bin/env sh
kcr edit "$@"
EOF
chmod +x ~/bin/kcr-edit
export VISIUAL=kcr-edit
My
$VISUAL
variable consists of two words:
I know, I know
It's a pragmatic workaround but I thought there was something about nuke's code which I could look at since I don't have any problems with it anywhere else (including nnn).
@luukvbaal any quick way to handle this case in nuke
?
Best way to handle it is like @0xACE suggested or just directly replace EDITOR
with kcr edit
in nuke
.
Closing as we have shared some solutions for this. Plugins are indicative so it's expected users would have to adapt them.
I'm having a problem with nuke and I can't figure out why (probably because I'm not an expert with bourne shell and it's string expansions (?).
My
$VISUAL
variable consists of two words:nuke uses it as follows:
No I'm getting errors like whit when I want to edit a text file:
using
kak
as a visual editor works. using e works withkcr edit
set as$EDITOR
.$PATH
is not an issue here. I already tried around with various combinations of quotes and curly braces but I wasn't succesful.(Im using
kak
as an editor,kcr edit
comes from kakoune.cr)