/consult-todo

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

consult-todo

License GPL 3 MELPA

Search and jump hl-todo keywords in buffers with consult.

Contents

Screenshot

  • consult-todo: Jump to hl-todo keywords in current buffer.

consult-todo

  • consult-todo-all: Jump to hl-todo keywords in all live buffers.

consult-todo-all

Install

dependencies

package

  • Manually

Clone and add to load-path, require the package.

  • Melpa

Install with M-x package-install RET consult-todo within Emacs.

Usage

;; Directly
(require 'consult-todo)

;; Or with use-package
(use-package consult-todo :demand t)
  • consult-todo: search in current buffer

  • consult-todo-all: search in all hl-todo-mode enabled buffers

Warning: commands below is still buggy, use it as little as possible

  • consult-todo-dir: search in current directory

  • consult-todo-project: search in current project

Customization

  • consult-todo-narrow: Mapping of narrows and keywords, if it's nil, use default value below instead.
(defconst consult-todo--narrow
  '((?t . "TODO")
    (?f . "FIXME")
    (?b . "BUG")
    (?h . "HACK"))
  "Default mapping of narrow and keywords.")
  • consult-todo-other: Cons for other missing keywords, (?. . "OTHER") by default.

  • consult-todo-only-comment: toggle whether only search keywords in comment, only effective on buffers

Todo

  • search keywords in all project files

License

See LICENSE.