{"action":"created","comment":{"url":"https://api.github.com/repos/neovim/neovim/pulls/comments/37939486","id":37939486,"diff_hunk":"@@ -0,0 +1,99 @@\n+-- Specs for :cd, :tcd, :lcd and hastabdir(), haslocaldir()\n+\n+local helpers = require('test.functional.helpers')\n+local execute, eq, clear, eval, feed =\n+  helpers.execute, helpers.eq, helpers.clear, helpers.eval, helpers.feed\n+\n+\n+-- These directories will be created for testing\n+local directories = {\n+  'Xtest-functional-ex_cmds-cd_spec.1', -- Tab\n+  'Xtest-functional-ex_cmds-cd_spec.2', -- Window\n+  'Xtest-functional-ex_cmds-cd_spec.3', -- New global\n+}\n+\n+-- Shorthand writing to get the current working directory\n+local wd  = function() return eval('getcwd()'     ) end\n+local htd = function() return eval('hastabdir()'  ) end\n+local hld = function() return eval('haslocaldir()') end\n+\n+-- Test both the `cd` and `chdir` variants\n+for _, cmd in ipairs {'cd', 'chdir'} do\n+  describe(':*' .. cmd, function()\n+    before_each(function()\n+      clear()\n+      for _, d in ipairs(directories) do\n+        lfs.mkdir(d)\n+      end\n+    end)\n+\n+    after_each(function()\n+      for _, d in ipairs(directories) do\n+        lfs.rmdir(d)\n+      end\n+    end)\n+\n+    it('works', function()","path":"test/functional/ex_cmds/cd_spec.lua","position":36,"original_position":36,"commit_id":"f64c811d0ddd72408020ec45cc6426c082e477fd","original_commit_id":"f64c811d0ddd72408020ec45cc6426c082e477fd","user":{"login":"justinmk","id":1359421,"avatar_url":"https://avatars.githubusercontent.com/u/1359421?v=3","gravatar_id":"","url":"https://api.github.com/users/justinmk","html_url":"https://github.com/justinmk","followers_url":"https://api.github.com/users/justinmk/followers","following_url":"https://api.github.com/users/justinmk/following{/other_user}","gists_url":"https://api.github.com/users/justinmk/gists{/gist_id}","starred_url":"https://api.github.com/users/justinmk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinmk/subscriptions","organizations_url":"https://api.github.com/users/justinmk/orgs","repos_url":"https://api.github.com/users/justinmk/repos","events_url":"https://api.github.com/users/justinmk/events{/privacy}","received_events_url":"https://api.github.com/users/justinmk/received_events","type":"User","site_admin":false},"body":"Would prefer if this test were broken into multiple small `it()` blocks instead of one giant block, unless that is painful for some reason.","created_at":"2015-08-26T01:42:18Z","updated_at":"2015-08-26T01:42:18Z","html_url":"https://github.com/neovim/neovim/pull/3229#discussion_r37939486","pull_request_url":"https://api.github.com/repos/neovim/neovim/pulls/3229","_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments/37939486"},"html":{"href":"https://github.com/neovim/neovim/pull/3229#discussion_r37939486"},"pull_request":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3229"}}},"pull_request":{"url":"https://api.github.com/repos/neovim/neovim/pulls/3229","id":43163303,"html_url":"https://github.com/neovim/neovim/pull/3229","diff_url":"https://github.com/neovim/neovim/pull/3229.diff","patch_url":"https://github.com/neovim/neovim/pull/3229.patch","issue_url":"https://api.github.com/repos/neovim/neovim/issues/3229","number":3229,"state":"open","locked":false,"title":"[RDY]Implement tab-local working directory feature.","user":{"login":"HiPhish","id":4954650,"avatar_url":"https://avatars.githubusercontent.com/u/4954650?v=3","gravatar_id":"","url":"https://api.github.com/users/HiPhish","html_url":"https://github.com/HiPhish","followers_url":"https://api.github.com/users/HiPhish/followers","following_url":"https://api.github.com/users/HiPhish/following{/other_user}","gists_url":"https://api.github.com/users/HiPhish/gists{/gist_id}","starred_url":"https://api.github.com/users/HiPhish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiPhish/subscriptions","organizations_url":"https://api.github.com/users/HiPhish/orgs","repos_url":"https://api.github.com/users/HiPhish/repos","events_url":"https://api.github.com/users/HiPhish/events{/privacy}","received_events_url":"https://api.github.com/users/HiPhish/received_events","type":"User","site_admin":false},"body":"The new :tcd command was requested by me in issue #3175. It adds tab-local working directories in addition to window-local ones.\r\n\r\nI had already a pull request for this (#3178) but I messed up the commit history, so I deleted to old repository and I'm submitting the new one as ready to merge. Please delete the old pull request.","created_at":"2015-08-24T11:08:16Z","updated_at":"2015-08-26T01:42:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"353f458e6a4b250ffe18862f4dc289f673955c7d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/neovim/neovim/pulls/3229/commits","review_comments_url":"https://api.github.com/repos/neovim/neovim/pulls/3229/comments","review_comment_url":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/3229/comments","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/f64c811d0ddd72408020ec45cc6426c082e477fd","head":{"label":"HiPhish:ex-tcd","ref":"ex-tcd","sha":"f64c811d0ddd72408020ec45cc6426c082e477fd","user":{"login":"HiPhish","id":4954650,"avatar_url":"https://avatars.githubusercontent.com/u/4954650?v=3","gravatar_id":"","url":"https://api.github.com/users/HiPhish","html_url":"https://github.com/HiPhish","followers_url":"https://api.github.com/users/HiPhish/followers","following_url":"https://api.github.com/users/HiPhish/following{/other_user}","gists_url":"https://api.github.com/users/HiPhish/gists{/gist_id}","starred_url":"https://api.github.com/users/HiPhish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiPhish/subscriptions","organizations_url":"https://api.github.com/users/HiPhish/orgs","repos_url":"https://api.github.com/users/HiPhish/repos","events_url":"https://api.github.com/users/HiPhish/events{/privacy}","received_events_url":"https://api.github.com/users/HiPhish/received_events","type":"User","site_admin":false},"repo":{"id":41297545,"name":"neovim","full_name":"HiPhish/neovim","owner":{"login":"HiPhish","id":4954650,"avatar_url":"https://avatars.githubusercontent.com/u/4954650?v=3","gravatar_id":"","url":"https://api.github.com/users/HiPhish","html_url":"https://github.com/HiPhish","followers_url":"https://api.github.com/users/HiPhish/followers","following_url":"https://api.github.com/users/HiPhish/following{/other_user}","gists_url":"https://api.github.com/users/HiPhish/gists{/gist_id}","starred_url":"https://api.github.com/users/HiPhish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HiPhish/subscriptions","organizations_url":"https://api.github.com/users/HiPhish/orgs","repos_url":"https://api.github.com/users/HiPhish/repos","events_url":"https://api.github.com/users/HiPhish/events{/privacy}","received_events_url":"https://api.github.com/users/HiPhish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HiPhish/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":true,"url":"https://api.github.com/repos/HiPhish/neovim","forks_url":"https://api.github.com/repos/HiPhish/neovim/forks","keys_url":"https://api.github.com/repos/HiPhish/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HiPhish/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HiPhish/neovim/teams","hooks_url":"https://api.github.com/repos/HiPhish/neovim/hooks","issue_events_url":"https://api.github.com/repos/HiPhish/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/HiPhish/neovim/events","assignees_url":"https://api.github.com/repos/HiPhish/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/HiPhish/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/HiPhish/neovim/tags","blobs_url":"https://api.github.com/repos/HiPhish/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HiPhish/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HiPhish/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/HiPhish/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HiPhish/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/HiPhish/neovim/languages","stargazers_url":"https://api.github.com/repos/HiPhish/neovim/stargazers","contributors_url":"https://api.github.com/repos/HiPhish/neovim/contributors","subscribers_url":"https://api.github.com/repos/HiPhish/neovim/subscribers","subscription_url":"https://api.github.com/repos/HiPhish/neovim/subscription","commits_url":"https://api.github.com/repos/HiPhish/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/HiPhish/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/HiPhish/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/HiPhish/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/HiPhish/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/HiPhish/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HiPhish/neovim/merges","archive_url":"https://api.github.com/repos/HiPhish/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HiPhish/neovim/downloads","issues_url":"https://api.github.com/repos/HiPhish/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/HiPhish/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/HiPhish/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/HiPhish/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HiPhish/neovim/labels{/name}","releases_url":"https://api.github.com/repos/HiPhish/neovim/releases{/id}","created_at":"2015-08-24T10:39:07Z","updated_at":"2015-08-24T10:39:12Z","pushed_at":"2015-08-25T08:48:31Z","git_url":"git://github.com/HiPhish/neovim.git","ssh_url":"git@github.com:HiPhish/neovim.git","clone_url":"https://github.com/HiPhish/neovim.git","svn_url":"https://github.com/HiPhish/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":33016,"stargazers_count":0,"watchers_count":0,"language":"VimL","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":"neovim:master","ref":"master","sha":"5066128d484ee8d0cb10ddd2260c3f5b47104b92","user":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"repo":{"id":16408992,"name":"neovim","full_name":"neovim/neovim","owner":{"login":"neovim","id":6471485,"avatar_url":"https://avatars.githubusercontent.com/u/6471485?v=3","gravatar_id":"","url":"https://api.github.com/users/neovim","html_url":"https://github.com/neovim","followers_url":"https://api.github.com/users/neovim/followers","following_url":"https://api.github.com/users/neovim/following{/other_user}","gists_url":"https://api.github.com/users/neovim/gists{/gist_id}","starred_url":"https://api.github.com/users/neovim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neovim/subscriptions","organizations_url":"https://api.github.com/users/neovim/orgs","repos_url":"https://api.github.com/users/neovim/repos","events_url":"https://api.github.com/users/neovim/events{/privacy}","received_events_url":"https://api.github.com/users/neovim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neovim/neovim","description":"Vim-fork focused on extensibility and agility. Consider helping sustain Neovim development! ","fork":false,"url":"https://api.github.com/repos/neovim/neovim","forks_url":"https://api.github.com/repos/neovim/neovim/forks","keys_url":"https://api.github.com/repos/neovim/neovim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neovim/neovim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neovim/neovim/teams","hooks_url":"https://api.github.com/repos/neovim/neovim/hooks","issue_events_url":"https://api.github.com/repos/neovim/neovim/issues/events{/number}","events_url":"https://api.github.com/repos/neovim/neovim/events","assignees_url":"https://api.github.com/repos/neovim/neovim/assignees{/user}","branches_url":"https://api.github.com/repos/neovim/neovim/branches{/branch}","tags_url":"https://api.github.com/repos/neovim/neovim/tags","blobs_url":"https://api.github.com/repos/neovim/neovim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neovim/neovim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neovim/neovim/git/refs{/sha}","trees_url":"https://api.github.com/repos/neovim/neovim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neovim/neovim/statuses/{sha}","languages_url":"https://api.github.com/repos/neovim/neovim/languages","stargazers_url":"https://api.github.com/repos/neovim/neovim/stargazers","contributors_url":"https://api.github.com/repos/neovim/neovim/contributors","subscribers_url":"https://api.github.com/repos/neovim/neovim/subscribers","subscription_url":"https://api.github.com/repos/neovim/neovim/subscription","commits_url":"https://api.github.com/repos/neovim/neovim/commits{/sha}","git_commits_url":"https://api.github.com/repos/neovim/neovim/git/commits{/sha}","comments_url":"https://api.github.com/repos/neovim/neovim/comments{/number}","issue_comment_url":"https://api.github.com/repos/neovim/neovim/issues/comments{/number}","contents_url":"https://api.github.com/repos/neovim/neovim/contents/{+path}","compare_url":"https://api.github.com/repos/neovim/neovim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neovim/neovim/merges","archive_url":"https://api.github.com/repos/neovim/neovim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neovim/neovim/downloads","issues_url":"https://api.github.com/repos/neovim/neovim/issues{/number}","pulls_url":"https://api.github.com/repos/neovim/neovim/pulls{/number}","milestones_url":"https://api.github.com/repos/neovim/neovim/milestones{/number}","notifications_url":"https://api.github.com/repos/neovim/neovim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neovim/neovim/labels{/name}","releases_url":"https://api.github.com/repos/neovim/neovim/releases{/id}","created_at":"2014-01-31T13:39:22Z","updated_at":"2015-08-26T00:33:53Z","pushed_at":"2015-08-26T01:38:31Z","git_url":"git://github.com/neovim/neovim.git","ssh_url":"git@github.com:neovim/neovim.git","clone_url":"https://github.com/neovim/neovim.git","svn_url":"https://github.com/neovim/neovim","homepage":"https://salt.bountysource.com/teams/neovim","size":80787,"stargazers_count":14704,"watchers_count":14704,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1018,"mirror_url":null,"open_issues_count":525,"forks":1018,"open_issues":525,"watchers":14704,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3229"},"html":{"href":"https://github.com/neovim/neovim/pull/3229"},"issue":{"href":"https://api.github.com/repos/neovim/neovim/issues/3229"},"comments":{"href":"https://api.github.com/repos/neovim/neovim/issues/3229/comments"},"review_comments":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3229/comments"},"review_comment":{"href":"https://api.github.com/repos/neovim/neovim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neovim/neovim/pulls/3229/commits"},"statuses":{"href":"https://api.github.com/repos/neovim/neovim/statuses/f64c811d0ddd72408020ec45cc6426c082e477fd"}}}}