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

Ctrl + Space doesn't open autocomplete dropdown in GraphQL #5692

Closed
1 task done
itsfabijano opened this issue Jan 17, 2023 · 10 comments · Fixed by #5941
Closed
1 task done

Ctrl + Space doesn't open autocomplete dropdown in GraphQL #5692

itsfabijano opened this issue Jan 17, 2023 · 10 comments · Fixed by #5941
Labels
A-graphql Area: GraphQL Protocol B-bug Bug: general classification S-verified Status: Verified by maintainer

Comments

@itsfabijano
Copy link

itsfabijano commented Jan 17, 2023

Expected Behavior

Ctrl (^) + Space should open autocomplete dropdown.
image

Actual Behavior

Ctrl (^) + Space has no effect at all.

Reproduction Steps

  1. Create a new GraphQL request
  2. Enter a valid api url like https://api.spacex.land/graphql/
  3. Start typing a query
query q {
	launchesPast(limit: 10) {
		id

	}
}
  1. Put the curser under the id attribute
  2. Hit Control + Space

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

2022.7.3

What operating system are you using?

macOS

Operating System Version

maxOS Monterey 12.6.1

Installation method

download from https://insomnia.rest/

Last Known Working Insomnia version

2022.6.0

@itsfabijano itsfabijano added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Jan 17, 2023
@filfreire filfreire added A-graphql Area: GraphQL Protocol S-verified Status: Verified by maintainer and removed S-unverified Status: Unverified by maintainer labels Jan 17, 2023
@filfreire
Copy link
Member

filfreire commented Jan 20, 2023

@itsfabijano I can also reproduce this in a way in latest 2022.7.5.

I do get autocomplete suggestions while writing:
image

But seems the auto-complete keyboard shortcut doesn't trigger these same suggestions.
Only seems to work on the query space:
image

@emil-nasso
Copy link

I have this, but it behaves in a weird way for me.

  • I write a part of a query and press enter for a new line.
  • The cursor gets indented.
  • If i press ctrl + space, nothing happens.
  • If I only press space, the cursor moves forward one space and I get the complete autocomplete.

A workaround is to add an extra space whenever you want to autocomplete and clean up the query when you are done.

If I write a letter, I also get autocomplete (for that letter, obviously) but if I press ESC (to hide the autocomplete) and then ctrl + space, the autocomplete doesn't reappear.

I have tried to reset the autocomplete keyboard shortcut but that didn't help.

TL;DR: Autocomplete works and is triggered by typing, including a space to get all autocomplete suggestions but the ctrl + space shortcut seems to be broken.

@EvilVir
Copy link

EvilVir commented Feb 17, 2023

Same here :(

@itsfabijano
Copy link
Author

@filfreire It's still happening in the latest stable version latest 2022.7.5 and also in the newest beta 2023.1.0-beta.3.

@RammsteinAM
Copy link

RammsteinAM commented Mar 3, 2023

This is very frustrating.
Sadge (1)

Also when I write "query", open curly braces and press Enter, instead of a line break, Insomnia autofills the first query name. This is very inconvenient.

As a workaround I'm trying to use Space for the suggestions instead of Ctrl + Space, avoid pressing Enter, and use Ctrl + Shift + I to format the code several times during input. But it's not easy to get used to it and I don't even want to.

@itsfabijano
Copy link
Author

For me the only real workaround is to use this version 2022.6.0. All newer versions are difficult to use with GraphQL.

@flan6
Copy link

flan6 commented Mar 3, 2023

For me the only real workaround is to use this version 2022.6.0. All newer versions are difficult to use with GraphQL.

this version 2022.6.0 didnt work for me either. Same behavior, ctrl+space does nothing. even tried some older version 2022.5.1 and none worked as intended.

OS arch linux

@SamuelToh
Copy link

+1

This is frustrating, feels like a downgrade to me.

@oysandvik94
Copy link

Incredibly annoying, I have to run all my queries through a prettifier afterwards because I'm using space to trigger the autocomplete.

@itsfabijano
Copy link
Author

Any news here? I would like to update...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-graphql Area: GraphQL Protocol B-bug Bug: general classification S-verified Status: Verified by maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants