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

Pass hurl args #10

Merged
merged 6 commits into from
Jul 6, 2023
Merged

Pass hurl args #10

merged 6 commits into from
Jul 6, 2023

Conversation

PriceHiller
Copy link
Contributor

@PriceHiller PriceHiller commented Jul 5, 2023

This PR does two things:

  1. It allows flags to be passed to (and only) the :Hurl command.
  2. Updated the docs to reflect the changes made in the previous commits
hurl-flags.mp4

Closes #9

With `vim.system` we get better type coersion and general support from
libuv. Jobstart is primarily meant to be used from vimscript, not lua.
Per `:h jobstart` it recommends using `vim.system`.

This also makes it easier to handle building the commands list for hurl
as now we only have to manage a table.

This is the first of a few commits related to pfeiferj#9 and pfeiferj#7.
Something to do for the future is command completions for the `Hurl`
command, but for now this permits flag passing.

Closes pfeiferj#9
@PriceHiller PriceHiller changed the title Pass hurl args, use vim.system Pass hurl args Jul 6, 2023
This reverts commit 84f763d.

This was reverted because it came to my attention (thanks clason) that
all the `vim` functions that were in use are only valid in Neovim `0.10`
currently 😔
@PriceHiller PriceHiller requested a review from pfeiferj July 6, 2023 21:49
@pfeiferj pfeiferj merged commit 5b7c613 into pfeiferj:main Jul 6, 2023
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.

Pass options to the hurl command
2 participants