Skip to content

Conversation

feluxe
Copy link

@feluxe feluxe commented Apr 1, 2025

This adds arguments show-local and show-global to evil-collection-consult--evil-mark-ring allowing you to create these consult lists:

  • M-x evil-collection-consult-mark-global: List uppercase marks for all open buffers.
  • M-x evil-collection-consult-mark-buffer-local: List lowercase marks for current buffer. (current implementation)
  • M-x evil-collection-consult-mark-buffer-global: List uppercase marks for current buffer.
  • M-x M-x evil-collection-consult-mark-buffer: List lowercase and uppercase marks for current buffer.
  • M-x evil-collection-consult-mark-all: List lowercase marks for current buffer and uppercase marks for all buffers.

Sorting behavior:

  • Marks are grouped by file and sorted by line for each buffer which is included in the list.
  • Marks of the current buffer are shown before global marks of the other buffers.

Format:

  • List items for local markers do not include file names. Except when only global markers are shown.

Brief summary of what the package does

[Please write a quick summary of the package.]

Direct link to the package repository

https://github.com/your/awesome_package

Checklist

Assume you're working on mpc mode:

  • byte-compiles cleanly
  • M-x checkdoc is happy. Don't manually write (provide 'evil-collection-mpc), M-x checkdoc can do it automatically for you
  • define evil-collection-mpc-setup with defun
  • define evil-collection-mpc-mode-maps with defconst
  • All functions should start with evil-collection-mpc-

This adds arguments show-local and show-global to
evil-collection-consult--evil-mark-ring allowing you to create these consult
lists:

- List uppercase marks for all open buffers.
- List lowercase marks for current buffer. (current implementation)
- List uppercase marks for current buffer.
- List lowercase and uppercase marks for current buffer.
- List lowercase marks for current buffer and uppercase marks for all
  buffers.

*Sorting behavior*

- Marks are grouped by file and sorted by line for each buffer which is
included in the list.
- Marks of the current buffer are shown before global marks of the other
buffers.

*Format*

- List items for local markers do not include file names. Except when only
  global markers are shown.
@feluxe feluxe marked this pull request as ready for review April 1, 2025 12:32
@condy0919
Copy link
Collaborator

Thanks, a great idea.

But

evil-collection-consult.el:183:2: Error: docstring has wrong usage of unescaped single quotes (use = or different quoting)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants