question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VIM mode would be very nice

See original GitHub issue

This issue pertains to the following package(s):

  • GraphQL Playground - Electron App
  • [*] GraphQL Playground HTML
  • GraphQL Playground
  • GraphQL Playground Express Middleware
  • GraphQL Playground Hapi Middleware
  • GraphQL Playground Koa Middleware
  • GraphQL Playground Lambda Middleware

What OS and OS version are you experiencing the issue(s) on?

Mac OSX High Sierra (v10.13.5)

What version of graphql-playground(-electron/-middleware) are you experiencing the issue(s) on?

1.6.0 ? (whatever is bundled in apollo-server-express)

What is the expected behavior?

Expecting to enable VIM mode somehow

What is the actual behavior?

No VIM mode 😦

What steps may we take to reproduce the behavior?

n/a, but @nilan mentioned one should open an issue here to request it be re-added 🥇

Please provide a gif or image of the issue for a quicker response/fix.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:32
  • Comments:5

github_iconTop GitHub Comments

7reactions
andweebcommented, May 12, 2019

Has anyone been able to make any progress on this? It was fairly simple to add an editor setting to enable vim as you can see from my changes here.

Instead of the explicit vim mode toggle in the linked commit in @mcabrams’ comment, I introduce a generic "editor.keyMap" setting, which can have values "vim", "emacs", or the default "sublime".

It’s usable (at least for me) but I wouldn’t consider it complete, since for some reason the cursor doesn’t appear in the light theme and pressing the escape key occasionally doesn’t exit insert mode to normal mode (and I haven’t really tested emacs mode).

2reactions
mcabramscommented, Feb 5, 2019

@christianrondeau here’s where it was added: https://github.com/prisma/graphql-playground/commit/0138105967e7f009dde79c49cc0a0a2beb33f29a - should be enough to get started/use some git fu to find where it was removed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VIM mode would be very nice · Issue #794 · graphql ... - GitHub
This issue pertains to the following package(s): GraphQL Playground - Electron App [*] GraphQL Playground HTML GraphQL Playground GraphQL ...
Read more >
Learning the vi Editor/Vim/Modes - Wikibooks
Modes Edit. VIM offers more modes than vi (which offers only the "normal", "insert" and "command–line" modes). These additional modes make VIM more...
Read more >
Alacritty's New Vim Mode And Other Awesome Features
... to Alacritty it received a new set of features, one that really peaked my interest was the introduction of a so called...
Read more >
Xcode 13 vim mode documentation? | Apple Developer Forums
Yah, same question here. I'm so excited to to see what a builtin support for vim would be like, and how can users...
Read more >
Vim Cheat Sheet
Tip Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines. Insert mode - inserting/appending...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found