Skip to content

Commit

Permalink
feat(segment): add segment wgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
eki3z committed Oct 2, 2024
1 parent dac0b82 commit 56c98d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions mini-echo-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,13 @@ Segment appearance depends on var `vc-display-status' and faces like
25)))
(propertize "|" 'face 'font-lock-doc-face))))

(mini-echo-define-segment "wgrep"
"Return info of wgrep-able buffers."
:fetch
(when (and (bound-and-true-p wgrep-prepared)
wgrep-sibling-buffer)

Check warning on line 867 in mini-echo-segments.el

View workflow job for this annotation

GitHub Actions / build (29.1, true)

reference to free variable ‘wgrep-sibling-buffer’

Check warning on line 867 in mini-echo-segments.el

View workflow job for this annotation

GitHub Actions / build (29.2, true)

reference to free variable ‘wgrep-sibling-buffer’

Check warning on line 867 in mini-echo-segments.el

View workflow job for this annotation

GitHub Actions / build (29.3, true)

reference to free variable ‘wgrep-sibling-buffer’

Check warning on line 867 in mini-echo-segments.el

View workflow job for this annotation

GitHub Actions / build (29.4, true)

reference to free variable ‘wgrep-sibling-buffer’

Check warning on line 867 in mini-echo-segments.el

View workflow job for this annotation

GitHub Actions / build (snapshot, true)

reference to free variable ‘wgrep-sibling-buffer’
(propertize "Wgrep" 'face 'mini-echo-yellow-bold)))

;; TODO add more segments

(provide 'mini-echo-segments)
Expand Down
2 changes: 1 addition & 1 deletion mini-echo.el
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Used as fallback if `mini-echo-persistent-function' return nil."

(defcustom mini-echo-temporary-rule
'(:both ("process" "selection-info" "narrow" "macro"
"profiler" "repeat" "blame" "text-scale"))
"profiler" "repeat" "blame" "text-scale" "wgrep"))
"Plist of segments which are temporary for buffers.
These segments are triggered by commands usually."
:type '(plist :key-type symbol
Expand Down

0 comments on commit 56c98d8

Please sign in to comment.