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

Import from curl command line #97

Open
skomorokh opened this issue Nov 25, 2024 · 2 comments
Open

Import from curl command line #97

skomorokh opened this issue Nov 25, 2024 · 2 comments

Comments

@skomorokh
Copy link

I frequently use similar (but more bloated) tools by right clicking a request in Firefox, using "copy as cURL" and then pasting in the tool to pre-populate headers for convenient authentication, reproducing issues, etc.

This project is great (thanks for sharing!) but I couldn't seem to find a way to apply the same workflow. The inverse was implemented in #63. Alas I've not dug into Rust nor Gnome so my PR is not forthcoming but this crate looks like a promising place to start: https://crates.io/crates/curl-parser

@danirod
Copy link
Owner

danirod commented Nov 25, 2024

Didn't know this was a thing in the other bloated tools (and I'm only discovering it now that I've replaced them!), but I'll definitely consider it. Thanks for the suggestion.

@danirod danirod added this to Cartero Nov 25, 2024
@danirod danirod moved this to Future plan in Cartero Nov 25, 2024
@AlphaTechnolog
Copy link
Contributor

Maybe we could make writable the panel where the curl output gets generated and if the user is the one changing the pane, we could tryna fill all the fields from the requests... this might be kinda hard to implement this way though because we'll need a way to detect if it's the user who's modifying or not, but maybe some lock variable which gets modified when the user types / copy pastes. Definitely an interesting and useful feature to implement 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Future plan
Development

No branches or pull requests

3 participants