mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-28 01:25:52 +03:00
[GH-ISSUE #990] Enhancement: prettify GraphQL query in request Treeview (even slightly). #983
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#983
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bertrand on GitHub (Sep 10, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/990
Originally assigned to: @NghiaTranUIT on GitHub.
Today, it's very hard to read the
querypart in a GraphQL request :This is because the whole query (which can be HUGE) is displayed as a single line.
Would it be possible to a add a
prettifyselector that would display the query part in a more readable format in Treeview?I know a full-fledged query formatter is a lot of work.
But at first, simply replacing the
\ncharacters with real carriage returns would be a HUGE improvement for us working on GraphQL projects.@NghiaTranUIT commented on GitHub (Sep 10, 2021):
I tried on different GraphQL Query, some of them doesn't have
\n, so it's really difficult to manually prettify it.I suppose that I will implement a GraphQL Query Prettifier, which is similar to the below GraphQL online tool 👍
Since the TreeView is an NSOutlieView (support tree-level-hierachie), and it seems that it's difficult to support multiple lines, so I'd introduce a GraphQL Tab
@NghiaTranUIT commented on GitHub (Sep 11, 2021):
Hey @Bertrand Let check this Beta build: https://proxyman.s3.us-east-2.amazonaws.com/beta/Proxyman_2.32.1_GraphQL_Prettier.dmg
You can open a GraphQL Tab and it will prettify the GraphQL's query value 👍
To open GraphQL tab, please click on the + button on request bar -> It will open Custom Previewer Window -> Select GraphQL 🙌
@Bertrand commented on GitHub (Sep 13, 2021):
Wow 😄
This is such a game-changer !
Many many thanks @NghiaTranUIT
A few remarks:
@NghiaTranUIT commented on GitHub (Sep 13, 2021):
Sorry for the syntax highlight for graphQL. I tried to support CodeMirror-graphQL-mode but it doesn't work well 😿
Thanks for your proposal. I will find a way to support it 👍