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

Question: How to ignore ".." in find-library? #794

Closed
nixmaniack opened this issue Nov 25, 2016 · 4 comments
Closed

Question: How to ignore ".." in find-library? #794

nixmaniack opened this issue Nov 25, 2016 · 4 comments

Comments

@nixmaniack
Copy link

@nixmaniack nixmaniack commented Nov 25, 2016

Not exactly sure where to look at. I have already set counsel-find-file-ignore-regexp to hide hidden files and ivy-extra-directories to nil so that I shouldn't get . and .. in the listing. But couldn't figure why find-library isn't working as expected.

screenshot 2016-11-25 05 49 38

@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Nov 25, 2016

You can use counsel-load-library.

@nixmaniack
Copy link
Author

@nixmaniack nixmaniack commented Nov 25, 2016

Would be nice to have counsel-find-library - I just want to visit the file to take a look and not necessarily load it.

I think I can reuse your code to build counsel-find-library but better to see it in counsel or a simpler way to filter out .. in find-library output.

@abo-abo
Copy link
Owner

@abo-abo abo-abo commented Nov 25, 2016

You can find with counsel-load-library. Just press C-. instead of RET. Same approach as counsel-M-x.

@nixmaniack
Copy link
Author

@nixmaniack nixmaniack commented Nov 25, 2016

Nice! Didn't know about that. Thanks!

@nixmaniack nixmaniack closed this Nov 25, 2016
mwolson pushed a commit to mwolson/swiper that referenced this issue Nov 25, 2016
* This is a helpful and unsurprising alternative to using C-. with counsel-load-library
* Extract counsel-library-candidates which is used by both counsel-load-library and
  counsel-find-library
* Use counsel-find-library in place of counsel-load-library in the docs, in order to better match
  the feel of the surrounding keybindings, which are all locate-based rather than mutate-based.
abo-abo added a commit that referenced this issue Nov 26, 2016
* This is a helpful and unsurprising alternative to using C-. with counsel-load-library
* Extract counsel-library-candidates which is used by both counsel-load-library and
  counsel-find-library
* Use counsel-find-library in place of counsel-load-library in the docs, in order to better match
  the feel of the surrounding keybindings, which are all locate-based rather than mutate-based.

Fixes #794
Fixes #801
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants