Skip to content
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

Fix: Detach open command execution #80

Merged
merged 1 commit into from
Apr 7, 2024
Merged

Fix: Detach open command execution #80

merged 1 commit into from
Apr 7, 2024

Conversation

AlOwain
Copy link
Contributor

@AlOwain AlOwain commented Mar 19, 2024

This commit simply switches os.execute with vim.fn.jobstart with detach set to true, making the editor available after opening the problems' url allowing you to edit, while the browser is running.

The detach option keeps the browser open after the editor shuts down. It is not the default behavior (which would make the browser shut down with the editor, I find the introduced behavior to be more appropriate).

NOTE: This commit has been tested only on Linux; but I don't suppose there would be any meaningful difference.

This commit simply switches `os.execute` with `vim.fn.jobstart` with
`detach` set to `true`, making the editor available after opening the
problems' url allowing you to edit, while the browser is running.

The `detach` option keeps the browser open after the editor shuts down.
It is not the default behavior (which would make the browser shut down
with the editor, I find the introduced behavior to be more appropriate).

NOTE: This commit has been tested only on Linux; but I don't suppose
there would be any meaningful difference.
@AlOwain
Copy link
Contributor Author

AlOwain commented Mar 19, 2024

For added context, the current behavior halts the editor; as os.execute runs sequentially; I believe it is the expected behavior, why would anyone not want to be able to edit till they close their browser?

@AlOwain AlOwain changed the title Detach open command execution Fix: Detach open command execution Mar 19, 2024
@kawre kawre merged commit a92e764 into kawre:master Apr 7, 2024
@kawre
Copy link
Owner

kawre commented Apr 7, 2024

thanks

kawre added a commit that referenced this pull request May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants