

GitHub - rolandwalker/fixmee: Quickly navigate to FIXME notices in Emacs
source link: https://github.com/rolandwalker/fixmee
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Overview
Quickly navigate to FIXME notices in Emacs.
Quickstart
(require 'fixmee) (require 'button-lock) (global-fixmee-mode 1) ;; right-click on the word "fixme" in a comment ;; for next-error support: ;; ;; M-x fixmee-view-listing RET
Explanation
Fixmee-mode tracks fixme
notices in code comments, highlights them,
ranks them by urgency, and lets you navigate to them quickly.
A distinguishing feature of this library is that it tracks the urgency of each notice, allowing the user to jump directly to the most important problems.
Urgency of "fixme" notices is indicated by repetitions of the final
character. For example, one might write FIXMEEEEEEEEE
for an
important issue. The fixmee-goto-nextmost-urgent
command will
navigate to the longest notice first.
To use fixmee-mode, add the following to your ~/.emacs
file
(require 'fixmee) (require 'button-lock) (global-fixmee-mode 1)
Then, open some buffers and right-click on the word "fixme" in a comment
or press
C-c f
M-x fixmee RET
roll the mouse wheel when hovering over the text "fixm" in the modeline.
execute `fixmee-view-listing` to navigate using `next-error` conventions.
Key Bindings
The default key bindings are
Keystrokes Function C-c ffixmee-goto-nextmost-urgent
C-c F
fixmee-goto-prevmost-urgent
C-c v
fixmee-view-listing
M-n
fixmee-goto-next-by-position
; only when the point is
M-p
fixmee-goto-previous-by-position
; inside a fixme notice
To constrain the nextmost/prevmost-urgent commands to the current buffer only, use a universal prefix argument, eg
C-u C-c f
When the smartrep package is installed, the C-c prefix need not
be used for consecutive fixmee-mode keyboard commands. Instead, just
keep pressing f (or whichever key you set in customize
).
There is also a context menu and mouse-wheel bindings on the minor-mode lighter in the modeline:
Mouse action Effect mouse-1 context menu wheel-down next by urgency wheel-up previous by urgency M-wheel-down next by position M-wheel-up previous by positionPatterns
The following fixme patterns are supported by default:
@@@
XXX ; only this one is case-sensitive
todo
fixme
Compatibility and Requirements
GNU Emacs version 24.5-devel : not tested
GNU Emacs version 24.4 : yes
GNU Emacs version 24.3 : yes
GNU Emacs version 23.3 : yes
GNU Emacs version 22.2 : yes, with some limitations
GNU Emacs version 21.x and lower : unknown
Requires:
button-lock.el,
tabulated-list.el (included with Emacs 24.x)
Uses if present: nav-flash.el, back-button.el, string-utils.el, smartrep.el
Recommend
-
60
README.markdown
-
32
README.markdown
-
14
"FIXME" Doesn't Always Mean "Fix Me" If you browse through the Swift (or LLVM) codebase for a while, you’ll see a comment like
-
11
Overview Briefly highlight the current line in Emacs. Quickstart (require 'nav-flash) (nav-flash-show) Explanation Nav-flash temporarily highlights the line containing the point, whi...
-
10
Overview List-manipulation utility functions for Emacs. Quickstart (require 'list-utils) (list-utils-flatten '(1 2 (3 4 (5 6 7)))) ;; '(1 2 3 4 5 6 7) (list-utils-depth '(1 2 (3 4 (5 6 7)))) ;; 3 (let ((...
-
9
Overview Improve Emacs flyspell responsiveness using idle timers. Quickstart (require 'flyspell-lazy) (flyspell-lazy-mode 1) (flyspell-mode 1) ; or (flyspell-prog-mode) Explanation
-
9
Overview Persistent storage for Emacs, returning nil on failure. Quickstart (require 'persistent-soft) (persistent-soft-store 'hundred 100 "mydatastore") (persistent-soft-fetch 'hundred "mydatastore") ; 100...
-
8
Overview Utilities for Unicode characters in Emacs. Quickstart (require 'ucs-utils) (ucs-utils-char "Middle Dot" ; character to return ?. ; fallback if unavailable...
-
11
Overview Utility functions for working with fonts in Emacs. Quickstart (require 'font-utils) (font-utils-exists-p "Courier") Explanation Font-utils is a collection of functions for wo...
-
3
Quickly navigate between Finder folders using the keyboard on macOSQuickly navigate between Finder folders using the keyboard on macOSPublished on Sunday, March 5, 2023Photo by
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK