completion/ivy: fix file search not searching compressed archives
This commit is contained in:
parent
4f9cb60e07
commit
dbdce2a8b2
2 changed files with 5 additions and 4 deletions
|
@ -251,8 +251,7 @@ search current file. See `+ivy-task-tags' to customize what this searches for."
|
|||
(counsel-projectile-grep args))
|
||||
(counsel-projectile-grep args))))
|
||||
('ag
|
||||
(let ((args (concat " -S" ; smart-case
|
||||
(if all-files-p " -a")
|
||||
(let ((args (concat (if all-files-p " -a")
|
||||
(unless recursion-p " --depth 1"))))
|
||||
(counsel-ag query directory args (format prompt args))))
|
||||
('rg
|
||||
|
@ -262,7 +261,6 @@ search current file. See `+ivy-task-tags' to customize what this searches for."
|
|||
('pt
|
||||
(let ((counsel-pt-base-command
|
||||
(concat counsel-pt-base-command
|
||||
" -S" ; smart-case
|
||||
(if all-files-p " -U")
|
||||
(unless recursion-p " --depth=1")))
|
||||
(default-directory directory))
|
||||
|
|
|
@ -93,7 +93,10 @@ immediately runs it on the current candidate (ending the ivy session)."
|
|||
:config
|
||||
(set! :popup "^\\*ivy-occur" '((size . 0.35)) '((transient . 0) (quit)))
|
||||
|
||||
(setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)")
|
||||
(setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)"
|
||||
counsel-rg-base-command "rg -zS --no-heading --line-number --color never %s ."
|
||||
counsel-ag-base-command "ag -zS --nocolor --nogroup %s"
|
||||
counsel-pt-base-command "pt -zS --nocolor --nogroup -e %s")
|
||||
|
||||
;; Dim recentf entries that are not in the current project.
|
||||
(ivy-set-display-transformer #'counsel-recentf #'+ivy-recentf-transformer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue