Skip to content

Instantly share code, notes, and snippets.

@al-the-x
Last active September 14, 2016 13:29
Show Gist options
  • Save al-the-x/10d77d162c68d79037ee1b8829790be8 to your computer and use it in GitHub Desktop.
Save al-the-x/10d77d162c68d79037ee1b8829790be8 to your computer and use it in GitHub Desktop.
Customized key bindings for Reviewable (http://reviewable.io) via Mousetrap (https://craig.is/killing/mice)
[
["f", "Show next/latest diffs", "setProposedRevRanges()"],
["n", "Next unreviewed file", "nextUnreviewedFile()"],
["p", "Previous unreviewed file", "prevUnreviewedFile()"],
["shift+n", "Next changed file", "nextChangedFile()"],
["shift+p", "Previous changed file", "prevChangedFile()"],
[null, "Next visible file", "nextVisibleFile()"],
[null, "Previous visible file", "prevVisibleFile()"],
[null, "Next file", "nextFile()"],
[null, "Previous file", "prevFile()"],
[null, "First unreviewed file", "firstUnreviewedFile()"],
[null, "Last unreviewed file", "lastUnreviewedFile()"],
[null, "First changed file", "firstChangedFile()"],
[null, "Last changed file", "lastChangedFile()"],
[null, "First visible file", "firstVisibleFile()"],
[null, "Last visible file", "lastVisibleFile()"],
[null, "First file", "firstFile()"],
[null, "Last file", "lastFile()"],
["x", "Mark file as reviewed / unreviewed", "toggleCurrentFileReviewed()"],
["shift+x", "Mark all files as reviewed", "setGlobalReviewed()"],
["j", "Next unreplied comment", "nextUnrepliedDiscussion()"],
["k", "Previous unreplied comment", "prevUnrepliedDiscussion()"],
[null, "Next comment", "nextDiscussion()"],
[null, "Previous comment", "prevDiscussion()"],
["shift+j", "Next unresolved comment", "nextUnresolvedDiscussionWithoutDraft()"],
["shift+k", "Previous unresolved comment", "prevUnresolvedDiscussionWithoutDraft()"],
[null, "Next draft", "nextDraft()"],
[null, "Previous draft", "prevDraft()"],
[null, "First unreplied comment", "firstUnrepliedDiscussion()"],
[null, "Last unreplied comment", "lastUnrepliedDiscussion()"],
[null, "First comment", "firstDiscussion()"],
[null, "Last comment", "lastDiscussion()"],
[null, "First unresolved comment", "firstUnresolvedDiscussionWithoutDraft()"],
[null, "Last unresolved comment", "lastUnresolvedDiscussionWithoutDraft()"],
[null, "First draft", "firstDraft()"],
[null, "Last draft", "lastDraft()"],
[".", "Next item that needs attention", "nextChangedFileOrUnrepliedDiscussion()"],
[",", "Previous item that needs attention", "prevChangedFileOrUnrepliedDiscussion()"],
[null, "First item that needs attention", "firstChangedFileOrUnrepliedDiscussion()"],
[null, "Last item that needs attention", "lastChangedFileOrUnrepliedDiscussion()"],
[["r", "enter"], "Reply to comment", "replyToCurrentDiscussion()"],
["d", "Reply to comment with 'Done'", "replyToCurrentDiscussion('Done.')"],
["y", "Acknowledge comment", "acknowledgeCurrentDiscussion()"],
[null, "Set disposition to \"discussing\"", "setCurrentDiscussionDisposition('discussing')"],
[null, "Set disposition to \"satisfied\"", "setCurrentDiscussionDisposition('satisfied')"],
[null, "Set disposition to \"blocking\"", "setCurrentDiscussionDisposition('blocking')"],
["mod+shift+o", "Show / hide older comments", "toggleCurrentDiscussionOlderComments()"],
["mod+shift+p", "Toggle draft preview", "toggleCurrentDraftPreview()"],
[null, "Delete comment", "deleteDraft()"],
[["command+enter", "ctrl+enter"], "Publish current comment", "sendCurrentComment()"],
[["command+shift+enter", "ctrl+shift+enter"], "Publish all comments", "sendAll()"],
[["command+/", "ctrl+/"], "Toggle bunny dropdown", "toggleOverlay()"],
[null, "Toggle status checks dropdown", "toggleRevisionStatus()"],
[null, "Toggle changes dropdown", "toggleChangesDropdown()"],
[null, "Toggle published message preview", "toggleSendAllPreviewDropdown()"],
["g f", "Go to the file matrix", "visitFileMatrix()"],
["g r", "Return to reviews dashboard", "navigate('/reviews')"]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment