Comments (13)
I have been thinking about adding this but it's quite far down on my priority list. Also find-dired
works well enough for my use cases so the motivation for implementing this is pretty low.
Anyway, I'll keep this open for now since it would be a nice addition.
from rg.el.
Agree. It's low priority.
For me, find-dired
doesn't work well as expected, especially on Windows. Painful!
I have to use find-lisp-find-dired
instead.
Thanks for adding to your backlog.
from rg.el.
If you are using ivy/counsel for example, you can do (setq counsel-git-cmd "rg --files")
and then you can use counsel-git
to get a searchable/filterable list of all files in your project. I think you can do similar customizations for other searchy packages (e.g. projectile) for similar results.
Is it out of scope of this package to provide rg integrations w/ other packages as above w/ counsel?
from rg.el.
Thanks, @muirrn .
I am using counsel-fzf
to find the files in the directory. Also, this feature is nice-to-have one. Maybe it's a option or parameter in the rg
interface?
from rg.el.
@muirrn: I am not sure I understand what you are proposing here. I am not using counsel myself so that might be the reason.
Do you want to have custom ways to list files to be searched by rg, not only based on directory or project as is currently available?
Or is your suggestion related use this package for listing files that will be supplied to other packages.
from rg.el.
I was wondering if rg.el could include "glue" configuration that makes other packages (e.g. counsel
) use rg
instead of find or git or whatever they currently use. I don't think it really makes sense, so I retract my idea.
from rg.el.
@dajva In *rg*
buffer, there are many options to choose for searching the keyword. Is it possible to add the "list files" option there? That's just my thoughts. counsel-fzf
is good enough for me anyway.
I am fine to close it if you think it doesn't worth to implement it.
from rg.el.
@seagle0128: I don't think I will be implementing this (in the forseeable future). I have kept this open since I don't reject this suggestion and would accept a pr for this in one way or the other. On my part, we can keep this open since the number of stale issues is low in this project.
from rg.el.
FWIW, I'd suggest y'all investigate the fd
tool support in Emacs, which brings a comparable sort of solution to the find-dired
space.
from rg.el.
Looks like there is such a package for fd
here. Personally, I like find
just fine and I also like bfs
.
from rg.el.
@ylluminarious fd
is fast, but slower than rg
in my testing. Another reason is I don't like install many similar tools personally. Anyway fd
is another option here.
from rg.el.
@seagle0128 Thanks for the observation. I was curious whether rg
would be faster than fd
for me as well, so I did a little bit of my own testing.
I searched in a big directory which contains many documents that are named with a certain word, so that's the test corpus. As far as I can tell, each utility produced the same output (i.e., found the same files) so the only difference is speed.
I used time
to benchmark the commands. Here was what I found:
find . -iname "*word*" 1.31s user 13.30s system 73% cpu 19.796 total
rg --iglob "*word*" --files . 7.88s user 109.74s system 928% cpu 12.665 total
fd -HIi ".*word.*" . 4.89s user 61.79s system 1101% cpu 6.054 total
rg
was about 1.5x faster than find
, but fd
was about 3x faster than find
or 2x faster than rg
. So fd
does seem to be the winner in terms of speed on my system, but perhaps this varies depending on CPU since fd
is clearly taking huge advantage of multiple cores.
from rg.el.
No plans to incorporate this in the package so closing.
from rg.el.
Related Issues (20)
- Error: History should be specified as a symbol HOT 2
- Add Imenu support HOT 2
- rg-isearch-menu should be autoloaded HOT 1
- default-directory is not updated when using rg from an rg-mode buffer HOT 1
- Keep multiple search results' buffers HOT 3
- `M-x rg` never finds matches using Emacs 28.1 on Mac HOT 8
- select the *rg* buffer after running a search HOT 14
- rg.el not works under fish shell HOT 1
- IPv6 addresses often mistaken as line/column numbers HOT 4
- ignore user-specified built-in aliases HOT 2
- Only rg-use-old-defaults seems to work with result buffer HOT 6
- Would be nice if DWIM modes prompt for search string if no word at point HOT 3
- Question on searching and removing the whole line HOT 1
- Wgrep fails with "There are n unapplied changes. (0 changed)" HOT 1
- Result-based navigation fails HOT 3
- Question about using glob pattern with rg HOT 1
- Feature request: search symlinked file, but make the file path in "*rg*" buffer the path of the symlink HOT 6
- Comparison with Deadgrep? HOT 1
- Expose search history more prominently HOT 1
- project.el issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rg.el.