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

Zig project run #99

Open
den-mentiei opened this issue Feb 22, 2024 · 0 comments
Open

Zig project run #99

den-mentiei opened this issue Feb 22, 2024 · 0 comments

Comments

@den-mentiei
Copy link

Feature request

zig-mode currently exposes zig-run, which creates an executable from the current buffer and runs it immediately.
However, for bigger projects, there is usually a buils.zig with a run step, which could be invoked via zig build run.

It would be nice to have an ability to invoke that project-level run.

Motivation

build.zig is super common and having this improves developer experience, making edit-run-loop shorter.

Details

run step is a custom thing, which is not always available. We can have a defcustom for it with a default value and then users can either configure it in their configs or dir-locals.

We can expose zig-project-run (bound to C-c C-p or something, have no strong preferences).

Background

Contribution

I can work on a PR for this.

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

No branches or pull requests

1 participant