[GH-ISSUE #62] Fast URL entry #26

Closed
opened 2026-03-16 12:49:52 +03:00 by kerem · 20 comments
Owner

Originally created by @NBTX on GitHub (Aug 25, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/62

Originally assigned to: @terranblake, @NBTX on GitHub.

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
Similar to Postman's interface, I think we should make the URL entry a single bar at the top, with the method on the left. Then we should just parse the URL and fill in the relevant information.

We could keep the extra sections but this would make Postwoman a lot more intuitive and faster to use.

Describe alternatives you've considered
n/a

Additional context
image
As shown, Postman parses the URL as it is entered and automatically fills in the relevant sections.

Originally created by @NBTX on GitHub (Aug 25, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/62 Originally assigned to: @terranblake, @NBTX on GitHub. **Is your feature request related to a problem? Please describe.** No. **Describe the solution you'd like** Similar to Postman's interface, I think we should make the URL entry a single bar at the top, with the method on the left. Then we should just parse the URL and fill in the relevant information. We could keep the extra sections but this would make Postwoman a lot more intuitive and faster to use. **Describe alternatives you've considered** n/a **Additional context** ![image](https://user-images.githubusercontent.com/43181178/63654349-20fa0980-c771-11e9-8a7c-4a94e9b199d7.png) *As shown, Postman parses the URL as it is entered and automatically fills in the relevant sections.*
kerem 2026-03-16 12:49:52 +03:00
Author
Owner

@NBTX commented on GitHub (Aug 25, 2019):

I'm happy to implement this myself, but I wanted to open a discussion on the matter.

<!-- gh-comment-id:524654402 --> @NBTX commented on GitHub (Aug 25, 2019): I'm happy to implement this myself, but I wanted to open a discussion on the matter.
Author
Owner

@liyasthomas commented on GitHub (Aug 25, 2019):

This fact might surprise you: other than seeing some screenshots on internet, I haven't used Postman or seen its UI (this is just because, my 7 year old pc can't afford to run another Electron app). Afterall, I didn't intend to create an alternative to Postman, in my opinion this project should outperform any other such tools, since its lightweight, faster & opensource.

If there's any feature we'd like to add, all are free to discuss here. Everything is better when there's freedom and customisation in it.

<!-- gh-comment-id:524665887 --> @liyasthomas commented on GitHub (Aug 25, 2019): This fact might surprise you: other than seeing some screenshots on internet, I haven't used Postman or seen its UI (this is just because, my 7 year old pc can't afford to run another Electron app). Afterall, I didn't intend to create an alternative to Postman, in my opinion this project should outperform any other such tools, since its lightweight, faster & opensource. If there's any feature we'd like to add, all are free to discuss here. Everything is better when there's freedom and customisation in it.
Author
Owner

@liyasthomas commented on GitHub (Aug 25, 2019):

@NBTX see #63 and share your thoughts. Me too think this is an essential feature somehow I forgot at the first place. My bad. Anyway thanks for pulling it up.

<!-- gh-comment-id:524666492 --> @liyasthomas commented on GitHub (Aug 25, 2019): @NBTX see #63 and share your thoughts. Me too think this is an essential feature somehow I forgot at the first place. My bad. Anyway thanks for pulling it up.
Author
Owner

@NBTX commented on GitHub (Aug 25, 2019):

I'm actually only drawing the parallel to Postman's interface from experience, rather than because the names are similar, and this is the UI I'm used to - but this, as I said is something I would find useful.

I already very much prefer Postwoman because it's so much lighter. Even on my pretty decent systems Postman takes upwards of 7 seconds to start up, and then usually has several annoying pop ups to deal with.

<!-- gh-comment-id:524666631 --> @NBTX commented on GitHub (Aug 25, 2019): I'm actually only drawing the parallel to Postman's interface from experience, rather than because the names are similar, and this is the UI I'm used to - but this, as I said is something I would find useful. I already very much prefer Postwoman because it's so much lighter. Even on my pretty decent systems Postman takes upwards of 7 seconds to start up, and then usually has several annoying pop ups to deal with.
Author
Owner

@liyasthomas commented on GitHub (Sep 6, 2019):

#93 needs similar kinda approach

<!-- gh-comment-id:528666601 --> @liyasthomas commented on GitHub (Sep 6, 2019): #93 needs similar kinda approach
Author
Owner

@terranblake commented on GitHub (Sep 28, 2019):

@liyasthomas and @NBTX i'd like to take this one for hacktoberfest 😄

<!-- gh-comment-id:536216068 --> @terranblake commented on GitHub (Sep 28, 2019): @liyasthomas and @NBTX i'd like to take this one for hacktoberfest 😄
Author
Owner

@liyasthomas commented on GitHub (Sep 28, 2019):

@terranblake you are free to contribute to this 🔥👌 assigning to you.

<!-- gh-comment-id:536216785 --> @liyasthomas commented on GitHub (Sep 28, 2019): @terranblake you are free to contribute to this 🔥👌 assigning to you.
Author
Owner

@terranblake commented on GitHub (Sep 28, 2019):

@liyasthomas for this feature to be implemented, i do have a couple questions about a proposed design.

  1. can the path field be removed as a part of the solution?
  2. can i move the permalink and show code buttons below the url field on the same plane as import cURL?
<!-- gh-comment-id:536217291 --> @terranblake commented on GitHub (Sep 28, 2019): @liyasthomas for this feature to be implemented, i do have a couple questions about a proposed design. 1. can the `path` field be removed as a part of the solution? 2. can i move the `permalink` and `show code` buttons below the `url` field on the same plane as `import cURL`?
Author
Owner

@liyasthomas commented on GitHub (Sep 28, 2019):

@terranblake yes you can. permalink & show code can be moved to bottom of the section.

currently path is appended to request, you must resolve that while making changes.

there are bindings for path in various methods, you must resolve that too.

<!-- gh-comment-id:536217718 --> @liyasthomas commented on GitHub (Sep 28, 2019): @terranblake yes you can. `permalink` & `show code` can be moved to bottom of the section. currently `path` is appended to request, you must resolve that while making changes. there are bindings for `path` in various methods, you must resolve that too.
Author
Owner

@NBTX commented on GitHub (Sep 28, 2019):

@terranblake I imagine you would just use the JavaScript URL object:
const target = new URL("https://example.com/test");

In which case you can just get .path, .host/.hostname, etc.
As @liyasthomas mentioned, path is in a separate variable so you will need to split the URL and handle them separately but part of the goal of this ticket is to have the entire URL (querystring and all) handled in a single input box as it is with postman.

So to answer your question, you can remove the path input box and have a single input box for the full URL but obviously we still need the path to be handled as a separate variable.

<!-- gh-comment-id:536222740 --> @NBTX commented on GitHub (Sep 28, 2019): @terranblake I imagine you would just use the JavaScript URL object: `const target = new URL("https://example.com/test");` In which case you can just get `.path`, `.host`/`.hostname`, etc. As @liyasthomas mentioned, `path` is in a separate variable so you will need to split the URL and handle them separately but part of the goal of this ticket is to have the entire URL (querystring and all) handled in a single input box as it is with postman. So to answer your question, you can remove the `path` input box and have a single input box for the full URL but obviously we still need the path to be handled as a separate variable.
Author
Owner

@terranblake commented on GitHub (Oct 8, 2019):

Hopping on this one tonight. Will keep this issue updated.

<!-- gh-comment-id:539270195 --> @terranblake commented on GitHub (Oct 8, 2019): Hopping on this one tonight. Will keep this issue updated.
Author
Owner

@terranblake commented on GitHub (Oct 8, 2019):

Image 2019-10-07 at 8 06 36 PM This is what I have so far. Nothing too crazy.
<!-- gh-comment-id:539293845 --> @terranblake commented on GitHub (Oct 8, 2019): <img width="1254" alt="Image 2019-10-07 at 8 06 36 PM" src="https://user-images.githubusercontent.com/8795767/66364295-0bfec180-e93e-11e9-93ed-e8e7640f8175.png"> This is what I have so far. Nothing too crazy.
Author
Owner

@liyasthomas commented on GitHub (Oct 8, 2019):

@terranblake you tested? Any bugs?

<!-- gh-comment-id:539294546 --> @liyasthomas commented on GitHub (Oct 8, 2019): @terranblake you tested? Any bugs?
Author
Owner

@terranblake commented on GitHub (Oct 8, 2019):

Query params are imported directly into the parameters section. I am having an issue with the Referer field of the request getting blown up...

<!-- gh-comment-id:539294553 --> @terranblake commented on GitHub (Oct 8, 2019): Query params are imported directly into the parameters section. I am having an issue with the `Referer` field of the request getting blown up...
Author
Owner

@liyasthomas commented on GitHub (Oct 8, 2019):

Lemme take a look at it and possibly help you 🙂

<!-- gh-comment-id:539294946 --> @liyasthomas commented on GitHub (Oct 8, 2019): Lemme take a look at it and possibly help you 🙂
Author
Owner

@terranblake commented on GitHub (Oct 8, 2019):

Alrighty. I'll fork. One sec

<!-- gh-comment-id:539295733 --> @terranblake commented on GitHub (Oct 8, 2019): Alrighty. I'll fork. One sec
Author
Owner

@terranblake commented on GitHub (Oct 8, 2019):

Should be available on this branch

<!-- gh-comment-id:539296118 --> @terranblake commented on GitHub (Oct 8, 2019): Should be available on [this branch](https://github.com/terranblake/postwoman/tree/terranblake/fast-url-entry)
Author
Owner

@dihmeetree commented on GitHub (Feb 24, 2020):

This seems to have been implemented. Can this be /closed? Or this still open for discussion? :) @NBTX @liyasthomas

<!-- gh-comment-id:590534823 --> @dihmeetree commented on GitHub (Feb 24, 2020): This seems to have been implemented. Can this be /closed? Or this still open for discussion? :) @NBTX @liyasthomas
Author
Owner

@liyasthomas commented on GitHub (Feb 24, 2020):

I afraid this feature was incomplete and branch went stale. Lemme run some tests.

<!-- gh-comment-id:590584321 --> @liyasthomas commented on GitHub (Feb 24, 2020): I afraid this feature was incomplete and branch went stale. Lemme run some tests.
Author
Owner

@JacobAnavisca commented on GitHub (Feb 25, 2020):

Heyo! Just made a PR for this https://github.com/liyasthomas/postwoman/pull/603
used a regex and I did some testing but might be good for others to try it out as well

<!-- gh-comment-id:590708508 --> @JacobAnavisca commented on GitHub (Feb 25, 2020): Heyo! Just made a PR for this https://github.com/liyasthomas/postwoman/pull/603 used a regex and I did some testing but might be good for others to try it out as well
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#26
No description provided.