{"action":"created","comment":{"url":"https://api.github.com/repos/i3/i3/pulls/comments/31381542","id":31381542,"diff_hunk":"@@ -235,6 +235,13 @@ cmd 'move position 5 px 15 px';\n is($floatcon[0]->{rect}->{x}, 5, 'moved to position 5 x');\n is($floatcon[0]->{rect}->{y}, 15, 'moved to position 15 y');\n \n+cmd 'move relative position +3 px +7 px';","path":"testcases/t/124-move.t","position":4,"original_position":4,"commit_id":"7417f996ebbfe8f468536e680095980a52dd8d54","original_commit_id":"7417f996ebbfe8f468536e680095980a52dd8d54","user":{"login":"Airblader","id":2392216,"avatar_url":"https://avatars.githubusercontent.com/u/2392216?v=3","gravatar_id":"","url":"https://api.github.com/users/Airblader","html_url":"https://github.com/Airblader","followers_url":"https://api.github.com/users/Airblader/followers","following_url":"https://api.github.com/users/Airblader/following{/other_user}","gists_url":"https://api.github.com/users/Airblader/gists{/gist_id}","starred_url":"https://api.github.com/users/Airblader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Airblader/subscriptions","organizations_url":"https://api.github.com/users/Airblader/orgs","repos_url":"https://api.github.com/users/Airblader/repos","events_url":"https://api.github.com/users/Airblader/events{/privacy}","received_events_url":"https://api.github.com/users/Airblader/received_events","type":"User","site_admin":false},"body":"I would like to see a test that uses a negative value.","created_at":"2015-05-30T15:19:51Z","updated_at":"2015-05-30T15:19:51Z","html_url":"https://github.com/i3/i3/pull/1728#discussion_r31381542","pull_request_url":"https://api.github.com/repos/i3/i3/pulls/1728","_links":{"self":{"href":"https://api.github.com/repos/i3/i3/pulls/comments/31381542"},"html":{"href":"https://github.com/i3/i3/pull/1728#discussion_r31381542"},"pull_request":{"href":"https://api.github.com/repos/i3/i3/pulls/1728"}}},"pull_request":{"url":"https://api.github.com/repos/i3/i3/pulls/1728","id":36566916,"html_url":"https://github.com/i3/i3/pull/1728","diff_url":"https://github.com/i3/i3/pull/1728.diff","patch_url":"https://github.com/i3/i3/pull/1728.patch","issue_url":"https://api.github.com/repos/i3/i3/issues/1728","number":1728,"state":"open","locked":false,"title":"Add \"move relative position\" support","user":{"login":"rr-","id":1045476,"avatar_url":"https://avatars.githubusercontent.com/u/1045476?v=3","gravatar_id":"","url":"https://api.github.com/users/rr-","html_url":"https://github.com/rr-","followers_url":"https://api.github.com/users/rr-/followers","following_url":"https://api.github.com/users/rr-/following{/other_user}","gists_url":"https://api.github.com/users/rr-/gists{/gist_id}","starred_url":"https://api.github.com/users/rr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rr-/subscriptions","organizations_url":"https://api.github.com/users/rr-/orgs","repos_url":"https://api.github.com/users/rr-/repos","events_url":"https://api.github.com/users/rr-/events{/privacy}","received_events_url":"https://api.github.com/users/rr-/received_events","type":"User","site_admin":false},"body":"Right now we can move floating windows in following fashion:\r\n\r\n- to an absolute position\r\n- to the center of the screen\r\n- to the center of all screens\r\n- in the specified direction\r\n\r\nThe last one might be sufficient for simple key bindings, but it's rather cumbersome to use in scripts. This proposal adds `move relative position X Y` command, that offsets current window position by X value in horizontal axis and Y value in vertical axis.\r\n\r\nThis makes it complementary with `resize grow X Y` and `resize shrink X Y` commands.","created_at":"2015-05-30T15:12:04Z","updated_at":"2015-05-30T15:19:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"add4f3f11656c13eeb12bae360f2ce22eaf6dc96","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/i3/i3/pulls/1728/commits","review_comments_url":"https://api.github.com/repos/i3/i3/pulls/1728/comments","review_comment_url":"https://api.github.com/repos/i3/i3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/i3/i3/issues/1728/comments","statuses_url":"https://api.github.com/repos/i3/i3/statuses/7417f996ebbfe8f468536e680095980a52dd8d54","head":{"label":"rr-:move_relative","ref":"move_relative","sha":"7417f996ebbfe8f468536e680095980a52dd8d54","user":{"login":"rr-","id":1045476,"avatar_url":"https://avatars.githubusercontent.com/u/1045476?v=3","gravatar_id":"","url":"https://api.github.com/users/rr-","html_url":"https://github.com/rr-","followers_url":"https://api.github.com/users/rr-/followers","following_url":"https://api.github.com/users/rr-/following{/other_user}","gists_url":"https://api.github.com/users/rr-/gists{/gist_id}","starred_url":"https://api.github.com/users/rr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rr-/subscriptions","organizations_url":"https://api.github.com/users/rr-/orgs","repos_url":"https://api.github.com/users/rr-/repos","events_url":"https://api.github.com/users/rr-/events{/privacy}","received_events_url":"https://api.github.com/users/rr-/received_events","type":"User","site_admin":false},"repo":{"id":36562039,"name":"i3","full_name":"rr-/i3","owner":{"login":"rr-","id":1045476,"avatar_url":"https://avatars.githubusercontent.com/u/1045476?v=3","gravatar_id":"","url":"https://api.github.com/users/rr-","html_url":"https://github.com/rr-","followers_url":"https://api.github.com/users/rr-/followers","following_url":"https://api.github.com/users/rr-/following{/other_user}","gists_url":"https://api.github.com/users/rr-/gists{/gist_id}","starred_url":"https://api.github.com/users/rr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rr-/subscriptions","organizations_url":"https://api.github.com/users/rr-/orgs","repos_url":"https://api.github.com/users/rr-/repos","events_url":"https://api.github.com/users/rr-/events{/privacy}","received_events_url":"https://api.github.com/users/rr-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rr-/i3","description":"A better tiling and dynamic window manager","fork":true,"url":"https://api.github.com/repos/rr-/i3","forks_url":"https://api.github.com/repos/rr-/i3/forks","keys_url":"https://api.github.com/repos/rr-/i3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rr-/i3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rr-/i3/teams","hooks_url":"https://api.github.com/repos/rr-/i3/hooks","issue_events_url":"https://api.github.com/repos/rr-/i3/issues/events{/number}","events_url":"https://api.github.com/repos/rr-/i3/events","assignees_url":"https://api.github.com/repos/rr-/i3/assignees{/user}","branches_url":"https://api.github.com/repos/rr-/i3/branches{/branch}","tags_url":"https://api.github.com/repos/rr-/i3/tags","blobs_url":"https://api.github.com/repos/rr-/i3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rr-/i3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rr-/i3/git/refs{/sha}","trees_url":"https://api.github.com/repos/rr-/i3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rr-/i3/statuses/{sha}","languages_url":"https://api.github.com/repos/rr-/i3/languages","stargazers_url":"https://api.github.com/repos/rr-/i3/stargazers","contributors_url":"https://api.github.com/repos/rr-/i3/contributors","subscribers_url":"https://api.github.com/repos/rr-/i3/subscribers","subscription_url":"https://api.github.com/repos/rr-/i3/subscription","commits_url":"https://api.github.com/repos/rr-/i3/commits{/sha}","git_commits_url":"https://api.github.com/repos/rr-/i3/git/commits{/sha}","comments_url":"https://api.github.com/repos/rr-/i3/comments{/number}","issue_comment_url":"https://api.github.com/repos/rr-/i3/issues/comments{/number}","contents_url":"https://api.github.com/repos/rr-/i3/contents/{+path}","compare_url":"https://api.github.com/repos/rr-/i3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rr-/i3/merges","archive_url":"https://api.github.com/repos/rr-/i3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rr-/i3/downloads","issues_url":"https://api.github.com/repos/rr-/i3/issues{/number}","pulls_url":"https://api.github.com/repos/rr-/i3/pulls{/number}","milestones_url":"https://api.github.com/repos/rr-/i3/milestones{/number}","notifications_url":"https://api.github.com/repos/rr-/i3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rr-/i3/labels{/name}","releases_url":"https://api.github.com/repos/rr-/i3/releases{/id}","created_at":"2015-05-30T14:46:12Z","updated_at":"2015-05-30T14:46:14Z","pushed_at":"2015-05-30T15:06:14Z","git_url":"git://github.com/rr-/i3.git","ssh_url":"git@github.com:rr-/i3.git","clone_url":"https://github.com/rr-/i3.git","svn_url":"https://github.com/rr-/i3","homepage":"http://i3wm.org/","size":10019,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"next"}},"base":{"label":"i3:next","ref":"next","sha":"8029ff09d7ba8394bf9cab11b9a2776d4bdc12a5","user":{"login":"i3","id":7904352,"avatar_url":"https://avatars.githubusercontent.com/u/7904352?v=3","gravatar_id":"","url":"https://api.github.com/users/i3","html_url":"https://github.com/i3","followers_url":"https://api.github.com/users/i3/followers","following_url":"https://api.github.com/users/i3/following{/other_user}","gists_url":"https://api.github.com/users/i3/gists{/gist_id}","starred_url":"https://api.github.com/users/i3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i3/subscriptions","organizations_url":"https://api.github.com/users/i3/orgs","repos_url":"https://api.github.com/users/i3/repos","events_url":"https://api.github.com/users/i3/events{/privacy}","received_events_url":"https://api.github.com/users/i3/received_events","type":"Organization","site_admin":false},"repo":{"id":30291090,"name":"i3","full_name":"i3/i3","owner":{"login":"i3","id":7904352,"avatar_url":"https://avatars.githubusercontent.com/u/7904352?v=3","gravatar_id":"","url":"https://api.github.com/users/i3","html_url":"https://github.com/i3","followers_url":"https://api.github.com/users/i3/followers","following_url":"https://api.github.com/users/i3/following{/other_user}","gists_url":"https://api.github.com/users/i3/gists{/gist_id}","starred_url":"https://api.github.com/users/i3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i3/subscriptions","organizations_url":"https://api.github.com/users/i3/orgs","repos_url":"https://api.github.com/users/i3/repos","events_url":"https://api.github.com/users/i3/events{/privacy}","received_events_url":"https://api.github.com/users/i3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/i3/i3","description":"A better tiling and dynamic window manager","fork":false,"url":"https://api.github.com/repos/i3/i3","forks_url":"https://api.github.com/repos/i3/i3/forks","keys_url":"https://api.github.com/repos/i3/i3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/i3/i3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/i3/i3/teams","hooks_url":"https://api.github.com/repos/i3/i3/hooks","issue_events_url":"https://api.github.com/repos/i3/i3/issues/events{/number}","events_url":"https://api.github.com/repos/i3/i3/events","assignees_url":"https://api.github.com/repos/i3/i3/assignees{/user}","branches_url":"https://api.github.com/repos/i3/i3/branches{/branch}","tags_url":"https://api.github.com/repos/i3/i3/tags","blobs_url":"https://api.github.com/repos/i3/i3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/i3/i3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/i3/i3/git/refs{/sha}","trees_url":"https://api.github.com/repos/i3/i3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/i3/i3/statuses/{sha}","languages_url":"https://api.github.com/repos/i3/i3/languages","stargazers_url":"https://api.github.com/repos/i3/i3/stargazers","contributors_url":"https://api.github.com/repos/i3/i3/contributors","subscribers_url":"https://api.github.com/repos/i3/i3/subscribers","subscription_url":"https://api.github.com/repos/i3/i3/subscription","commits_url":"https://api.github.com/repos/i3/i3/commits{/sha}","git_commits_url":"https://api.github.com/repos/i3/i3/git/commits{/sha}","comments_url":"https://api.github.com/repos/i3/i3/comments{/number}","issue_comment_url":"https://api.github.com/repos/i3/i3/issues/comments{/number}","contents_url":"https://api.github.com/repos/i3/i3/contents/{+path}","compare_url":"https://api.github.com/repos/i3/i3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/i3/i3/merges","archive_url":"https://api.github.com/repos/i3/i3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/i3/i3/downloads","issues_url":"https://api.github.com/repos/i3/i3/issues{/number}","pulls_url":"https://api.github.com/repos/i3/i3/pulls{/number}","milestones_url":"https://api.github.com/repos/i3/i3/milestones{/number}","notifications_url":"https://api.github.com/repos/i3/i3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/i3/i3/labels{/name}","releases_url":"https://api.github.com/repos/i3/i3/releases{/id}","created_at":"2015-02-04T09:23:51Z","updated_at":"2015-05-28T22:34:20Z","pushed_at":"2015-05-30T15:12:05Z","git_url":"git://github.com/i3/i3.git","ssh_url":"git@github.com:i3/i3.git","clone_url":"https://github.com/i3/i3.git","svn_url":"https://github.com/i3/i3","homepage":"http://i3wm.org/","size":10019,"stargazers_count":403,"watchers_count":403,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":69,"forks":57,"open_issues":69,"watchers":403,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/i3/i3/pulls/1728"},"html":{"href":"https://github.com/i3/i3/pull/1728"},"issue":{"href":"https://api.github.com/repos/i3/i3/issues/1728"},"comments":{"href":"https://api.github.com/repos/i3/i3/issues/1728/comments"},"review_comments":{"href":"https://api.github.com/repos/i3/i3/pulls/1728/comments"},"review_comment":{"href":"https://api.github.com/repos/i3/i3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/i3/i3/pulls/1728/commits"},"statuses":{"href":"https://api.github.com/repos/i3/i3/statuses/7417f996ebbfe8f468536e680095980a52dd8d54"}}}}