Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After enable ivy-mode, when do (dired-do-copy), ivy candidate can not ignore ignored file #2882

Open
zw963 opened this issue Jun 3, 2021 · 4 comments

Comments

@zw963
Copy link

zw963 commented Jun 3, 2021

I expect ivy can ignore all files which i set in counsel-find-file-ignore-regexp, follwing is value.

"\\(?:#\\$\\|/\\\\\\.\\(?:\\(?:\\\\\\.\\)?\\$\\)\\|TAGS\\$\\|\\\\\\.elc\\$\\|\\^/\\(?:ssh:\\|tmp/\\\\\\?\\)\\|\\(?:locate\\\\\\.db\\|~\\)\\$\\)"

But it not work, when i do (dired-do-copy) on dired-mode, get following screenshot. ( i expect to ignore *.~undo-tree~)

image

@basil-conto
Copy link
Collaborator

counsel-find-file-ignore-regexp is specific to counsel-find-file, not dired-do-copy (or any other file-reading function that doesn't go through counsel-find-file).

@zw963
Copy link
Author

zw963 commented Jun 3, 2021

counsel-find-file-ignore-regexp is specific to counsel-find-file, not dired-do-copy (or any other file-reading function that doesn't go through counsel-find-file).

I see, thank you, so, how to resolve it? I use helm too, it have a variable helm-boring-file-regexp-list, can take effect on any helm file buffer.

@basil-conto
Copy link
Collaborator

so, how to resolve it?

In vanilla Emacs there's completion-ignored-extensions, but I don't know whether Dired respects that, and I'm pretty sure Ivy doesn't.

So there are three possible and related resolutions:

  1. Make file name reading more customisable in vanilla Emacs
  2. Make file name reading more customisable in Ivy
  3. Both 1 and 2 (e.g. by respecting upstream user options in Ivy)

Either way this sounds like the same underlying limitation / feature request as #2877.

@zw963
Copy link
Author

zw963 commented Jun 4, 2021

In vanilla Emacs there's completion-ignored-extensions, but I don't know whether Dired respects that, and I'm pretty sure Ivy doesn't.

I guess dired don't respect it. following is my completion-ignored_extensions config:

(".hi" ".o" "~" ".bin" ".lbin" ".so" ".a" ".ln" ".blg" ".bbl" ".elc" ".lof" ".glo" ".idx" ".lot" ".svn/" ".hg/" ".git/" ".bzr/" "CVS/" "_darcs/" "_MTN/" ".fmt" ".tfm" ".class" ".fas" ".lib" ".mem" ".x86f" ".sparcf" ".dfsl" ".pfsl" ".d64fsl" ".p64fsl" ".lx64fsl" ".lx32fsl" ".dx64fsl" ".dx32fsl" ".fx64fsl" ".fx32fsl" ".sx64fsl" ".sx32fsl" ".wx64fsl" ".wx32fsl" ".fasl" ".ufsl" ".fsl" ".dxl" ".lo" ".la" ".gmo" ".mo" ".toc" ".aux" ".cp" ".fn" ".ky" ".pg" ".tp" ".vr" ".cps" ".fns" ".kys" ".pgs" ".tps" ".vrs" ".pyc" ".pyo")

my ~undo-tree~ file ending with ~, it matched in this list, but not hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants