Comments (2)
@pmiddend ripgrep returns an exit code of 1 when there are no results. It doesn't mean that there's anything wrong necessarily. I've always thought that it's a slightly odd behaviour, but it's consistent with grep.
@PuercoPop FWIW deadgrep does try to enforce a match of a known search term, so you shouldn't be able to specify a search type of erb.
have you considered a dedicated process buffer like magit that can be opened on $?
I do think we'll need some kind of debugging tool to help with bug reports. I'm reluctant to expose all the raw search data as it can be big when you have a lot of results, and it's not very readable when Emacs shows the raw ASCII control characters. It's also possible to have multiple searches running simultaneously, unlike magit, so I can't have a single *deadgrep-output*
buffer.
from deadgrep.
I ran into a similar issue when trying to pass erb as the type, turns out rg doesn't support the erb type .(although you can add it as a command flag).
To get a better idea of what is going on in your case I recommend you can rg from the CLI to be able to read its error message. You'll need to findout how deadgrep is invoking rg. To do so, you can use edebug on deadgrep--start
to get the values of return by (format "rg %s" search-term)
and (deadgrep--format-command
.
@Wilfred have you considered a dedicated process buffer like magit that can be opened on $
?
from deadgrep.
Related Issues (20)
- T, C key binding are not supported (Get Error in mini buffer: T is undefined and C is undefined) HOT 5
- Fix: Buffer name `*deadgrep search_term /directory*' is in use
- Re-use existing `*deadgrep ...*` buffer HOT 5
- How to search filename with pattern? HOT 2
- file-remote-p: Wrong type argument: stringp, (Git "~/.emacs.d/") HOT 1
- deadgrep faces not registered until first run HOT 1
- [Feature Request] optional flags with magit-like menu?
- [Question] Is the search in directory recursive? HOT 1
- Simple search don't work HOT 4
- Feature idea: ability to identify several file types HOT 1
- [Feature Request] Add keybinding to cycle File search type HOT 2
- question: how to config deadgrep's result window not using split window? HOT 1
- how to set deadgrep-executable? HOT 1
- Question: Syntax highlight (defferent mode for each file) in results HOT 2
- [Package Idea]: An extension for XREF that works like this package?
- Exclude glob patterns not working HOT 3
- bind next-error / previous-error
- deadgrep not using current dired folder as search directory HOT 3
- Dynamic search
- there should be a way to do ad hoc exclusions
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 deadgrep.