{"action":"created","issue":{"url":"https://api.github.com/repos/wout/chronology.js/issues/1","labels_url":"https://api.github.com/repos/wout/chronology.js/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/wout/chronology.js/issues/1/comments","events_url":"https://api.github.com/repos/wout/chronology.js/issues/1/events","html_url":"https://github.com/wout/chronology.js/issues/1","id":59104617,"number":1,"title":"Ability to remove occurences","user":{"login":"charbel14","id":6908057,"avatar_url":"https://avatars.githubusercontent.com/u/6908057?v=3","gravatar_id":"","url":"https://api.github.com/users/charbel14","html_url":"https://github.com/charbel14","followers_url":"https://api.github.com/users/charbel14/followers","following_url":"https://api.github.com/users/charbel14/following{/other_user}","gists_url":"https://api.github.com/users/charbel14/gists{/gist_id}","starred_url":"https://api.github.com/users/charbel14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charbel14/subscriptions","organizations_url":"https://api.github.com/users/charbel14/orgs","repos_url":"https://api.github.com/users/charbel14/repos","events_url":"https://api.github.com/users/charbel14/events{/privacy}","received_events_url":"https://api.github.com/users/charbel14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-26T17:08:43Z","updated_at":"2015-07-30T01:18:52Z","closed_at":null,"body":"HI,\r\n\r\nWhat would be the recommended way to remove/group occurrences from/within the stack?\r\n\r\nConsider the case where you have a database and you are modifying records.. so as long as  you have not committed those modified records back to the database you would want to be able to undo /redo and once committed entries associated with the committed record should be removed from the stack. You might be working with more than one modified record at the same time.\r\n\r\nIt is almost as if you want to embed a chronology instance within an existing instance.\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/wout/chronology.js/issues/comments/126146438","html_url":"https://github.com/wout/chronology.js/issues/1#issuecomment-126146438","issue_url":"https://api.github.com/repos/wout/chronology.js/issues/1","id":126146438,"user":{"login":"charbel14","id":6908057,"avatar_url":"https://avatars.githubusercontent.com/u/6908057?v=3","gravatar_id":"","url":"https://api.github.com/users/charbel14","html_url":"https://github.com/charbel14","followers_url":"https://api.github.com/users/charbel14/followers","following_url":"https://api.github.com/users/charbel14/following{/other_user}","gists_url":"https://api.github.com/users/charbel14/gists{/gist_id}","starred_url":"https://api.github.com/users/charbel14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charbel14/subscriptions","organizations_url":"https://api.github.com/users/charbel14/orgs","repos_url":"https://api.github.com/users/charbel14/repos","events_url":"https://api.github.com/users/charbel14/events{/privacy}","received_events_url":"https://api.github.com/users/charbel14/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T01:18:52Z","updated_at":"2015-07-30T01:18:52Z","body":"Hi,\r\n\r\nI would probably say group by a transaction/unique key yes? When you undo you provide the transaction key, you may have more than one transaction key at any one point in time?\r\n\r\nConsider a canvas with multiple open forms. you commit form1 - now you clear all associated entries from the undo stack. At the same time form2 transaction is still around and  you can undo that, without any gaps in the undo stack (gaps would be where form1 entries existed prior to commit).\r\n\r\nAlso it might well be possible that you want clear partial entries of a particular transaction/unique key, for instance by type - I may have contributed an action of type input change, and form resize. On Commit I would want to say clear entries for unique key that are of type inputChange, while form resize would stay for example.\r\n\r\nThe remove occurrence can take a filter callback allowing users to define the criteria of removal.."}}