{"action":"created","comment":{"url":"https://api.github.com/repos/PolyglotSymposium/void/pulls/comments/39526942","id":39526942,"diff_hunk":"@@ -0,0 +1,224 @@\n+﻿namespace Void.ViewModel.Spec\r\n+\r\n+open Void.ViewModel\r\n+open Void.Core\r\n+open Void.Core.CellGrid\r\n+open System\r\n+open System.Linq\r\n+open NUnit.Framework\r\n+open FsUnit\r\n+\r\n+[<AutoOpen>]\r\n+module Assertions =\r\n+    let shouldEqual expected actual =\r\n+        printfn \"Expected: %A\" expected\r\n+        printfn \"Actual: %A\" actual\r\n+        should equal expected actual\r\n+\r\n+[<TestFixture>]\r\n+type ``Constructing a buffer view model from a sequence of text lines``() = \r\n+    let asViewModelBuffer = Window.bufferFrom { Rows = 25; Columns = 80 }\r\n+\r\n+    [<Test>]\r\n+    member x.``should create an empty buffer view model from an empty buffer``() =\r\n+        asViewModelBuffer Seq.empty\r\n+        |> should equal []\r\n+\r\n+    [<Test>]\r\n+    member x.``for one line, shorter than the window width, should create a buffer with one line``() =\r\n+        seq { yield \"line 1\" }\r","path":"src/Void.ViewModel.Spec/WindowSpec.fs","position":29,"original_position":29,"commit_id":"ac3fd3a76166479608f2eb9d8030a079034289de","original_commit_id":"ac3fd3a76166479608f2eb9d8030a079034289de","user":{"login":"mjgpy3","id":1709849,"avatar_url":"https://avatars.githubusercontent.com/u/1709849?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgpy3","html_url":"https://github.com/mjgpy3","followers_url":"https://api.github.com/users/mjgpy3/followers","following_url":"https://api.github.com/users/mjgpy3/following{/other_user}","gists_url":"https://api.github.com/users/mjgpy3/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgpy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgpy3/subscriptions","organizations_url":"https://api.github.com/users/mjgpy3/orgs","repos_url":"https://api.github.com/users/mjgpy3/repos","events_url":"https://api.github.com/users/mjgpy3/events{/privacy}","received_events_url":"https://api.github.com/users/mjgpy3/received_events","type":"User","site_admin":false},"body":"Cool syntax!","created_at":"2015-09-15T15:45:45Z","updated_at":"2015-09-15T15:45:45Z","html_url":"https://github.com/PolyglotSymposium/void/pull/58#discussion_r39526942","pull_request_url":"https://api.github.com/repos/PolyglotSymposium/void/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/PolyglotSymposium/void/pulls/comments/39526942"},"html":{"href":"https://github.com/PolyglotSymposium/void/pull/58#discussion_r39526942"},"pull_request":{"href":"https://api.github.com/repos/PolyglotSymposium/void/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/PolyglotSymposium/void/pulls/58","id":44692982,"html_url":"https://github.com/PolyglotSymposium/void/pull/58","diff_url":"https://github.com/PolyglotSymposium/void/pull/58.diff","patch_url":"https://github.com/PolyglotSymposium/void/pull/58.patch","issue_url":"https://api.github.com/repos/PolyglotSymposium/void/issues/58","number":58,"state":"open","locked":false,"title":"Implement up/down scrolling (CTRL-E, CTRL-Y, CTRL-U, CTRL-D)","user":{"login":"Kazark","id":3661051,"avatar_url":"https://avatars.githubusercontent.com/u/3661051?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazark","html_url":"https://github.com/Kazark","followers_url":"https://api.github.com/users/Kazark/followers","following_url":"https://api.github.com/users/Kazark/following{/other_user}","gists_url":"https://api.github.com/users/Kazark/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazark/subscriptions","organizations_url":"https://api.github.com/users/Kazark/orgs","repos_url":"https://api.github.com/users/Kazark/repos","events_url":"https://api.github.com/users/Kazark/events{/privacy}","received_events_url":"https://api.github.com/users/Kazark/received_events","type":"User","site_admin":false},"body":"This implements the ability to scroll up and down in a window, with the proper bounds checking. Specify, four normal mode commands have been implemented:\r\n\r\n + <kbd>CTRL</kbd>-<kbd>Y</kbd> (scroll up one line)\r\n + <kbd>CTRL</kbd>-<kbd>E</kbd> (scroll down one line)\r\n + <kbd>CTRL</kbd>-<kbd>U</kbd> (scroll up half a screen)\r\n + <kbd>CTRL</kbd>-<kbd>D</kbd> (scroll down half a screen)\r\n\r\nDue to F#'s composable (algebraic) data types and units of measure, this is thoroughly configurable just by bindings, without even any configuration values, i.e. we should not implement the `&scroll` option. You can just rebind one of these keys to a different command with a different number of lines or half screens, etc. Very very cool. Programmable rather than configurable.\r\n\r\n@mjgpy3 Sorry for the humongous pull request! Do you want to field this one?\r\n\r\nI had to do some technical changes to get this to work, specifically in the messaging system.\r\n\r\nThis is a solid basis for getting `h`, `j`, `k` and `l` working, which I will move to release three, and consider this the last thing for this release since it has dragged on a bit.","created_at":"2015-09-10T17:01:21Z","updated_at":"2015-09-15T15:45:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66662efb8a08613dbc81a0c085d011132b5549f5","assignee":{"login":"mjgpy3","id":1709849,"avatar_url":"https://avatars.githubusercontent.com/u/1709849?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgpy3","html_url":"https://github.com/mjgpy3","followers_url":"https://api.github.com/users/mjgpy3/followers","following_url":"https://api.github.com/users/mjgpy3/following{/other_user}","gists_url":"https://api.github.com/users/mjgpy3/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgpy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgpy3/subscriptions","organizations_url":"https://api.github.com/users/mjgpy3/orgs","repos_url":"https://api.github.com/users/mjgpy3/repos","events_url":"https://api.github.com/users/mjgpy3/events{/privacy}","received_events_url":"https://api.github.com/users/mjgpy3/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/PolyglotSymposium/void/milestones/2","html_url":"https://github.com/PolyglotSymposium/void/milestones/Second%20tiny%20slice%20of%20functionality","labels_url":"https://api.github.com/repos/PolyglotSymposium/void/milestones/2/labels","id":1051941,"number":2,"title":"Second tiny slice of functionality","description":"I want to be able to move around in the buffer with my regular `h`, `j`, `k`, `l` commands. I want resizing the window to work. Also, this will deal with some technical (debt) issues.","creator":{"login":"Kazark","id":3661051,"avatar_url":"https://avatars.githubusercontent.com/u/3661051?v=3","gravatar_id":"","url":"https://api.github.com/users/Kazark","html_url":"https://github.com/Kazark","followers_url":"https://api.github.com/users/Kazark/followers","following_url":"https://api.github.com/users/Kazark/following{/other_user}","gists_url":"https://api.github.com/users/Kazark/gists{/gist_id}","starred_url":"https://api.github.com/users/Kazark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kazark/subscriptions","organizations_url":"https://api.github.com/users/Kazark/orgs","repos_url":"https://api.github.com/users/Kazark/repos","events_url":"https://api.github.com/users/Kazark/events{/privacy}","received_events_url":"https://api.github.com/users/Kazark/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":15,"state":"open","created_at":"2015-04-03T15:34:53Z","updated_at":"2015-09-10T20:16:35Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/PolyglotSymposium/void/pulls/58/commits","review_comments_url":"https://api.github.com/repos/PolyglotSymposium/void/pulls/58/comments","review_comment_url":"https://api.github.com/repos/PolyglotSymposium/void/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PolyglotSymposium/void/issues/58/comments","statuses_url":"https://api.github.com/repos/PolyglotSymposium/void/statuses/ac3fd3a76166479608f2eb9d8030a079034289de","head":{"label":"PolyglotSymposium:feature/ctrl-e-ctrl-y","ref":"feature/ctrl-e-ctrl-y","sha":"ac3fd3a76166479608f2eb9d8030a079034289de","user":{"login":"PolyglotSymposium","id":7843979,"avatar_url":"https://avatars.githubusercontent.com/u/7843979?v=3","gravatar_id":"","url":"https://api.github.com/users/PolyglotSymposium","html_url":"https://github.com/PolyglotSymposium","followers_url":"https://api.github.com/users/PolyglotSymposium/followers","following_url":"https://api.github.com/users/PolyglotSymposium/following{/other_user}","gists_url":"https://api.github.com/users/PolyglotSymposium/gists{/gist_id}","starred_url":"https://api.github.com/users/PolyglotSymposium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolyglotSymposium/subscriptions","organizations_url":"https://api.github.com/users/PolyglotSymposium/orgs","repos_url":"https://api.github.com/users/PolyglotSymposium/repos","events_url":"https://api.github.com/users/PolyglotSymposium/events{/privacy}","received_events_url":"https://api.github.com/users/PolyglotSymposium/received_events","type":"Organization","site_admin":false},"repo":{"id":28975242,"name":"void","full_name":"PolyglotSymposium/void","owner":{"login":"PolyglotSymposium","id":7843979,"avatar_url":"https://avatars.githubusercontent.com/u/7843979?v=3","gravatar_id":"","url":"https://api.github.com/users/PolyglotSymposium","html_url":"https://github.com/PolyglotSymposium","followers_url":"https://api.github.com/users/PolyglotSymposium/followers","following_url":"https://api.github.com/users/PolyglotSymposium/following{/other_user}","gists_url":"https://api.github.com/users/PolyglotSymposium/gists{/gist_id}","starred_url":"https://api.github.com/users/PolyglotSymposium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolyglotSymposium/subscriptions","organizations_url":"https://api.github.com/users/PolyglotSymposium/orgs","repos_url":"https://api.github.com/users/PolyglotSymposium/repos","events_url":"https://api.github.com/users/PolyglotSymposium/events{/privacy}","received_events_url":"https://api.github.com/users/PolyglotSymposium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolyglotSymposium/void","description":"A fearless modern text editor in the spirit of Vim","fork":false,"url":"https://api.github.com/repos/PolyglotSymposium/void","forks_url":"https://api.github.com/repos/PolyglotSymposium/void/forks","keys_url":"https://api.github.com/repos/PolyglotSymposium/void/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolyglotSymposium/void/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolyglotSymposium/void/teams","hooks_url":"https://api.github.com/repos/PolyglotSymposium/void/hooks","issue_events_url":"https://api.github.com/repos/PolyglotSymposium/void/issues/events{/number}","events_url":"https://api.github.com/repos/PolyglotSymposium/void/events","assignees_url":"https://api.github.com/repos/PolyglotSymposium/void/assignees{/user}","branches_url":"https://api.github.com/repos/PolyglotSymposium/void/branches{/branch}","tags_url":"https://api.github.com/repos/PolyglotSymposium/void/tags","blobs_url":"https://api.github.com/repos/PolyglotSymposium/void/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolyglotSymposium/void/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolyglotSymposium/void/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolyglotSymposium/void/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolyglotSymposium/void/statuses/{sha}","languages_url":"https://api.github.com/repos/PolyglotSymposium/void/languages","stargazers_url":"https://api.github.com/repos/PolyglotSymposium/void/stargazers","contributors_url":"https://api.github.com/repos/PolyglotSymposium/void/contributors","subscribers_url":"https://api.github.com/repos/PolyglotSymposium/void/subscribers","subscription_url":"https://api.github.com/repos/PolyglotSymposium/void/subscription","commits_url":"https://api.github.com/repos/PolyglotSymposium/void/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolyglotSymposium/void/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolyglotSymposium/void/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolyglotSymposium/void/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolyglotSymposium/void/contents/{+path}","compare_url":"https://api.github.com/repos/PolyglotSymposium/void/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolyglotSymposium/void/merges","archive_url":"https://api.github.com/repos/PolyglotSymposium/void/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolyglotSymposium/void/downloads","issues_url":"https://api.github.com/repos/PolyglotSymposium/void/issues{/number}","pulls_url":"https://api.github.com/repos/PolyglotSymposium/void/pulls{/number}","milestones_url":"https://api.github.com/repos/PolyglotSymposium/void/milestones{/number}","notifications_url":"https://api.github.com/repos/PolyglotSymposium/void/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolyglotSymposium/void/labels{/name}","releases_url":"https://api.github.com/repos/PolyglotSymposium/void/releases{/id}","created_at":"2015-01-08T16:40:58Z","updated_at":"2015-04-17T22:04:23Z","pushed_at":"2015-09-11T00:19:15Z","git_url":"git://github.com/PolyglotSymposium/void.git","ssh_url":"git@github.com:PolyglotSymposium/void.git","clone_url":"https://github.com/PolyglotSymposium/void.git","svn_url":"https://github.com/PolyglotSymposium/void","homepage":null,"size":1584,"stargazers_count":3,"watchers_count":3,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":3,"default_branch":"master"}},"base":{"label":"PolyglotSymposium:master","ref":"master","sha":"bac85bae1f17b40ea3754f4958aa4c09384bcbe4","user":{"login":"PolyglotSymposium","id":7843979,"avatar_url":"https://avatars.githubusercontent.com/u/7843979?v=3","gravatar_id":"","url":"https://api.github.com/users/PolyglotSymposium","html_url":"https://github.com/PolyglotSymposium","followers_url":"https://api.github.com/users/PolyglotSymposium/followers","following_url":"https://api.github.com/users/PolyglotSymposium/following{/other_user}","gists_url":"https://api.github.com/users/PolyglotSymposium/gists{/gist_id}","starred_url":"https://api.github.com/users/PolyglotSymposium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolyglotSymposium/subscriptions","organizations_url":"https://api.github.com/users/PolyglotSymposium/orgs","repos_url":"https://api.github.com/users/PolyglotSymposium/repos","events_url":"https://api.github.com/users/PolyglotSymposium/events{/privacy}","received_events_url":"https://api.github.com/users/PolyglotSymposium/received_events","type":"Organization","site_admin":false},"repo":{"id":28975242,"name":"void","full_name":"PolyglotSymposium/void","owner":{"login":"PolyglotSymposium","id":7843979,"avatar_url":"https://avatars.githubusercontent.com/u/7843979?v=3","gravatar_id":"","url":"https://api.github.com/users/PolyglotSymposium","html_url":"https://github.com/PolyglotSymposium","followers_url":"https://api.github.com/users/PolyglotSymposium/followers","following_url":"https://api.github.com/users/PolyglotSymposium/following{/other_user}","gists_url":"https://api.github.com/users/PolyglotSymposium/gists{/gist_id}","starred_url":"https://api.github.com/users/PolyglotSymposium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PolyglotSymposium/subscriptions","organizations_url":"https://api.github.com/users/PolyglotSymposium/orgs","repos_url":"https://api.github.com/users/PolyglotSymposium/repos","events_url":"https://api.github.com/users/PolyglotSymposium/events{/privacy}","received_events_url":"https://api.github.com/users/PolyglotSymposium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PolyglotSymposium/void","description":"A fearless modern text editor in the spirit of Vim","fork":false,"url":"https://api.github.com/repos/PolyglotSymposium/void","forks_url":"https://api.github.com/repos/PolyglotSymposium/void/forks","keys_url":"https://api.github.com/repos/PolyglotSymposium/void/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PolyglotSymposium/void/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PolyglotSymposium/void/teams","hooks_url":"https://api.github.com/repos/PolyglotSymposium/void/hooks","issue_events_url":"https://api.github.com/repos/PolyglotSymposium/void/issues/events{/number}","events_url":"https://api.github.com/repos/PolyglotSymposium/void/events","assignees_url":"https://api.github.com/repos/PolyglotSymposium/void/assignees{/user}","branches_url":"https://api.github.com/repos/PolyglotSymposium/void/branches{/branch}","tags_url":"https://api.github.com/repos/PolyglotSymposium/void/tags","blobs_url":"https://api.github.com/repos/PolyglotSymposium/void/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PolyglotSymposium/void/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PolyglotSymposium/void/git/refs{/sha}","trees_url":"https://api.github.com/repos/PolyglotSymposium/void/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PolyglotSymposium/void/statuses/{sha}","languages_url":"https://api.github.com/repos/PolyglotSymposium/void/languages","stargazers_url":"https://api.github.com/repos/PolyglotSymposium/void/stargazers","contributors_url":"https://api.github.com/repos/PolyglotSymposium/void/contributors","subscribers_url":"https://api.github.com/repos/PolyglotSymposium/void/subscribers","subscription_url":"https://api.github.com/repos/PolyglotSymposium/void/subscription","commits_url":"https://api.github.com/repos/PolyglotSymposium/void/commits{/sha}","git_commits_url":"https://api.github.com/repos/PolyglotSymposium/void/git/commits{/sha}","comments_url":"https://api.github.com/repos/PolyglotSymposium/void/comments{/number}","issue_comment_url":"https://api.github.com/repos/PolyglotSymposium/void/issues/comments{/number}","contents_url":"https://api.github.com/repos/PolyglotSymposium/void/contents/{+path}","compare_url":"https://api.github.com/repos/PolyglotSymposium/void/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PolyglotSymposium/void/merges","archive_url":"https://api.github.com/repos/PolyglotSymposium/void/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PolyglotSymposium/void/downloads","issues_url":"https://api.github.com/repos/PolyglotSymposium/void/issues{/number}","pulls_url":"https://api.github.com/repos/PolyglotSymposium/void/pulls{/number}","milestones_url":"https://api.github.com/repos/PolyglotSymposium/void/milestones{/number}","notifications_url":"https://api.github.com/repos/PolyglotSymposium/void/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PolyglotSymposium/void/labels{/name}","releases_url":"https://api.github.com/repos/PolyglotSymposium/void/releases{/id}","created_at":"2015-01-08T16:40:58Z","updated_at":"2015-04-17T22:04:23Z","pushed_at":"2015-09-11T00:19:15Z","git_url":"git://github.com/PolyglotSymposium/void.git","ssh_url":"git@github.com:PolyglotSymposium/void.git","clone_url":"https://github.com/PolyglotSymposium/void.git","svn_url":"https://github.com/PolyglotSymposium/void","homepage":null,"size":1584,"stargazers_count":3,"watchers_count":3,"language":"F#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":23,"forks":0,"open_issues":23,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PolyglotSymposium/void/pulls/58"},"html":{"href":"https://github.com/PolyglotSymposium/void/pull/58"},"issue":{"href":"https://api.github.com/repos/PolyglotSymposium/void/issues/58"},"comments":{"href":"https://api.github.com/repos/PolyglotSymposium/void/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/PolyglotSymposium/void/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/PolyglotSymposium/void/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PolyglotSymposium/void/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/PolyglotSymposium/void/statuses/ac3fd3a76166479608f2eb9d8030a079034289de"}}}}