{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/7567","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/7567/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/7567/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/7567/events","html_url":"https://github.com/godotengine/godot/issues/7567","id":201247326,"number":7567,"title":"Cannot undo \"Clear\" action from script editors context menu","user":{"login":"Keetz","id":6707330,"avatar_url":"https://avatars.githubusercontent.com/u/6707330?v=3","gravatar_id":"","url":"https://api.github.com/users/Keetz","html_url":"https://github.com/Keetz","followers_url":"https://api.github.com/users/Keetz/followers","following_url":"https://api.github.com/users/Keetz/following{/other_user}","gists_url":"https://api.github.com/users/Keetz/gists{/gist_id}","starred_url":"https://api.github.com/users/Keetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Keetz/subscriptions","organizations_url":"https://api.github.com/users/Keetz/orgs","repos_url":"https://api.github.com/users/Keetz/repos","events_url":"https://api.github.com/users/Keetz/events{/privacy}","received_events_url":"https://api.github.com/users/Keetz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-17T11:10:15Z","updated_at":"2017-01-17T11:30:53Z","closed_at":null,"body":"Godot 2.1.1 stable\r\nUbuntu 16.04\r\n\r\nDescription:\r\nPressing the \"Clear\" option in the script editors context menu causes the script to be cleared, as expected, but it isn't possible to undo the clear (Ctrl+z or \"Undo\" in the context menu)\r\n\r\nSteps to reproduce:\r\n1. Create a script\r\n2. Add some lines of awesome code\r\n3. Right click and press \"Clear\"\r\n4. Press undo as you want your lines of awesome code back\r\n5. Start crying because your code is now gone\r\n\r\n\r\nI'm guessing it is just \"undo_redo->add_do_method()\" and \"undo_redo->add_undo_method()\" that should be done where the clear method is located. Please correct me if I'm wrong."},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/273115213","html_url":"https://github.com/godotengine/godot/issues/7567#issuecomment-273115213","issue_url":"https://api.github.com/repos/godotengine/godot/issues/7567","id":273115213,"user":{"login":"bojidar-bg","id":5276727,"avatar_url":"https://avatars.githubusercontent.com/u/5276727?v=3","gravatar_id":"","url":"https://api.github.com/users/bojidar-bg","html_url":"https://github.com/bojidar-bg","followers_url":"https://api.github.com/users/bojidar-bg/followers","following_url":"https://api.github.com/users/bojidar-bg/following{/other_user}","gists_url":"https://api.github.com/users/bojidar-bg/gists{/gist_id}","starred_url":"https://api.github.com/users/bojidar-bg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojidar-bg/subscriptions","organizations_url":"https://api.github.com/users/bojidar-bg/orgs","repos_url":"https://api.github.com/users/bojidar-bg/repos","events_url":"https://api.github.com/users/bojidar-bg/events{/privacy}","received_events_url":"https://api.github.com/users/bojidar-bg/received_events","type":"User","site_admin":false},"created_at":"2017-01-17T11:30:53Z","updated_at":"2017-01-17T11:30:53Z","body":"Actually, I'm not sure why the \"clear\" option exists altogether... does it make sense to keep it?"}}
{"actor":{"display_login":"bojidar-bg"}}