We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86635fb commit 6605995Copy full SHA for 6605995
counsel.el
@@ -2466,7 +2466,14 @@ It applies no filtering to ivy--all-candidates."
2466
(insert (format "-*- mode:grep; default-directory: %S -*-\n\n\n" default-directory))
2467
(insert (format "%d candidates:\n" (length ivy--all-candidates)))
2468
(ivy--occur-insert-lines
2469
- (mapcar (lambda (cand) (concat "./" prepend cand)) ivy--all-candidates))))
+ (mapcar (lambda (cand)
2470
+ (save-match-data
2471
+ (if (string-match
2472
+ ;; Remove column indicators if present
2473
+ "\\(?1:[^\n:]+?[^\n/:]\\):[\t ]*\\(?3:[1-9][0-9]*\\)[\t ]*:\\(?3:[1-9][0-9]*:\\)" cand)
2474
+ (replace-match "" nil nil cand 3)
2475
+ cand)
2476
+ (concat "./" prepend cand))) ivy--all-candidates))))
2477
2478
;;** `counsel-ag'
2479
(defvar counsel-ag-map
0 commit comments