Commit Graph

34 Commits

Author SHA1 Message Date
b405225b90 refactor!(vc-gutter): drop git-gutter for diff-hl
BREAKING CHANGE: This removes git-gutter as an implementation for the
`:ui vc-gutter` module, leaving only the diff-hl implementation. There
are no longer any +git-gutter or +diff-hl flags for this module. Users
don't have to do anything to keep the vc gutter, unless they prefer
git-gutter for any reason (in which case they'll need to install and set
it up themselves).

This has been planned for some time, because of a roadmap goal for Doom
to lean into native/built-in functionality where it's equal or better
than the third party alternatives. diff-hl relies on the built-in vc.el
library instead of talking to git directly (thus expanding support to
whatever VCS's vc.el supports, and not git alone), which also means it
can take advantage of its caching and other user configuration for
vc.el. Overall, it is faster and lighter.

What I've also been waiting for was a stage-hunk command, similar to
git-gutter:stage-hunk, which arrived in dgutov/diff-hl@a0560551cd and
dgutov/diff-hl@133538973b, and have evolved since.

Ref: dgutov/diff-hl@a0560551cd
Ref: dgutov/diff-hl@133538973b
Ref: https://github.com/orgs/doomemacs/projects/5/views/1?pane=issue&itemId=58747789
2024-06-22 18:14:04 -04:00
0f0fade3c0 fix(layout): bepo: void-variable org-capture-mode-map error
Caused if org is loaded without/before org-capture.

Ref: #7408
2023-09-12 21:30:56 +02:00
559229c250 fix(layout): Bépo rotation happening before magit
Fixes an issue where binding rotations in Bépo were happening too soon,
resulting in some remaps not being visible to the user when interacting
with magit, :editor evil +everywhere, and :input layout +bepo

Ref: https://discourse.doomemacs.org/t/layout-bepo-does-not-properly-remap-k-in-magit/3063
2022-09-16 13:15:46 +02:00
ad6a3d0f33 refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
a096e9493b fix(layout): prevent magit from stealing t in bépo
Just as magit took control of 's' after "key rotation", magit (at least
when unpinned) takes control of 't' and we need to manually unmap the
key so that 't' goes down one line when the cursor is on a magit section
header
2021-09-15 16:48:09 +02:00
24eaa1317c completion/selectrum -> completion/vertico, part 2
- Rename module from `:completion selectrum` to `:completion vertico`
- Rename all files involved
- Do *not* yet rename all the functions, as that messes up git's rename
  detection.
2021-07-25 02:51:15 +03:00
f9e1c99b2b completion/selectrum -> completion/vertico, part 1
- Use `vertico` as default completion engine
- Drop `selectrum` and `selectrum-prescient` support
2021-07-25 02:50:42 +03:00
cbbbf0de5c fix(input layout bepo): remap visual-line-mode-map (#5019)
* fix(input layout bepo): remap visual-line-mode-map

Fixes #5002

* TO SQUASH: map visual-line-mode-map

See comment for rationale. This is the only way to make the remapping work correctly.

`j` and `k` aren't remapped because `t` and `s` had no meaning at all on
`visual-line-mode-map` in `motion` state.

* TO SQUASH: sharpquote and align
2021-05-10 04:57:06 -04:00
804504025c fix(:input layout bepo): Ensure eshell rotation goes after evil-collection maps
Fixes #4847
2021-05-09 12:30:45 +02:00
dbd49922b8 :input layout: fix calls of +layout-bepo-rotate-keymaps pt.2 (#4973)
* :input layout: fix calls of +layout-bepo-rotate-keymaps pt.2
2021-05-03 14:24:54 -04:00
ab127b9766 :input layout: fix calls of +layout-bepo-rotate-keymaps
After the refactor, the main function to call to fix small inconsistencies went from a raw evil-collection-setup-hook
 function to a proper helper function with a more logical signature. 

This fixes the calls to the new function, so that the custom fixes are properly applied
2021-05-01 11:44:47 +02:00
59a8856ecf input/layout: remove redundancies
Some forms snuck into the last commit.
2021-05-01 01:28:20 -04:00
485381f6d1 input/layout: major refactor
To conform the module to Doom's naming and style conventions.

This introduces two breaking changes:

+ doom-bepo-cr-rotation-style was renamed +layout-bepo-cr-rotation-style
+ Replaces the doom-bepo- prefix for this module's bepo library with
  +layout-bepo-

And the following fixes:

+ Corrects the file path in file header comments.
+ input/layout/autoload/bepo.el is no longer compiled/indexed if +bepo
  isn't activated.
2021-05-01 01:25:42 -04:00
165541cdae fix(input layout bepo): unmap t/s in Info-mode-map
Fixes #4848
2021-04-17 09:59:09 +02:00
9ac79c6e86 fix(:input layout bepo): make evilem use gé
For some reason, using only the `map!` call did not work, the reason is
still unclear but calling the evilem-default-keybdings function worked
so going with that.
2021-04-14 08:56:02 +02:00
3acbf8e90d Apply changes to helm and selectrum maps 2021-04-14 08:56:02 +02:00
39b355cfd3 Fix #4736 - remap insert state bindings in minibuffer maps
- Run `doom-bepo--evil-collection-hook` on all minibuffer maps. This
  allows all bindings in <insert-state> to be remapped in minibuffer
  contexts
- Unmap `swiper-C-s`
2021-04-14 08:55:58 +02:00
065b26e0c5 [:ui layout bepo] Fix notmuch, C-, M- mappings
WIP:
- Add fixme for evil-org remaps

Misc changes:
- Remove notmuch-search binding
  (Unmap the bare "s" keymap from notmuch)
- Remap [] evil-org bindings to ()
- Fix org-capture not finalizing with C-c
- Remap evilem-map
- Add more triggers to minibuffer rotations
- Unmap C-c and C-r from evil-org

Meta:
- Specify bepo layout in maintainer status
- Add basic troubleshooting

In the remapping functions:
- Add operator maps
- Remap C- and M- bindings in normal mode

Respect evil-org-movement-bindings:
This allow non-qwerty users to keep the correct bindings. The additional
let-binding is done to force evaluation of the concatenations and avoid
`void-variable concat` when the map! gets evaluated

Avoid double rotation on magit maps

- Reorder properly magit-mode-map like done on notmuch
  (evil-collection PR#428)
2021-02-22 10:32:03 +01:00
6665d2b6c2 [:input layout] Follow evil-magit migration 2020-11-28 18:47:11 +01:00
5373f87234 [bepo] tools/lsp: add t/s/C-t/C-s for lsp-ui-peek
Reference is 2491c8ed2c
2020-10-15 09:57:33 +02:00
d44c5863c7 Map evil-window-map to C-é
And add a comment about nobreak-char-display seemingly not working with
pgtk on wayland
2020-10-06 03:07:28 +02:00
15d1626d9b Revert "[bepo] Map ace window to <leader>éé (from ww)"
This reverts commit f403a05d70.
2020-10-06 02:57:07 +02:00
f403a05d70 [bepo] Map ace window to <leader>éé (from ww) 2020-10-06 00:02:23 +02:00
3d36670132 Add evil-org hooks 2020-09-21 23:58:34 +02:00
3c736f441b [bepo] Split good and evil hooks
A few bindings and variables are useful for bepo users even without the
evil module activated
2020-09-21 09:55:19 +02:00
65fed7ad1c Set navkeys for evil-markdown in bepo 2020-08-26 23:52:51 +02:00
49ab3dd23f Separate rotation of minibuffer maps
We cannot use the old method as the hook triggered before the keymaps
are created and possibly modified by (use-package :config :map) hooks
2020-08-24 11:05:00 +02:00
4f81870fda Fix #3783: advice org-completing-read in bepo
The original function tries to map `C-c !` in
minibuffer-local-completion-map although `C-c` is a non-prefix key in
this map for bepo users
2020-08-22 15:55:58 +02:00
71dd71d1aa Fix evil-escape and C-r in ivy 2020-08-18 11:49:46 +02:00
089fe56079 Use simpler method to highlight nbsp
If it does not work on non-X builds we will fall back to the ergodis
method based on adding a font-lock class
2020-08-18 11:49:46 +02:00
bfafcdfb0c Set lispy-avy-keys as well 2020-08-18 11:49:45 +02:00
004a2c50fe Complete readme and fix magit-status crhl keys 2020-08-18 11:49:45 +02:00
3ef2531356 Remove doom!-order dependency
The doom-init-modules-hook will do the work at the correct timing
2020-08-18 11:49:45 +02:00
911d7cb82c Add support for bépo layout in a dedicated module
Evil is loaded too early to be able to wait for the
config.el file of a user to set the CR-rotation style variable.
2020-08-18 11:49:25 +02:00