graphql-mode icon indicating copy to clipboard operation
graphql-mode copied to clipboard

Separate graphql querying from qraphql-mode functionality

Open mkroehnert opened this issue 5 years ago • 2 comments

Hi @davazp first of all thank you very much for this nice Emacs mode.

I was wondering, what you would think of separating the querying and the editing/displaying part of this package.

Background: I was searching for a simple way of querying a graphql server and found this package. However, I would prefer to only use the querying part that I load from a dedicated .el file and have all the major-mode and (message) related parts in graphql-mode.el file. Like this the query part could be used in libraries or other programs without pulling in the major-mode.

mkroehnert avatar May 27 '20 19:05 mkroehnert

That sounds reasonable. The query part of this library is pretty trivial though. There is room for a much better client.

Another option if such a library is created is to change this mode to use it. I am not very actively using this mode now so I would probably be better of somebody else does it though.

davazp avatar May 27 '20 20:05 davazp

@davazp thanks for the response. I'll see if I find the time to dig deeper into this topic.

mkroehnert avatar Jun 06 '20 13:06 mkroehnert