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

Allow query strings spread into multiple lines #16

Closed
ta3pks opened this issue Jul 22, 2016 · 13 comments
Closed

Allow query strings spread into multiple lines #16

ta3pks opened this issue Jul 22, 2016 · 13 comments

Comments

@ta3pks
Copy link

ta3pks commented Jul 22, 2016

  • VSCode Version:1.3.1
  • OS Version:ubuntu 16.4
  • REST Client Version:0.6.1

Steps to Reproduce:

some queries to api are really lng and writing them in single line is making everything worse
it could be so nice to split parts into lines but when i do this the request wont work

@Huachao
Copy link
Owner

Huachao commented Jul 25, 2016

@NikosEfthias , I am considering this, and since I am busy these days, I will implement this ASAP, sorry for the inconvenience.

@ta3pks
Copy link
Author

ta3pks commented Jul 25, 2016

awesome thank you 👍

@Huachao
Copy link
Owner

Huachao commented Aug 2, 2016

@NikosEfthias, when I think about this feature recently, I found that allowing request cross over multiple lines will have a problem that syntax highlight not working. And I think one simple way to this is just word wrap in Visual Studio Code by View->Toggle Word Wrap.

@ta3pks
Copy link
Author

ta3pks commented Aug 3, 2016

wordwrap is great but it does not allow you to break from the place you wish

@Huachao
Copy link
Owner

Huachao commented Aug 3, 2016

@NikosEfthias good point, I know your pain, but I am not sure how much value to break as you wish for most people 😢 Could you provide me a scenario?

@ta3pks
Copy link
Author

ta3pks commented Aug 4, 2016

as i told a really long get query each part after ? could be in a new line terminated by \ so it could be really easy to editvalues

@Huachao
Copy link
Owner

Huachao commented Aug 4, 2016

@NikosEfthias agree

@ta3pks
Copy link
Author

ta3pks commented Aug 4, 2016

at the moment it is really pain to horizontal scroll for changing something and even more difficult when its half of the screen

@Huachao
Copy link
Owner

Huachao commented Aug 5, 2016

@NikosEfthias I'd like to ONLY spread query string into multiple lines
Following requests will be equivalent:

GET https://example.org/items?name=hello&type=world

or

GET https://example.org/items
?name=hello
&type=world

or

GET https://example.org/items
?name=hello&type=world

@ta3pks
Copy link
Author

ta3pks commented Aug 5, 2016

GET https://example.org/items
?name=hello
&type=world

this is way more clear

@Huachao Huachao changed the title Is it possible to write long queries multiline ? Allow spread query strings into multiple lines Aug 30, 2016
@Huachao Huachao changed the title Allow spread query strings into multiple lines Allow query strings spread into multiple lines Aug 30, 2016
@Huachao
Copy link
Owner

Huachao commented Aug 30, 2016

@NikosEfthias I have
Following requests will be equivalent:

GET https://example.org/items?name=hello&type=world

or

GET https://example.org/items
?name=hello
&type=world

@Huachao Huachao closed this as completed Aug 30, 2016
@ta3pks
Copy link
Author

ta3pks commented Aug 30, 2016

when is the update gonna be ready ?

@Huachao
Copy link
Owner

Huachao commented Aug 31, 2016

@NikosEfthias I have published a new version 0.7.4, you can try to verify. Thanks

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

No branches or pull requests

2 participants