rhysd / NyaoVim

Web-enhanced Extensible Neovim Frontend
Other
2.22k stars 57 forks source link

Unable to open developer tools #55

Closed ukch closed 8 years ago

ukch commented 8 years ago

Expected Behavior

From the readme:

You would see minimal Neovim GUI editor (as normal gVim). This is Electron app and Neovim is drawn on . You can see DevTools of this app with 'Developer Tools' menu item.

Actual Behavior

No menus are visible. Pressing F12 or ctrl-shift-i has no visible effect.

Screenshot on This Problem (if possible)

screenshot from 2016-06-03 14-49-59

Your Environment

ukch commented 8 years ago

I have realised I can press 'alt' to toggle the menu on and off. Perhaps it would be helpful to mention this in the readme, for those of us who are not so familiar with Electron?

Delapouite commented 8 years ago

Pressing alt to reveal hidden menus is not specific to Electron. Similiar behavior can be triggered on other apps like Firefox for instance. But yes some clarification is always better.

rhysd commented 8 years ago

Pressing F12 or ctrl-shift-i has no visible effect.

Yes, they are sent to Neovim and not handled in Electron app.

If you can't access to menu, easiest way is to launch this app with debug mode.

$ NODE_ENV=debug nyaovim

It opens DevTools at start. I'm not sure but adding :ToggleDevTools command to NyaoVim's runtime may be handy.