{"action":"created","issue":{"url":"https://api.github.com/repos/leo-editor/leo-editor/issues/791","repository_url":"https://api.github.com/repos/leo-editor/leo-editor","labels_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/791/labels{/name}","comments_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/791/comments","events_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/791/events","html_url":"https://github.com/leo-editor/leo-editor/issues/791","id":303143011,"number":791,"title":"recent-log-content","user":{"login":"tbnorth","id":158108,"avatar_url":"https://avatars2.githubusercontent.com/u/158108?v=4","gravatar_id":"","url":"https://api.github.com/users/tbnorth","html_url":"https://github.com/tbnorth","followers_url":"https://api.github.com/users/tbnorth/followers","following_url":"https://api.github.com/users/tbnorth/following{/other_user}","gists_url":"https://api.github.com/users/tbnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/tbnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbnorth/subscriptions","organizations_url":"https://api.github.com/users/tbnorth/orgs","repos_url":"https://api.github.com/users/tbnorth/repos","events_url":"https://api.github.com/users/tbnorth/events{/privacy}","received_events_url":"https://api.github.com/users/tbnorth/received_events","type":"User","site_admin":false},"labels":[{"id":79922382,"url":"https://api.github.com/repos/leo-editor/leo-editor/labels/Enhancement","name":"Enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-07T15:28:33Z","updated_at":"2018-03-07T19:57:22Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Not sure about this.  First thought was that it would be nice to be able to get the things dumped in the log into a node easily, without having to select them in the log and copy / paste.  Biggest reason not to do this is that having to select them in the log and copy / paste just isn't that big a deal.\r\n\r\n`recent-log-content`, inserts the last content sent to the log in the body at the cursor position.  Repeated invocations insert the previous content sent to the log at the cursor position, so content ordering is preserved.  So if \"a\", \"b\", and \"c\" had been sent to the log, in that order, \"c\", \"b\", and \"a\" would be inserted, with later insertions pushing earlier insertions down in the body.\r\n\r\n### Implementation\r\n\r\nA circular buffer of the last 100? 500? items sent to the log.  Track current item, and last item inserted, and move backwards on repeated invocations, re-setting as soon as something new is logged. Not great for thins logged some time ago, but typical usage would be to insert what was just logged now."},"comment":{"url":"https://api.github.com/repos/leo-editor/leo-editor/issues/comments/371264465","html_url":"https://github.com/leo-editor/leo-editor/issues/791#issuecomment-371264465","issue_url":"https://api.github.com/repos/leo-editor/leo-editor/issues/791","id":371264465,"user":{"login":"tbnorth","id":158108,"avatar_url":"https://avatars2.githubusercontent.com/u/158108?v=4","gravatar_id":"","url":"https://api.github.com/users/tbnorth","html_url":"https://github.com/tbnorth","followers_url":"https://api.github.com/users/tbnorth/followers","following_url":"https://api.github.com/users/tbnorth/following{/other_user}","gists_url":"https://api.github.com/users/tbnorth/gists{/gist_id}","starred_url":"https://api.github.com/users/tbnorth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbnorth/subscriptions","organizations_url":"https://api.github.com/users/tbnorth/orgs","repos_url":"https://api.github.com/users/tbnorth/repos","events_url":"https://api.github.com/users/tbnorth/events{/privacy}","received_events_url":"https://api.github.com/users/tbnorth/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T19:57:22Z","updated_at":"2018-03-07T19:57:22Z","author_association":"CONTRIBUTOR","body":"On Wed, 07 Mar 2018 17:46:02 +0000 (UTC)\nChris George <notifications@github.com> wrote:\n\n> How hard would it be to do the exact same thing for content dumped to\n> the terminal?\n\nFor stuff dumped to the terminal *by Leo*, I guess you could write a\ncommand to pull that in the same way.\n\nFor stuff dumped to the terminal by programs Leo invokes (as well as\nstuff dumped to the terminal by Leo), you can use the leoscreen.py\nplugin, which is *nix only, and requires you run Gnu screen, the\nterminal multiplexer, in the terminal.  leoscreen.py can also push\ncontent from the body to the terminal, making any body text an\ninteractive terminal for any command like program like R or psql etc.\n\nCheers -Terry\n"}}
{"actor":{"display_login":"tbnorth"}}