{"action":"created","comment":{"url":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/comments/38824081","id":38824081,"diff_hunk":"@@ -148,6 +148,40 @@ - (void)notified:(const std::string &)note withData:(const msgpack::object &)upd\n         AppDelegate *app = (AppDelegate *)[NSApp delegate];\n         [app newWindow];\n     }\n+    else if (note == \"neovim.app.openFile\") {\n+        NSArray *files = [mMainView showFileOpenDialog];\n+        if (files != nil) {\n+            std::vector<char *> args;\n+\n+            /* open in tabs if more than one file was selected */\n+            if ([files count] > 1)\n+                args.push_back(const_cast<char *>(\"-p\"));\n+\n+            for (NSURL *url in files) \n+                args.push_back(const_cast<char *>([[url path] UTF8String]));\n+\n+            AppDelegate *app = (AppDelegate *)[NSApp delegate];\n+            [app newWindowWithArgs:args];\n+        }\n+    }\n+    else if (note == \"neovim.app.saveFile\") {\n+        NSURL *file = [mMainView showFileSaveDialog];\n+        if (file != nil)\n+        {\n+            std::stringstream cmd;\n+            cmd << \"w \" << [[file path] UTF8String];","path":"src/window.mm","position":25,"original_position":25,"commit_id":"be110551f6724843b27cd1f7641a74529e0a5c57","original_commit_id":"be110551f6724843b27cd1f7641a74529e0a5c57","user":{"login":"rogual","id":520855,"avatar_url":"https://avatars.githubusercontent.com/u/520855?v=3","gravatar_id":"","url":"https://api.github.com/users/rogual","html_url":"https://github.com/rogual","followers_url":"https://api.github.com/users/rogual/followers","following_url":"https://api.github.com/users/rogual/following{/other_user}","gists_url":"https://api.github.com/users/rogual/gists{/gist_id}","starred_url":"https://api.github.com/users/rogual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogual/subscriptions","organizations_url":"https://api.github.com/users/rogual/orgs","repos_url":"https://api.github.com/users/rogual/repos","events_url":"https://api.github.com/users/rogual/events{/privacy}","received_events_url":"https://api.github.com/users/rogual/received_events","type":"User","site_admin":false},"body":"I just tried it and I couldn't save a file named `a b` or `a\"b`.","created_at":"2015-09-06T17:50:43Z","updated_at":"2015-09-06T17:50:43Z","html_url":"https://github.com/rogual/neovim-dot-app/pull/117#discussion_r38824081","pull_request_url":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/comments/38824081"},"html":{"href":"https://github.com/rogual/neovim-dot-app/pull/117#discussion_r38824081"},"pull_request":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/117","id":44293213,"html_url":"https://github.com/rogual/neovim-dot-app/pull/117","diff_url":"https://github.com/rogual/neovim-dot-app/pull/117.diff","patch_url":"https://github.com/rogual/neovim-dot-app/pull/117.patch","issue_url":"https://api.github.com/repos/rogual/neovim-dot-app/issues/117","number":117,"state":"open","locked":false,"title":"Opening and Saving files via dialog boxes","user":{"login":"bambu","id":564972,"avatar_url":"https://avatars.githubusercontent.com/u/564972?v=3","gravatar_id":"","url":"https://api.github.com/users/bambu","html_url":"https://github.com/bambu","followers_url":"https://api.github.com/users/bambu/followers","following_url":"https://api.github.com/users/bambu/following{/other_user}","gists_url":"https://api.github.com/users/bambu/gists{/gist_id}","starred_url":"https://api.github.com/users/bambu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bambu/subscriptions","organizations_url":"https://api.github.com/users/bambu/orgs","repos_url":"https://api.github.com/users/bambu/repos","events_url":"https://api.github.com/users/bambu/events{/privacy}","received_events_url":"https://api.github.com/users/bambu/received_events","type":"User","site_admin":false},"body":"* Added Open and Save panels.\r\n* Cmd-O, Cmd-S, and Cmd-Shift-S to Open, Save and Save As.\r\n* Added menu entries for all three options.\r\n* When multiple files are opened via the open dialog box, the are opened in seperate tabs.\r\n","created_at":"2015-09-06T01:22:24Z","updated_at":"2015-09-06T17:50:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12ad51ed5650ec8adc2c33a4169e6317c928ccf4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/117/commits","review_comments_url":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/117/comments","review_comment_url":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rogual/neovim-dot-app/issues/117/comments","statuses_url":"https://api.github.com/repos/rogual/neovim-dot-app/statuses/be110551f6724843b27cd1f7641a74529e0a5c57","head":{"label":"bambu:master","ref":"master","sha":"be110551f6724843b27cd1f7641a74529e0a5c57","user":{"login":"bambu","id":564972,"avatar_url":"https://avatars.githubusercontent.com/u/564972?v=3","gravatar_id":"","url":"https://api.github.com/users/bambu","html_url":"https://github.com/bambu","followers_url":"https://api.github.com/users/bambu/followers","following_url":"https://api.github.com/users/bambu/following{/other_user}","gists_url":"https://api.github.com/users/bambu/gists{/gist_id}","starred_url":"https://api.github.com/users/bambu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bambu/subscriptions","organizations_url":"https://api.github.com/users/bambu/orgs","repos_url":"https://api.github.com/users/bambu/repos","events_url":"https://api.github.com/users/bambu/events{/privacy}","received_events_url":"https://api.github.com/users/bambu/received_events","type":"User","site_admin":false},"repo":{"id":41123011,"name":"neovim-dot-app","full_name":"bambu/neovim-dot-app","owner":{"login":"bambu","id":564972,"avatar_url":"https://avatars.githubusercontent.com/u/564972?v=3","gravatar_id":"","url":"https://api.github.com/users/bambu","html_url":"https://github.com/bambu","followers_url":"https://api.github.com/users/bambu/followers","following_url":"https://api.github.com/users/bambu/following{/other_user}","gists_url":"https://api.github.com/users/bambu/gists{/gist_id}","starred_url":"https://api.github.com/users/bambu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bambu/subscriptions","organizations_url":"https://api.github.com/users/bambu/orgs","repos_url":"https://api.github.com/users/bambu/repos","events_url":"https://api.github.com/users/bambu/events{/privacy}","received_events_url":"https://api.github.com/users/bambu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bambu/neovim-dot-app","description":"Mac OS X GUI for Neovim","fork":true,"url":"https://api.github.com/repos/bambu/neovim-dot-app","forks_url":"https://api.github.com/repos/bambu/neovim-dot-app/forks","keys_url":"https://api.github.com/repos/bambu/neovim-dot-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bambu/neovim-dot-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bambu/neovim-dot-app/teams","hooks_url":"https://api.github.com/repos/bambu/neovim-dot-app/hooks","issue_events_url":"https://api.github.com/repos/bambu/neovim-dot-app/issues/events{/number}","events_url":"https://api.github.com/repos/bambu/neovim-dot-app/events","assignees_url":"https://api.github.com/repos/bambu/neovim-dot-app/assignees{/user}","branches_url":"https://api.github.com/repos/bambu/neovim-dot-app/branches{/branch}","tags_url":"https://api.github.com/repos/bambu/neovim-dot-app/tags","blobs_url":"https://api.github.com/repos/bambu/neovim-dot-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bambu/neovim-dot-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bambu/neovim-dot-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/bambu/neovim-dot-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bambu/neovim-dot-app/statuses/{sha}","languages_url":"https://api.github.com/repos/bambu/neovim-dot-app/languages","stargazers_url":"https://api.github.com/repos/bambu/neovim-dot-app/stargazers","contributors_url":"https://api.github.com/repos/bambu/neovim-dot-app/contributors","subscribers_url":"https://api.github.com/repos/bambu/neovim-dot-app/subscribers","subscription_url":"https://api.github.com/repos/bambu/neovim-dot-app/subscription","commits_url":"https://api.github.com/repos/bambu/neovim-dot-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/bambu/neovim-dot-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/bambu/neovim-dot-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/bambu/neovim-dot-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/bambu/neovim-dot-app/contents/{+path}","compare_url":"https://api.github.com/repos/bambu/neovim-dot-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bambu/neovim-dot-app/merges","archive_url":"https://api.github.com/repos/bambu/neovim-dot-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bambu/neovim-dot-app/downloads","issues_url":"https://api.github.com/repos/bambu/neovim-dot-app/issues{/number}","pulls_url":"https://api.github.com/repos/bambu/neovim-dot-app/pulls{/number}","milestones_url":"https://api.github.com/repos/bambu/neovim-dot-app/milestones{/number}","notifications_url":"https://api.github.com/repos/bambu/neovim-dot-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bambu/neovim-dot-app/labels{/name}","releases_url":"https://api.github.com/repos/bambu/neovim-dot-app/releases{/id}","created_at":"2015-08-20T23:14:07Z","updated_at":"2015-08-20T23:14:08Z","pushed_at":"2015-09-06T14:11:56Z","git_url":"git://github.com/bambu/neovim-dot-app.git","ssh_url":"git@github.com:bambu/neovim-dot-app.git","clone_url":"https://github.com/bambu/neovim-dot-app.git","svn_url":"https://github.com/bambu/neovim-dot-app","homepage":"","size":849,"stargazers_count":0,"watchers_count":0,"language":"Objective-C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rogual:master","ref":"master","sha":"3bba8d125981688dd224b03b3122e68eccb60223","user":{"login":"rogual","id":520855,"avatar_url":"https://avatars.githubusercontent.com/u/520855?v=3","gravatar_id":"","url":"https://api.github.com/users/rogual","html_url":"https://github.com/rogual","followers_url":"https://api.github.com/users/rogual/followers","following_url":"https://api.github.com/users/rogual/following{/other_user}","gists_url":"https://api.github.com/users/rogual/gists{/gist_id}","starred_url":"https://api.github.com/users/rogual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogual/subscriptions","organizations_url":"https://api.github.com/users/rogual/orgs","repos_url":"https://api.github.com/users/rogual/repos","events_url":"https://api.github.com/users/rogual/events{/privacy}","received_events_url":"https://api.github.com/users/rogual/received_events","type":"User","site_admin":false},"repo":{"id":32811257,"name":"neovim-dot-app","full_name":"rogual/neovim-dot-app","owner":{"login":"rogual","id":520855,"avatar_url":"https://avatars.githubusercontent.com/u/520855?v=3","gravatar_id":"","url":"https://api.github.com/users/rogual","html_url":"https://github.com/rogual","followers_url":"https://api.github.com/users/rogual/followers","following_url":"https://api.github.com/users/rogual/following{/other_user}","gists_url":"https://api.github.com/users/rogual/gists{/gist_id}","starred_url":"https://api.github.com/users/rogual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogual/subscriptions","organizations_url":"https://api.github.com/users/rogual/orgs","repos_url":"https://api.github.com/users/rogual/repos","events_url":"https://api.github.com/users/rogual/events{/privacy}","received_events_url":"https://api.github.com/users/rogual/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rogual/neovim-dot-app","description":"Mac OS X GUI for Neovim","fork":false,"url":"https://api.github.com/repos/rogual/neovim-dot-app","forks_url":"https://api.github.com/repos/rogual/neovim-dot-app/forks","keys_url":"https://api.github.com/repos/rogual/neovim-dot-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rogual/neovim-dot-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rogual/neovim-dot-app/teams","hooks_url":"https://api.github.com/repos/rogual/neovim-dot-app/hooks","issue_events_url":"https://api.github.com/repos/rogual/neovim-dot-app/issues/events{/number}","events_url":"https://api.github.com/repos/rogual/neovim-dot-app/events","assignees_url":"https://api.github.com/repos/rogual/neovim-dot-app/assignees{/user}","branches_url":"https://api.github.com/repos/rogual/neovim-dot-app/branches{/branch}","tags_url":"https://api.github.com/repos/rogual/neovim-dot-app/tags","blobs_url":"https://api.github.com/repos/rogual/neovim-dot-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rogual/neovim-dot-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rogual/neovim-dot-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/rogual/neovim-dot-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rogual/neovim-dot-app/statuses/{sha}","languages_url":"https://api.github.com/repos/rogual/neovim-dot-app/languages","stargazers_url":"https://api.github.com/repos/rogual/neovim-dot-app/stargazers","contributors_url":"https://api.github.com/repos/rogual/neovim-dot-app/contributors","subscribers_url":"https://api.github.com/repos/rogual/neovim-dot-app/subscribers","subscription_url":"https://api.github.com/repos/rogual/neovim-dot-app/subscription","commits_url":"https://api.github.com/repos/rogual/neovim-dot-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/rogual/neovim-dot-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/rogual/neovim-dot-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/rogual/neovim-dot-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/rogual/neovim-dot-app/contents/{+path}","compare_url":"https://api.github.com/repos/rogual/neovim-dot-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rogual/neovim-dot-app/merges","archive_url":"https://api.github.com/repos/rogual/neovim-dot-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rogual/neovim-dot-app/downloads","issues_url":"https://api.github.com/repos/rogual/neovim-dot-app/issues{/number}","pulls_url":"https://api.github.com/repos/rogual/neovim-dot-app/pulls{/number}","milestones_url":"https://api.github.com/repos/rogual/neovim-dot-app/milestones{/number}","notifications_url":"https://api.github.com/repos/rogual/neovim-dot-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rogual/neovim-dot-app/labels{/name}","releases_url":"https://api.github.com/repos/rogual/neovim-dot-app/releases{/id}","created_at":"2015-03-24T16:37:50Z","updated_at":"2015-09-05T19:12:21Z","pushed_at":"2015-09-06T16:49:43Z","git_url":"git://github.com/rogual/neovim-dot-app.git","ssh_url":"git@github.com:rogual/neovim-dot-app.git","clone_url":"https://github.com/rogual/neovim-dot-app.git","svn_url":"https://github.com/rogual/neovim-dot-app","homepage":"","size":1885,"stargazers_count":365,"watchers_count":365,"language":"Objective-C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":33,"forks":28,"open_issues":33,"watchers":365,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/117"},"html":{"href":"https://github.com/rogual/neovim-dot-app/pull/117"},"issue":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/issues/117"},"comments":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/rogual/neovim-dot-app/statuses/be110551f6724843b27cd1f7641a74529e0a5c57"}}}}