Skip to content

Commit

Permalink
refactor: update segment process
Browse files Browse the repository at this point in the history
  • Loading branch information
eki3z committed Oct 2, 2024
1 parent 56c98d8 commit 19522c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mini-echo-segments.el
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,8 @@ with ellipsis."
'face 'mini-echo-green-bold)
(concat (propertize sort-item 'face 'mini-echo-blue-bold)
(propertize sign 'face 'mini-echo-yellow-bold)))))
('rg-mode (mini-echo-segment--print str nil 25))
((guard (derived-mode-p 'sh-base-mode)) nil)
('rg-mode (car (string-split str " ")))
(_ (mini-echo-segment--print str nil nil)))))

(mini-echo-define-segment "time"
Expand Down
1 change: 1 addition & 0 deletions mini-echo.el
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ Otherwise, return nil."
('diff-mode '(:both ("major-mode")))
('dired-mode '(:both ("major-mode" "dired")))
('helpful-mode '(:both ("major-mode" "helpful")))
('rg-mode '(:both ("major-mode")))
('xwidget-webkit-mode '(:long ("shrink-path") :short ("buffer-name")))
(_ nil))))

Expand Down

0 comments on commit 19522c8

Please sign in to comment.