summaryrefslogtreecommitdiff
path: root/modes/magit
AgeCommit message (Collapse)Author
2026-04-26Use v for evil-visual-charJames Nguyen
2026-04-25Bind ret & shift-ret for the two related RET commands:James Nguyen
magit-diff-visit-worktree-file and magit-diff-visit-file This allows us to get the old behavior of RET before the switch to defaulting to visiting the diff but still allow consisten behavior. Set this: +(defcustom evil-collection-magit-visit-worktree-file-on-return t to nil to match RET in magit without evil. This would be the original (but updated) behavior. Another way to configure the behavior (and more context): From: `magit-diff-visit-file' In the past \\`<return>' (this command) used to go to the file in the worktree, if point is on an added or context line of a diff showing staged changes. Set `magit-diff-visit-prefer-worktree' to t to restore that behavior, but note that doing so makes the behavior inconsistent and you would give up on the ability to visit the index blob. If you already use \\[magit-diff-visit-worktree-file] to jump to the live \ file from committed changes, it might be better to retrain muscle memory to do the same from staged changes.
2026-03-25magit: add M-j/M-k bindings for section sibling navigationNate Tarrh
C-j/C-k are remapped from C-n/C-p for section navigation, but the corresponding M-n/M-p (sibling navigation) had no M-j/M-k equivalents. This is inconsistent, especially since git-rebase-mode already maps M-j/M-k for line movement. Add M-j/M-k as additional bindings for magit-section-forward-sibling and magit-section-backward-sibling in magit-mode-map, and for git-commit-next-message and git-commit-prev-message in git-commit-mode-map.
2026-03-06docs(magit): clarify default worktree keys as Z/%Jean-Denis Koeck
2026-03-06docs(magit): document worktree key in keybindings tableJean-Denis Koeck
2026-03-06magit: Fix :exclude-newline rewritingTim Ruffing
Only rewrite the EXCLUDE-NEWLINE argument when evil-collection-magit-in-visual-pre-command is t. Previously the code always rewrote the argument to nil even when evil-collection-magit-in-visual-pre-command was not bound.
2025-10-16magit-blob-mode: refresh evil keymapscondy
Fix #878
2024-11-23Magit: Use C-l instead of ^l (#831)James Nguyen
2024-11-23Magit: Change how C-l is bound (#831)James Nguyen
2024-10-12Add keybindings for with-editorTianshu Wang
2024-08-05Make toggle-text-mode work in git-rebase-mode buffersEmil Lundberg
Magit's git-rebase-mode uses a different mode and a different keymap from the main Magit buffer. toggle-text-mode also needs to disable read-only-mode in rebase-mode buffers.
2024-06-08magit: Separate mode for magit-reposFrédéric Giquel
2024-04-11Just install, don't packageJenChieh
2023-12-16magit, forge: Enable lexical-bindingcondy
2022-06-06Change package-requires to 26.3James Nguyen
25 was already deprecated a year ago: https://github.com/emacs-evil/evil-collection/pull/508/files
2022-05-23[Magit]: Add new customs to bind $ and 0James Nguyen
2022-04-30Add some repolist bindingsJames Nguyen
2022-04-14Magit: Change motion states to normalJames Nguyen
2022-04-14Sort magit maps to allow key translation to work (#433)James Nguyen
2022-04-02magit: fix testscondy
2022-03-14Use transient's definition macros by their new namesJonas Bernoulli
See https://github.com/magit/transient/issues/192.
2022-01-23Avoid binding escape to bury-buffer and quit-windowSteven Allen
Escape usually means to: 1. Return to normal mode. 2. Abort the minibuffer. By binding it to quit-window (or equivalent), hitting escape a few times to exit a (potentially recursive) minibuffer, etc. can cause buffers to vanish. It's also: 1. Inconsistently applied. 2. Redundant with "q" (which is consistently applied).
2022-01-23Use default v/V for magit revert actioncondy
Fixes #571 Co-authored-by: Micah Buckley-Farlee <micah@super.mx>
2022-01-04Fix C-u scroll in magit configJanek
2021-11-11Add support for forgeJames Nguyen
2021-08-26fix use-z-for-folds also in magit-mode-mapmosquito-magnet
Keybinding for magit-mode-map has also changed, Z is now magit-worktree instead of magit-stash. Remap it to magit-stash. Magit-worktree still has its old mapping to %.
2021-08-26magit: fix use-z-for-foldsmosquito-magnet
magit-worktree has been moved from "%" to "Z" in transient prefix magit-dispatch in commit 9bec1c54ab0705eb68ae4aa6c8a0498999a018f6. When mapping magit-stash to Z in magit-dispatch due to evil-collection-magit-use-z-for-folds, first move magit-worktree back to its original keybinding to avoid collision.
2021-07-10magit: fix search repeat in magit-blamecondy
close #502
2021-07-08magit: properly bind escape key0.0.6condy
2021-06-28Properly bind escape in magit-mode-mapNicholas Vollmer
Without using `kbd', each key in the string "<escape>" is interpreted as a prefix key.
2021-06-26magit: interpret evil-toggle-key in the right waycondy
fix #492
2021-05-08Docstring: evil-collection-magit-use-y-for-yankduianto
`magit-show-refs-popup` and `magit-dispatch-popup` have been renamed without "-popup". Define magit-show-refs as a transient command https://github.com/magit/magit/commit/c3135cdb23e223ebf8f3c802616ebb81103fdbe9 Define magit-dispatch as a transient command https://github.com/magit/magit/commit/dde9a5b77a483fa35d932aecd22c1a4c954ce77e And make the docstring more readable, with the related key and command on the same line.
2021-04-24Magit: Properly format rebase instructions when commentChar is "%"Andrew Psaltis
This change adjusts the formatting of the instructions in the `git-rebase` buffer to allow them to be properly formatted when git's `core.commentChar` is set to `%`. In particular, lines will look something like this: ``` %-8s p ``` The root cause seems to be the how the lines are constructed: comment characters are directly added to the format string. When it is `%`, `format` appears to proceed until it finds the next `%` character, (corresponding to the `%` in `%-8s`) above and prints it directly to the string rather than interpreting it something to format. This is fixed by constructing the format string with the comment character as an argument to `format` rather than being added directly to the format string. Fixes #468.
2021-04-13Magit: Keep bindings consistent with prefix key in magit-revertKira Bruneau
"O" is used to launch `magit-reset`, not `magit-revert`. "_" and "-" should be used for the suffix commands to be consistent with the prefix key "_".
2021-01-30Magit: Rely on popup backup when reverting popups (#446)James Nguyen
2021-01-30Magit: Add submodule prefix back in after forge loads (#446)James Nguyen
2021-01-24Magit: Declare more variables (#449)James Nguyen
2021-01-24magit: (visual) set "y" to magit-copy-section-valueBenjamin Motz
2021-01-17Magit: Replace evil-define-key with evil-collection-define-keyJames Nguyen
2021-01-17Magit: Add more maps for rotation (#433)James Nguyen
2021-01-04Magit: Wrap rebase define-keys with (kbd)James Nguyen
Later we use lookup-key in this way: (lookup-key aux-map (kbd (car cmd))) which was slightly different from how we were defining the keymap which resulted in M-j & M-k not being bound or displayed properly.
2021-01-01magit: make gj/gk behave consistentlyBenjamin Motz
Both should do the same thing, which is magit-section-{forward,backward}-sibling.
2020-11-27Remove extra commasJames Nguyen
2020-11-27Magit: Fix a few more cases where binds aren't set (#407)James Nguyen
2020-11-25Magit: Use kbd with S-SPC and S-DEL (#406)James Nguyen
2020-11-24Update latest changes to evil-magitJames Nguyen
Fix test failure in when testing original section bindings: + `((,(copy-keymap magit-file-section-map) "\C-j" magit-diff-visit-worktree-file) + (,(copy-keymap magit-hunk-section-map) "\C-j" magit-diff-visit-worktree-file))
2020-11-24Port over evil-magitJames Nguyen
2019-10-09Use subdirectories for setup files (+READMEs)Justin Burkett
Move setup files into subdirectories. Move mode directories to modes subdir. This will make it easy to specify a recipe in melpa that maintains the directory structure. Add interactive functions to jump to .el and README files See #170