payload: {"action":"created","comment":{"url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/comments/267437569","pull_request_review_id":216845485,"id":267437569,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2NzQzNzU2OQ==","diff_hunk":"@@ -73,14 +75,74 @@ class JuliaIncludeRunFileToReplAction : JuliaSendCodeToReplAction(\n class JuliaSendSelectionToReplAction : JuliaSendCodeToReplAction(\n \tJuliaBundle.message(\"julia.actions.repl.run-selected.name\"),\n \tJuliaBundle.message(\"julia.actions.repl.run-selected.description\")), DumbAware {\n+\n+\n \toverride fun code(e: AnActionEvent): String? {\n-\t\tval editor = e.getData(CommonDataKeys.EDITOR) ?: return null\n-\t\treturn editor.selectionModel.selectedText\n+\t\tval editor = CommonDataKeys.EDITOR.getData(e.dataContext)","path":"src/org/ice1000/julia/lang/action/julia-repl-actions.kt","position":null,"original_position":18,"commit_id":"ab45ebafbbd8ff7abbacddca5ef7fd010001a68d","original_commit_id":"9766300372a635704b3a7b2a177e7cd49de42edb","user":{"login":"marcoesposito1988","id":439893,"node_id":"MDQ6VXNlcjQzOTg5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/439893?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoesposito1988","html_url":"https://github.com/marcoesposito1988","followers_url":"https://api.github.com/users/marcoesposito1988/followers","following_url":"https://api.github.com/users/marcoesposito1988/following{/other_user}","gists_url":"https://api.github.com/users/marcoesposito1988/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoesposito1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoesposito1988/subscriptions","organizations_url":"https://api.github.com/users/marcoesposito1988/orgs","repos_url":"https://api.github.com/users/marcoesposito1988/repos","events_url":"https://api.github.com/users/marcoesposito1988/events{/privacy}","received_events_url":"https://api.github.com/users/marcoesposito1988/received_events","type":"User","site_admin":false},"body":"Also done here (and in the line below)","created_at":"2019-03-20T16:42:14Z","updated_at":"2019-03-20T16:42:14Z","html_url":"https://github.com/JuliaEditorSupport/julia-intellij/pull/366#discussion_r267437569","pull_request_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/366","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/comments/267437569"},"html":{"href":"https://github.com/JuliaEditorSupport/julia-intellij/pull/366#discussion_r267437569"},"pull_request":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/366"}},"in_reply_to_id":267422244},"pull_request":{"url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/366","id":262858009,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYyODU4MDA5","html_url":"https://github.com/JuliaEditorSupport/julia-intellij/pull/366","diff_url":"https://github.com/JuliaEditorSupport/julia-intellij/pull/366.diff","patch_url":"https://github.com/JuliaEditorSupport/julia-intellij/pull/366.patch","issue_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/issues/366","number":366,"state":"open","locked":false,"title":"If no selection, send line under cursor to console","user":{"login":"marcoesposito1988","id":439893,"node_id":"MDQ6VXNlcjQzOTg5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/439893?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoesposito1988","html_url":"https://github.com/marcoesposito1988","followers_url":"https://api.github.com/users/marcoesposito1988/followers","following_url":"https://api.github.com/users/marcoesposito1988/following{/other_user}","gists_url":"https://api.github.com/users/marcoesposito1988/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoesposito1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoesposito1988/subscriptions","organizations_url":"https://api.github.com/users/marcoesposito1988/orgs","repos_url":"https://api.github.com/users/marcoesposito1988/repos","events_url":"https://api.github.com/users/marcoesposito1988/events{/privacy}","received_events_url":"https://api.github.com/users/marcoesposito1988/received_events","type":"User","site_admin":false},"body":"Hi guys,\r\n\r\nas I mentioned in [my comment to issue 238](https://github.com/JuliaEditorSupport/julia-intellij/issues/238#issuecomment-445304548), I think that it would be great to be able to pass the current line under the cursor to the REPL when no text is selected, as it is possible with the Python plugin. In this way, you can click your way through a file without needing to send it all to the REPL.\r\n\r\nI looked into the Python plugin and ported the functionality here. I tested it a bit and seems to work well.\r\n\r\nThese are the changes:\r\n- action Send selection to REPL is always active\r\n- if invoked when no text is selected, sends the line under the cursor to the console and advances the cursor to the line below","created_at":"2019-03-20T13:12:28Z","updated_at":"2019-03-20T16:42:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd23086b3c560192f75fc24a62dcf3661effa510","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/366/commits","review_comments_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/366/comments","review_comment_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/issues/366/comments","statuses_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/statuses/ab45ebafbbd8ff7abbacddca5ef7fd010001a68d","head":{"label":"marcoesposito1988:execute_line_under_cursor","ref":"execute_line_under_cursor","sha":"ab45ebafbbd8ff7abbacddca5ef7fd010001a68d","user":{"login":"marcoesposito1988","id":439893,"node_id":"MDQ6VXNlcjQzOTg5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/439893?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoesposito1988","html_url":"https://github.com/marcoesposito1988","followers_url":"https://api.github.com/users/marcoesposito1988/followers","following_url":"https://api.github.com/users/marcoesposito1988/following{/other_user}","gists_url":"https://api.github.com/users/marcoesposito1988/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoesposito1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoesposito1988/subscriptions","organizations_url":"https://api.github.com/users/marcoesposito1988/orgs","repos_url":"https://api.github.com/users/marcoesposito1988/repos","events_url":"https://api.github.com/users/marcoesposito1988/events{/privacy}","received_events_url":"https://api.github.com/users/marcoesposito1988/received_events","type":"User","site_admin":false},"repo":{"id":176733139,"node_id":"MDEwOlJlcG9zaXRvcnkxNzY3MzMxMzk=","name":"julia-intellij","full_name":"marcoesposito1988/julia-intellij","private":false,"owner":{"login":"marcoesposito1988","id":439893,"node_id":"MDQ6VXNlcjQzOTg5Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/439893?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoesposito1988","html_url":"https://github.com/marcoesposito1988","followers_url":"https://api.github.com/users/marcoesposito1988/followers","following_url":"https://api.github.com/users/marcoesposito1988/following{/other_user}","gists_url":"https://api.github.com/users/marcoesposito1988/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoesposito1988/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoesposito1988/subscriptions","organizations_url":"https://api.github.com/users/marcoesposito1988/orgs","repos_url":"https://api.github.com/users/marcoesposito1988/repos","events_url":"https://api.github.com/users/marcoesposito1988/events{/privacy}","received_events_url":"https://api.github.com/users/marcoesposito1988/received_events","type":"User","site_admin":false},"html_url":"https://github.com/marcoesposito1988/julia-intellij","description":":computer: Julia Plugin for IntelliJ IDEA ┗:smiley:┛ ┏:smiley:┓ ┗:smiley:┛","fork":true,"url":"https://api.github.com/repos/marcoesposito1988/julia-intellij","forks_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/forks","keys_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/teams","hooks_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/hooks","issue_events_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/issues/events{/number}","events_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/events","assignees_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/assignees{/user}","branches_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/branches{/branch}","tags_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/tags","blobs_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/git/refs{/sha}","trees_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/statuses/{sha}","languages_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/languages","stargazers_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/stargazers","contributors_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/contributors","subscribers_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/subscribers","subscription_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/subscription","commits_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/commits{/sha}","git_commits_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/git/commits{/sha}","comments_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/comments{/number}","issue_comment_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/issues/comments{/number}","contents_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/contents/{+path}","compare_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/merges","archive_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/downloads","issues_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/issues{/number}","pulls_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/pulls{/number}","milestones_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/milestones{/number}","notifications_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/labels{/name}","releases_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/releases{/id}","deployments_url":"https://api.github.com/repos/marcoesposito1988/julia-intellij/deployments","created_at":"2019-03-20T12:52:30Z","updated_at":"2019-03-20T12:52:33Z","pushed_at":"2019-03-20T16:40:44Z","git_url":"git://github.com/marcoesposito1988/julia-intellij.git","ssh_url":"git@github.com:marcoesposito1988/julia-intellij.git","clone_url":"https://github.com/marcoesposito1988/julia-intellij.git","svn_url":"https://github.com/marcoesposito1988/julia-intellij","homepage":"","size":2308,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"JuliaEditorSupport:master","ref":"master","sha":"77783e20c8de94c941b537faae57ac891f6d56cc","user":{"login":"JuliaEditorSupport","id":19615443,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NjE1NDQz","avatar_url":"https://avatars3.githubusercontent.com/u/19615443?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaEditorSupport","html_url":"https://github.com/JuliaEditorSupport","followers_url":"https://api.github.com/users/JuliaEditorSupport/followers","following_url":"https://api.github.com/users/JuliaEditorSupport/following{/other_user}","gists_url":"https://api.github.com/users/JuliaEditorSupport/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaEditorSupport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaEditorSupport/subscriptions","organizations_url":"https://api.github.com/users/JuliaEditorSupport/orgs","repos_url":"https://api.github.com/users/JuliaEditorSupport/repos","events_url":"https://api.github.com/users/JuliaEditorSupport/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaEditorSupport/received_events","type":"Organization","site_admin":false},"repo":{"id":118644191,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg2NDQxOTE=","name":"julia-intellij","full_name":"JuliaEditorSupport/julia-intellij","private":false,"owner":{"login":"JuliaEditorSupport","id":19615443,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NjE1NDQz","avatar_url":"https://avatars3.githubusercontent.com/u/19615443?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaEditorSupport","html_url":"https://github.com/JuliaEditorSupport","followers_url":"https://api.github.com/users/JuliaEditorSupport/followers","following_url":"https://api.github.com/users/JuliaEditorSupport/following{/other_user}","gists_url":"https://api.github.com/users/JuliaEditorSupport/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaEditorSupport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaEditorSupport/subscriptions","organizations_url":"https://api.github.com/users/JuliaEditorSupport/orgs","repos_url":"https://api.github.com/users/JuliaEditorSupport/repos","events_url":"https://api.github.com/users/JuliaEditorSupport/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaEditorSupport/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JuliaEditorSupport/julia-intellij","description":":computer: Julia Plugin for IntelliJ IDEA ┗:smiley:┛ ┏:smiley:┓ ┗:smiley:┛","fork":false,"url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij","forks_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/forks","keys_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/teams","hooks_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/hooks","issue_events_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/events","assignees_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/tags","blobs_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/languages","stargazers_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/stargazers","contributors_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/contributors","subscribers_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/subscribers","subscription_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/subscription","commits_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/merges","archive_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/downloads","issues_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/labels{/name}","releases_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/deployments","created_at":"2018-01-23T17:24:05Z","updated_at":"2019-03-18T10:01:13Z","pushed_at":"2019-03-20T16:40:46Z","git_url":"git://github.com/JuliaEditorSupport/julia-intellij.git","ssh_url":"git@github.com:JuliaEditorSupport/julia-intellij.git","clone_url":"https://github.com/JuliaEditorSupport/julia-intellij.git","svn_url":"https://github.com/JuliaEditorSupport/julia-intellij","homepage":"","size":2305,"stargazers_count":120,"watchers_count":120,"language":"Kotlin","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":12,"open_issues":35,"watchers":120,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/366"},"html":{"href":"https://github.com/JuliaEditorSupport/julia-intellij/pull/366"},"issue":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/issues/366"},"comments":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/issues/366/comments"},"review_comments":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/366/comments"},"review_comment":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/pulls/366/commits"},"statuses":{"href":"https://api.github.com/repos/JuliaEditorSupport/julia-intellij/statuses/ab45ebafbbd8ff7abbacddca5ef7fd010001a68d"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"marcoesposito1988"}}