Skip to content

Instantly share code, notes, and snippets.

@markd2
Last active February 24, 2020 19:13
Show Gist options
  • Save markd2/755ec24bfaf22461fadc830685a1ec99 to your computer and use it in GitHub Desktop.
Save markd2/755ec24bfaf22461fadc830685a1ec99 to your computer and use it in GitHub Desktop.
custom keybindings for reviewable.io
[
["f", "Show next/latest diffs", "setProposedDiffBounds()"],
["n", "Next unreviewed file", "nextUnreviewedFile()"],
["p", "Previous unreviewed file", "prevUnreviewedFile()"],
[null, "Next personally unreviewed file", "nextPersonallyUnreviewedFile()"],
[null, "Previous personally unreviewed file", "prevPersonallyUnreviewedFile()"],
["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 personally unreviewed file", "firstPersonallyUnreviewedFile()"],
[null, "Last personally unreviewed file", "lastPersonallyUnreviewedFile()"],
[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()"],
[null, "Mark file as reviewed and advance", "markFileReviewedAndAdvance()"],
["shift+r", "Mark file as reviewed and retreat", "markFileReviewedAndRetreat()"],
[null, "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", "nextUnresolvedDiscussion()"],
["shift+k", "Previous unresolved comment", "prevUnresolvedDiscussion()"],
[null, "Next unresolved comment without draft reply", "nextUnresolvedDiscussionWithoutDraft()"],
[null, "Previous unresolved comment without draft reply", "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", "firstUnresolvedDiscussion()"],
[null, "Last unresolved comment", "lastUnresolvedDiscussion()"],
[null, "First unresolved comment without draft reply", "firstUnresolvedDiscussionWithoutDraft()"],
[null, "Last unresolved comment without draft reply", "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()"],
["y", "Accept or acknowledge comment", "acknowledgeCurrentDiscussion()"],
[null, "Set disposition to \"discussing\"", "setCurrentDiscussionDisposition('discussing')"],
[null, "Set disposition to \"satisfied\"", "setCurrentDiscussionDisposition('satisfied')"],
[null, "Set disposition to \"blocking\"", "setCurrentDiscussionDisposition('blocking')"],
[null, "Set disposition to \"working\"", "setCurrentDiscussionDisposition('working')"],
["mod+shift+o", "Show / hide older comments", "toggleCurrentDiscussionOlderComments()"],
[null, "Show and expand all comments", "showHideAllComments(true)"],
[null, "Collapse all comments", "showHideAllComments(false)"],
["mod+shift+p", "Toggle draft preview", "toggleCurrentDraftPreview()"],
[null, "Delete comment", "deleteDraft()"],
[null, "Publish current comment", "sendCurrentComment()"],
[null, "Publish all comments", "publish()"],
[null, "Toggle bunny dropdown", "toggleOverlay()"],
[null, "Toggle status checks dropdown", "toggleRevisionStatus()"],
[null, "Toggle changes dropdown", "toggleChangesDropdown()"],
[null, "Go to the file matrix", "visitFileMatrix()"],
[null, "Copy head branch name", "copyHeadBranch()"],
[null, "Edit PR's base branch", "editBaseBranch()"],
[null, "Return to reviews dashboard", "navigate('/reviews')"]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment