-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise top-level keys; unify subtree/list editing
Previously, `markdown-move-{up,down}` only worked for list items and operated on entire list item subtrees. Meanwhile, `markdown-{promote,demote}` for headings operated on the current heading only, not the full subtree. However, for list items they operated on entire subtrees. This commit unifies these functions so that both operate on list items (and children), when the point is in a list item, and on entire heading subtrees otherwise. As such, we only need one set of keybindings. This commit also moves the keys to C-c <left>, C-c <right>, C-c <up>, and C-c <down> in order to free up top-level keybindings M-<left> and M-<right>, for `left-word` and `right-word` again. Update tests, since heading markup no longer cycles back around at end. Closes GH-164.
- Loading branch information
Showing
3 changed files
with
91 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters