emacs-evil / emacs-evil/evil

undo-tree-visualizer key mapping

Open
#408 1 comment 0 reactions 0 assignees View on GitHub
bug minor
Dominant language
Emacs Lisp
Stars
3.9k
Forks
307
PR merge metrics
No merged PRs in 30d

Description

Originally reported by: **Anonymous**

----------------------------------------

The undo-tree-visualizer key remappings do not work for me. In particular:
```
undo-tree-visualize-redo
undo-tree-visualize-undo
```
Note that I have in my ```init.el``` (as recommended on several internet sites):
```
(define-key evil-normal-state-map (kbd " ") 'evil-next-visual-line)
(define-key evil-normal-state-map (kbd " ") 'evil-previous-visual-line)
(define-key evil-motion-state-map (kbd " ") 'evil-next-visual-line)
(define-key evil-motion-state-map (kbd " ") 'evil-previous-visual-line)
```
Maybe ```h,j,k,l``` should be remapped directly (or is there a better way to do the remapping to visual lines)? In addition, the help page is not helpful cause it shows the emacs commands primarily (some of which work, e.g. ```p```, and some don't, e.g. ```n```) and only the evil remappings at the bottom. Would it show the evil bindings directly if they actual keys are remapped?

Perhaps emacs mode should always be used for this buffer.

----------------------------------------
- Bitbucket: https://bitbucket.org/lyro/evil/issue/408

Contributor guide

Open the contributing guide

Research direction

Reproduce the mappings from init.el, then inspect the undo-tree-visualizer keymap and its help page while comparing Emacs and evil bindings. Determine whether remapped visual-line keys should work in the visualizer and whether the help should show the active evil bindings; done means the intended mappings work and the documentation is accurate.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs, emacs-lisp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.