{"action":"created","issue":{"url":"https://api.github.com/repos/Alexey-T/CudaText/issues/152","labels_url":"https://api.github.com/repos/Alexey-T/CudaText/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/Alexey-T/CudaText/issues/152/comments","events_url":"https://api.github.com/repos/Alexey-T/CudaText/issues/152/events","html_url":"https://github.com/Alexey-T/CudaText/issues/152","id":119146964,"number":152,"title":"(API, wish? ask?) How to execute selected text?","user":{"login":"kvichans","id":7419630,"avatar_url":"https://avatars.githubusercontent.com/u/7419630?v=3","gravatar_id":"","url":"https://api.github.com/users/kvichans","html_url":"https://github.com/kvichans","followers_url":"https://api.github.com/users/kvichans/followers","following_url":"https://api.github.com/users/kvichans/following{/other_user}","gists_url":"https://api.github.com/users/kvichans/gists{/gist_id}","starred_url":"https://api.github.com/users/kvichans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvichans/subscriptions","organizations_url":"https://api.github.com/users/kvichans/orgs","repos_url":"https://api.github.com/users/kvichans/repos","events_url":"https://api.github.com/users/kvichans/events{/privacy}","received_events_url":"https://api.github.com/users/kvichans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-27T07:47:57Z","updated_at":"2015-11-27T08:22:21Z","closed_at":null,"body":"Не могу сообразить хватает ли текущего API, чтобы реализовать такое:\r\n - Запустить на исполнение (как из командной строки консоли) текст, который выделен в редакторе, чтобы выдача попала в консоль.\r\n\r\nПри этом есть подвопрос\r\n - Можно ли плагином проэмулировать ввод команды пользователем? То есть, чтобы эта команда попала в Историю?"},"comment":{"url":"https://api.github.com/repos/Alexey-T/CudaText/issues/comments/160066592","html_url":"https://github.com/Alexey-T/CudaText/issues/152#issuecomment-160066592","issue_url":"https://api.github.com/repos/Alexey-T/CudaText/issues/152","id":160066592,"user":{"login":"kvichans","id":7419630,"avatar_url":"https://avatars.githubusercontent.com/u/7419630?v=3","gravatar_id":"","url":"https://api.github.com/users/kvichans","html_url":"https://github.com/kvichans","followers_url":"https://api.github.com/users/kvichans/followers","following_url":"https://api.github.com/users/kvichans/following{/other_user}","gists_url":"https://api.github.com/users/kvichans/gists{/gist_id}","starred_url":"https://api.github.com/users/kvichans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kvichans/subscriptions","organizations_url":"https://api.github.com/users/kvichans/orgs","repos_url":"https://api.github.com/users/kvichans/repos","events_url":"https://api.github.com/users/kvichans/events{/privacy}","received_events_url":"https://api.github.com/users/kvichans/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T08:22:21Z","updated_at":"2015-11-27T08:22:21Z","body":"(Только сейчас сообразил про что хотел спросить)\r\nУ консоли есть свое *окружение*, например, свой набор import-ов\r\nКак из плагина изменять это окружение? \r\nДругими словами: как выполнить команды \"как бы в консоли\"?\r\nМне это нужно, чтобы можно было часть консольных команд набирать руками, а часть выполнять плагином (вот тут-то и хочется *запустить выделенный текст*)"}}