[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 83f04c0 092/395: counsel.el (counsel-flycheck
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 83f04c0 092/395: counsel.el (counsel-flycheck): Add |
Date: |
Thu, 25 Feb 2021 08:31:38 -0500 (EST) |
branch: externals/ivy-hydra
commit 83f04c0ec54a3627c3d1476006787f91ca176e17
Author: Rudi Grinberg <me@rgrinberg.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
counsel.el (counsel-flycheck): Add
Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
---
counsel.el | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/counsel.el b/counsel.el
index f8e94db..ea1374a 100644
--- a/counsel.el
+++ b/counsel.el
@@ -6324,6 +6324,29 @@ Local bindings (`counsel-mode-map'):
(when (fboundp 'advice-remove)
(advice-remove #'describe-bindings #'counsel-descbinds))))
+(defun counsel-flycheck-errors-cands ()
+ (seq-map
+ (lambda (error)
+ (propertize
+ (format "%s:%d:%s"
+ (file-name-base (flycheck-error-filename error))
+ (flycheck-error-line error)
+ (flycheck-error-message error)) 'error error))
+ flycheck-current-errors))
+
+(defun counsel-flycheck-errors-action (error)
+ (flycheck-jump-to-error (get-text-property 0 'error error)))
+
+;;;###autoload
+(defun counsel-flycheck ()
+ "Flycheck errors."
+ (interactive)
+ (require 'flycheck)
+ (ivy-read "flycheck errors: " (counsel-flycheck-errors-cands)
+ :require-match t
+ :action #'counsel-flycheck-errors-action
+ :history 'counsel-flycheck-errors-history))
+
(provide 'counsel)
;;; counsel.el ends here
- [elpa] externals/ivy-hydra 1578f52 022/395: ivy.el: Autoload ivy-hydra-read-action, (continued)
- [elpa] externals/ivy-hydra 1578f52 022/395: ivy.el: Autoload ivy-hydra-read-action, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra f73cd70 023/395: counsel.el (counsel--find-file-matcher): Use counsel-find-file-ignore-regexp, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d837871 030/395: ivy.el (ivy-thing-at-point): Don't hang when pinging machine, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra aef2538 040/395: ivy-test.el (ivy--split): Add test, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra b603d89 045/395: counsel.el: Fix typos, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e32f14d 067/395: targets/plain.el (ivy-use-virtual-buffers): Enable, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 529cc08 071/395: ivy-test.el (ivy-swiper-wgrep): Disable on 24.5, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1b3d0a3 072/395: ivy.el (ivy--split): Fix for "\\" input, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra e2f1fe1 068/395: swiper.el (swiper--query-replace-updatefn): Fix bug, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 4fbd5a9 081/395: ivy-test.el (ivy-completing-read): Add test, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 83f04c0 092/395: counsel.el (counsel-flycheck): Add,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra 99c02cc 109/395: ivy.el (ivy-partial): Fix ivy-regex mistaken for ivy-text, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 93d925d 121/395: counsel.el (counsel-mark--get-candidates): Extract, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3119994 144/395: ivy.el (ivy--tramp-prefix-p): Fix regression, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 82331ed 147/395: Revert "Don't hardcode C-s and C-r", Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 8386220 173/395: swiper.el (swiper-isearch): Save mark, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra c84bc31 164/395: ivy.el (ivy--magic-file-slash): Use "///" instead of "//" on Windows, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7c0f16d 155/395: swiper.el (swiper--re-builder): Genaralize search-default-mode, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 40a7731 199/395: ivy.el (ivy-switch-buffer-transformer): Change how remote dirs are displayed, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 5f430f4 198/395: ivy.el (ivy-switch-buffer-transformer): Fix for virtual buffers, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 9e0803c 226/395: ivy.el (ivy--remote-name): Extract and use the file name, Basil L. Contovounesios, 2021/02/25