{"action":"created","issue":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/92","labels_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/92/comments","events_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/92/events","html_url":"https://github.com/ProseMirror/prosemirror/issues/92","id":119776982,"number":92,"title":"Ability to decrease indentation of an item in a bullet list","user":{"login":"bjoernm","id":1728765,"avatar_url":"https://avatars.githubusercontent.com/u/1728765?v=3","gravatar_id":"","url":"https://api.github.com/users/bjoernm","html_url":"https://github.com/bjoernm","followers_url":"https://api.github.com/users/bjoernm/followers","following_url":"https://api.github.com/users/bjoernm/following{/other_user}","gists_url":"https://api.github.com/users/bjoernm/gists{/gist_id}","starred_url":"https://api.github.com/users/bjoernm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjoernm/subscriptions","organizations_url":"https://api.github.com/users/bjoernm/orgs","repos_url":"https://api.github.com/users/bjoernm/repos","events_url":"https://api.github.com/users/bjoernm/events{/privacy}","received_events_url":"https://api.github.com/users/bjoernm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-01T18:19:47Z","updated_at":"2016-02-02T14:47:06Z","closed_at":null,"body":"So far, there does not seem to be an easy way to decrease the indentation of a bullet item in a bullet list.\r\nIn the example below I would like to put the bullet item \"two\" on the same level as the other two items.\r\n\r\n![bullet](https://cloud.githubusercontent.com/assets/1728765/11509576/16182744-985f-11e5-9c5d-cd67cd2dfa24.png)\r\n\r\nSo far, the only possibility to achieve this I have found is the following:\r\n1. Navigate to the beginning of the second bullet item\r\n2. Pressing the \"Lift out of enclosing block\" button twice\r\n3. Pressing the \"Wrap in bullet list\" button\r\n4. Pressing the \"Join with above block\"\r\n\r\nOR\r\n\r\n1. Navigate to the beginning of the second bullet item\r\n2. Pressing BACKSPACE twice\r\n3. Pressing ENTER once\r\n\r\nIs there an easier way to achieve this? If not, a dedicated function for decreasing indentation would be great."},"comment":{"url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/comments/178608123","html_url":"https://github.com/ProseMirror/prosemirror/issues/92#issuecomment-178608123","issue_url":"https://api.github.com/repos/ProseMirror/prosemirror/issues/92","id":178608123,"user":{"login":"kiejo","id":152507,"avatar_url":"https://avatars.githubusercontent.com/u/152507?v=3","gravatar_id":"","url":"https://api.github.com/users/kiejo","html_url":"https://github.com/kiejo","followers_url":"https://api.github.com/users/kiejo/followers","following_url":"https://api.github.com/users/kiejo/following{/other_user}","gists_url":"https://api.github.com/users/kiejo/gists{/gist_id}","starred_url":"https://api.github.com/users/kiejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiejo/subscriptions","organizations_url":"https://api.github.com/users/kiejo/orgs","repos_url":"https://api.github.com/users/kiejo/repos","events_url":"https://api.github.com/users/kiejo/events{/privacy}","received_events_url":"https://api.github.com/users/kiejo/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T14:47:06Z","updated_at":"2016-02-02T14:47:06Z","body":"Any updates on this? I think that having a reliable way of indenting and unindenting list items is a very basic and important feature for any rich text editor.\r\nI came up with the following rules when thinking about how to generalize the idea of an unindent command. The main goal was to produce output that visually makes sense (see unindention behavior of other editors like Word or Google Docs).\r\n\r\nUnindenting a single node should have the following effects:\r\n* The node's subsequent siblings get concatenated to the node's existing children\r\n* The node becomes the direct sibling of its parent\r\n\r\nHandling arbitrary selections:\r\n* If multiple nodes are selected, this rule needs to be applied sequentially to all the selected nodes from bottom to top (starting with the last selected node)\r\n* If the start/end of the selection includes only part of a node, the whole node should be included in the command\r\n* The command should only be applied to nodes that represent a nested data structure (e.g. list items)\r\n\r\nI thought through this using multiple bullet list scenarios and think that this might work. Would this be a feasable approach for ProseMirror? I know that other editors handle indention/unindention simply using an integer representing the current indention level of an item, but this would remove the nice semantic data model that ProseMirror offers. Directly working on the nested data structure would allow us to keep ProseMirror's current data model.\r\nWhat do you think?\r\n"}}