Comments (8)
Thanks, I'll implement this for 1.5.0
from rg.el.
Hi,
That seems like a job for projectile itself, i.e. handling project local variables in general. I don't use projectile myself so I am not familiar how a project is defined but if it's just a top level dir emacs builtin dir local variables may suffice for this.
See https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html
from rg.el.
I created function which returns some commandline params for rg depending on current project. I just can't figure out how to make my function called by rg-build-template
. Is it possible that rg-build-template
will call custom function alongside with rg-command-line-flags
variable?
Thanks!
from rg.el.
I am not very keen on adding more complexity to the configuration, i.e. adding a hook or additional setting. And I really think that it's something that should be handled by projectile or by other means within emacs.
Now, there is one change that I think would make sense in this area that I am willing to accept. We could add the possibility to make rg-command-line-flags
be a function that returns a list of flags instead of a hard coded list. In essence extend the setting to be either a list or a function. Should be a pretty small change. Please make a pr if you think this makes sense for your use case.
Thanks for your suggestion.
from rg.el.
This solution is perfect and is exactly what i was looking for.
I will try to make PR but it may take some time because of my almost zero elisp knowledge.
from rg.el.
Great. This is small enough to work on if you want to expand your elisp knowledge a bit. If you don't get it done I can probably fix it for next release. But it will take some time to land on master since I have my hands full elsewhere currently.
from rg.el.
Are you still interested in this feature?
from rg.el.
I've tried to make PR and stuck at making the custom variable rg-command-line-flags
to be list or function.
For now rg-command-line-flags
contains ignore files for all my projects. It's works well as there are no conflicts in those ignore files.
So for now i don't actually need this feature. But it would be nice to have it some day.
from rg.el.
Related Issues (20)
- 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
- support project.el external roots HOT 1
- When copying from buffer `*rg*`, some internal text is included HOT 1
- How to make "enter" key open target file at the location of the searched keyword? HOT 1
- option to choose rga HOT 1
- Feature request: Option to runcate long search terms in header line
- Feature request: Support `rg-rerun-change-project` in rg-mode
- Support search compressed files such as `.el.gz`?
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.