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

feat: add support for %s and %p as first argument to subprocess commands #515

Merged
merged 4 commits into from
Apr 3, 2024

Conversation

Akmadan23
Copy link
Contributor

This allows to run the file under cursor (if executable) with :shell %s, :shell ./%s or :shell %p.

I also fixed a bug introduced in #495 which caused a panic when trying to run a file that doesn't exist or a non-executable file.

@kamiyaa
Copy link
Owner

kamiyaa commented Apr 3, 2024

Looks good, thanks!

@kamiyaa kamiyaa merged commit 2392951 into kamiyaa:main Apr 3, 2024
4 checks passed
@Akmadan23 Akmadan23 deleted the selected-file-var-as-first-arg branch April 4, 2024 09:49
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