Comments (2)
Oh, missed this issue for some reason. Yeah, I kind of have the same problem myself but fixed it in the early days of this package so have totally forgot it.
The workaround I am using is to define my own filter for C++, containing some additional non standard extension IIRC. In any case your own custom type aliases in rg-custom-type-aliases
will be selected first. Not sure if you can use the same identifier as builtins though.
Not sure what solution would be good here though. Just removing aliases may not fit all if you for instance want c-mode in pure c files. Personally I use my own c++ alias but sometimes use the h
alias to only search in header files. Maybe some kind of reordering or prioritization of aliases may solve most of these problems. Or do you see some case that would not work for your use cases?
from rg.el.
Added an implementation of prioritized type aliases. Let me know if it solves your problems.
from rg.el.
Related Issues (20)
- 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 2
- 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 2
- option to choose rga HOT 1
- Feature request: Option to runcate long search terms in header line HOT 1
- Feature request: Support `rg-rerun-change-project` in rg-mode HOT 1
- Support search compressed files such as `.el.gz`?
- Any reason of adding `.` at the end of command on Windows? HOT 2
- Help wanted: how to get rg-match result position ? HOT 3
- Is there way to set default searching directory dynamically? HOT 2
- Have rg commands return ripgrep's exit code HOT 2
- edit/update the values of switches and options 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.