akinsho / akinsho/toggleterm.nvim
Is it possible to include double quotes in the `cmd` argument?
- Lingua principale
- Lua
- Stelle
- 5.6k
- Fork
- 206
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I run Windows, and due to organizational constraints I'm forced to have spaces in my directories. I frequently want to execute the open Python file with `TermExec cmd="python %"`. As you can imagine, this causes issues if `%` expands to a path with a space, as you get e.g.:
> python C:/this/is the/file/path.py
Can't open file 'C:/this/is': no such file or directory.
I've tried every which way to escape quotes, mixing single and double quotes, escaping spaces with backslashes/backticks, etc., but I'm getting nowhere. Using the `dir` argument to `TermExec` works if the terminal is not open yet, but it will not change the working directory if there's an open terminal already.
Thoughts?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.