New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"editor" command not working properly with spaces within an argument #581
Comments
Internally, the commands to launch an editor are split on whitespaces and stored in an array, so |
Hi,
Again, I'm not a Python developer, so I'm totally not sure. |
I've had similar issues. There's a PR that aims to address this bug, but I haven't gotten a chance to test it out. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Let's keep this open. I might be able to test the PR with some contrived invocations. I'll try for the weekend. |
I built up a test with #435 cherry-picked onto 2.0-rc3 and using this in my config:
The PR preserves the quotes that are being passed, so it looks like this issue would be resolved. I don't have a Windows system to try with, so I'm just going to have to trust the Python docs for that case. |
Yup, I agree that the PR looks pretty good. I want to give the original author a chance to update themselves. If they don't, though, we can look at our options. I'm not sure we can just cherry-pick their commit when we factor in licensing and stuff like that, but I'm sure we can make a PR with similar functionality (and more tests, anyway). Anyway, we can cross that bridge when we get to it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I think subprocess is the right way to go, but passing Other than that, though. The oringinal PR looks good. |
@gregorybodnar Looks like that PR staled out. Do you still have a chance to submit an updated PR? |
I have a long weekend just about to start, so I'll get it going. |
So, here's a thing. On a mac:
And this is our editor code:
darwin 😂 |
Fixing the above (change to |
I'm having a problem with the "editor" entry on the .jrnl_config file.
Basically what I am trying to do is start vim with the filetype defined to markdown.
The editor entry is like this:
This command works fine on terminal, but this is not working on jrnl.
The problems are:
I've tried double quotes (
"editor": "nvim -c \"setlocal filetype=markdown\""
) and escaping white spaces ("editor": "nvim -c setlocal\\ filetype=markdown"
) but they didn't work either.Can you help me with that?
Sorry for my English.
Nice piece of software by the way.
The text was updated successfully, but these errors were encountered: