Open phcerdan opened 7 years ago
I want to run these kind of commands with from layout hi.window.sh vim -c "echo 'Hi, how are you?'" ~/tmp/a.md
hi.window.sh
vim -c "echo 'Hi, how are you?'" ~/tmp/a.md
But I cannot from due to the extra " " needed for run_cmd "vim -c "echo 'Hi, how are you?'" ~/tmp/a.md "
" "
run_cmd "vim -c "echo 'Hi, how are you?'" ~/tmp/a.md "
Is there any workaround to do this? any alternative to run_cmd without the "" . Or any other symbol with same meaning that " " or ' '?
""
' '
Thanks
I stumpled over the same problem and just found out that you can just escape the inner "with \". So for your example run_cmd "vim -c \"echo 'Hi, how are you?'\" ~/tmp/a.md"
"
\".
run_cmd "vim -c \"echo 'Hi, how are you?'\" ~/tmp/a.md"
I want to run these kind of commands with from layout
hi.window.sh
vim -c "echo 'Hi, how are you?'" ~/tmp/a.md
But I cannot from due to the extra
" "
needed forrun_cmd "vim -c "echo 'Hi, how are you?'" ~/tmp/a.md "
Is there any workaround to do this? any alternative to run_cmd without the
""
. Or any other symbol with same meaning that" "
or' '
?Thanks