{"action":"created","issue":{"url":"https://api.github.com/repos/brettanomyces/nvim-editcommand/issues/14","repository_url":"https://api.github.com/repos/brettanomyces/nvim-editcommand","labels_url":"https://api.github.com/repos/brettanomyces/nvim-editcommand/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/brettanomyces/nvim-editcommand/issues/14/comments","events_url":"https://api.github.com/repos/brettanomyces/nvim-editcommand/issues/14/events","html_url":"https://github.com/brettanomyces/nvim-editcommand/issues/14","id":133087140,"number":14,"title":"prompt may change if user enters an interpreter","user":{"login":"brettanomyces","id":1841723,"avatar_url":"https://avatars.githubusercontent.com/u/1841723?v=3","gravatar_id":"","url":"https://api.github.com/users/brettanomyces","html_url":"https://github.com/brettanomyces","followers_url":"https://api.github.com/users/brettanomyces/followers","following_url":"https://api.github.com/users/brettanomyces/following{/other_user}","gists_url":"https://api.github.com/users/brettanomyces/gists{/gist_id}","starred_url":"https://api.github.com/users/brettanomyces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettanomyces/subscriptions","organizations_url":"https://api.github.com/users/brettanomyces/orgs","repos_url":"https://api.github.com/users/brettanomyces/repos","events_url":"https://api.github.com/users/brettanomyces/events{/privacy}","received_events_url":"https://api.github.com/users/brettanomyces/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brettanomyces/nvim-editcommand/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-11T21:03:14Z","updated_at":"2016-02-11T21:18:58Z","closed_at":null,"body":"If a user enters a interpreter from within the terminal. e.g. `python`, then the prompt may change, `$` -> `>>>`. We should provide a mechanism to automatically update the prompt, and reset the prompt, when the user leaves the interpreter.\r\n\r\nTo do this we could remap `<cr>` to run some commands if the current command is python/lua/ruby/etc.. and the same for whatever command is used to exit the interpreter. We will also need to handle the case where the user uses control characters, e.g. `^C`, to leave the interpreter. "},"comment":{"url":"https://api.github.com/repos/brettanomyces/nvim-editcommand/issues/comments/183063428","html_url":"https://github.com/brettanomyces/nvim-editcommand/issues/14#issuecomment-183063428","issue_url":"https://api.github.com/repos/brettanomyces/nvim-editcommand/issues/14","id":183063428,"user":{"login":"brettanomyces","id":1841723,"avatar_url":"https://avatars.githubusercontent.com/u/1841723?v=3","gravatar_id":"","url":"https://api.github.com/users/brettanomyces","html_url":"https://github.com/brettanomyces","followers_url":"https://api.github.com/users/brettanomyces/followers","following_url":"https://api.github.com/users/brettanomyces/following{/other_user}","gists_url":"https://api.github.com/users/brettanomyces/gists{/gist_id}","starred_url":"https://api.github.com/users/brettanomyces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettanomyces/subscriptions","organizations_url":"https://api.github.com/users/brettanomyces/orgs","repos_url":"https://api.github.com/users/brettanomyces/repos","events_url":"https://api.github.com/users/brettanomyces/events{/privacy}","received_events_url":"https://api.github.com/users/brettanomyces/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T21:18:58Z","updated_at":"2016-02-11T21:18:58Z","body":"I'll probably implement this in [nvim-terminus](https://www.github.com/brettanomyces/nvim-terminus) first and port it back if it makes sense to do so."}}