emacs-evil / emacs-evil/evil

[Feature] Support `defclass` for evil motions

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

Description

# Issue type

- Enhancement request

# Pitch

Given that we have evil motions for going backwards (for `defun`: `evil-backward-section-end`) and forward for `defun`, it would be helpful to have the same for `defclass` as well. This would ideally make it easier to have a keymap to go back to previous/next class directly instead of moving between functions.

Going through the code-base, I didn't find functions that would support `defclass` like they do for `defun` (like `beginning-of-defun`, `end-of-defun`). Please point out if I missed anything here.

# Environment

Emacs version: 29.4
Operating System: Endeavour OS
Evil version: 1.15.0
Evil installation type: MELPA
Graphical/Terminal: Terminal (/both)

# Further notes

Happy to discuss this forward and any thoughts on implementations (can help with a PR if necessary).

Was just curious, was there any reasoning to not support motions for `defclass`? Maybe I'm missing some context here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.