Additional proposed infix arguments and suffix commands
Clone this wiki locally
Sometimes a user suggests that some infix argument or suffix command be added to a popup and the maintainer decides otherwise, usually because he feels that would not serve all users well. In other case he might just want some time to consider the proposal, or would like to delay adding the argument or command, until some preparations are done. But fear not, you can usually just add it yourself.
When a suggestion is rejected, then the user is usually encouraged to add an entry here. These entries serve as examples and you might even discover a suggested binding that you like but didn't think of yourself.
(magit-define-popup-switch 'magit-log-popup ?m "Omit merge commits" "--no-merges")
Proposed in https://github.com/magit/magit/issues/2137.
(magit-define-popup-switch 'magit-log-popup ?s "Always sort by date" "--date-order") ;; (add-to-list 'magit-log-arguments "--date-order")
The commented line would add the flag to the list of default arguments; you can use the switch to turn it off then.
Proposed only here.
(magit-define-popup-switch 'magit-log-popup ?1 "First parent" "--first-parent")
Proposed in https://github.com/magit/magit/pull/2538.
add an action to view the wip log
(magit-define-popup-action 'magit-log-popup ?w "Wip" 'magit-wip-log-current)
This displays a log of wip saves created with one of the Magit wip modes. Note that none of these modes is currently active by default, you must enable them explicitly in your config.
Proposed in https://github.com/magit/magit/issues/2151.
(magit-define-popup-option 'magit-commit-popup ?D "Override the author date" "--date=" #'read-from-minibuffer)
Proposed in https://github.com/magit/magit/issues/2307.
(magit-define-popup-action 'magit-dispatch-popup ?x "Reset" 'magit-reset ?!)
Proposed in https://github.com/magit/magit/issues/2141.
(magit-define-popup-switch 'magit-patch-popup ?c "Generate cover letter" "--cover-letter")
Proposed in https://github.com/magit/magit/pull/2233.
(magit-define-popup-action 'magit-branch-popup ?o "Checkout new orphan branch" 'magit-branch-orphan)
Proposed in https://github.com/magit/magit/pull/2030.
add argument --follow-tags
(magit-define-popup-switch 'magit-push-popup ?t "Follow tags" "--follow-tags")
Proposed in https://github.com/magit/magit/pull/2919.