{"action":"created","issue":{"url":"https://api.github.com/repos/NickTomlin/pocketvim/issues/7","labels_url":"https://api.github.com/repos/NickTomlin/pocketvim/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/NickTomlin/pocketvim/issues/7/comments","events_url":"https://api.github.com/repos/NickTomlin/pocketvim/issues/7/events","html_url":"https://github.com/NickTomlin/pocketvim/issues/7","id":126332836,"number":7,"title":"Okay, this would be way awesome:  Ctrl+W","user":{"login":"superscript18","id":7308014,"avatar_url":"https://avatars.githubusercontent.com/u/7308014?v=3","gravatar_id":"","url":"https://api.github.com/users/superscript18","html_url":"https://github.com/superscript18","followers_url":"https://api.github.com/users/superscript18/followers","following_url":"https://api.github.com/users/superscript18/following{/other_user}","gists_url":"https://api.github.com/users/superscript18/gists{/gist_id}","starred_url":"https://api.github.com/users/superscript18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superscript18/subscriptions","organizations_url":"https://api.github.com/users/superscript18/orgs","repos_url":"https://api.github.com/users/superscript18/repos","events_url":"https://api.github.com/users/superscript18/events{/privacy}","received_events_url":"https://api.github.com/users/superscript18/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-13T03:28:34Z","updated_at":"2016-01-13T05:30:25Z","closed_at":null,"body":"JSFiddle's different editor panes are arranged reminiscent of Vim's windows.  So it would be just *dreamy* if we could use the Ctrl+W keybindings to switch between them.\r\n\r\nAny chance?"},"comment":{"url":"https://api.github.com/repos/NickTomlin/pocketvim/issues/comments/171175404","html_url":"https://github.com/NickTomlin/pocketvim/issues/7#issuecomment-171175404","issue_url":"https://api.github.com/repos/NickTomlin/pocketvim/issues/7","id":171175404,"user":{"login":"superscript18","id":7308014,"avatar_url":"https://avatars.githubusercontent.com/u/7308014?v=3","gravatar_id":"","url":"https://api.github.com/users/superscript18","html_url":"https://github.com/superscript18","followers_url":"https://api.github.com/users/superscript18/followers","following_url":"https://api.github.com/users/superscript18/following{/other_user}","gists_url":"https://api.github.com/users/superscript18/gists{/gist_id}","starred_url":"https://api.github.com/users/superscript18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superscript18/subscriptions","organizations_url":"https://api.github.com/users/superscript18/orgs","repos_url":"https://api.github.com/users/superscript18/repos","events_url":"https://api.github.com/users/superscript18/events{/privacy}","received_events_url":"https://api.github.com/users/superscript18/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T05:30:25Z","updated_at":"2016-01-13T05:30:25Z","body":"Hey neat, I guess I missed that key map option.\n\nAnd yea, I don't know exactly how to do the layout switching universally.\nI think it would look something like finding the editor instances and\ncomparing their bounding rectangles.  Also, in order not to break with\ndynamic (rearrangable) window features, figuring the geometry might be best\nwhen you hit Ctrl+W rather than on load.\n\nAnyway, I haven't really got into your code, but I will take a look and see\nif I can find an unobtrusive way to go about it.\n\nKeep it up!\n\nOn Tue, Jan 12, 2016 at 8:42 PM Nick Tomlin <notifications@github.com>\nwrote:\n\n> Interesting! Ideally pocketvim should be as light touch as possible, just\n> setting up the bindings and letting them do their work, so i'm hesitant to\n> try and add a feature like this since it require adding a key binding to\n> Ace/Codemirror when we hook into it.. It could work if there's a simple\n> univeralish way to decide which windows to switch to (maybe just look for\n> instances of CodeMirror or Ace on the page?). What do you think?\n>\n> Also, JSFiddle actually has vim support built in now, so you don't even\n> need pocket vim!\n>\n> [image: screen shot 2016-01-12 at 9 38 01 pm]\n> <https://cloud.githubusercontent.com/assets/1290336/12284363/c512bc9c-b974-11e5-99a1-61ac32e7a200.png>\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/NickTomlin/pocketvim/issues/7#issuecomment-171153063>.\n>\n"}}