Comments (4)
This works fine for me. Emacs already expands default-directory
as necessary before starting the child process. (For example, if I call M-x compile cd RET
on Windows under $HOME
, it correctly prints c:\Users\user\...
.) I've also tried using find+grep on Windows (which is what I have installed) via Urgrep, and it searches under my home directory correctly.
Urgrep isn't doing anything special with the default-directory
here, other than what compilation-mode
does. So if there's a bug here, I don't see how it could be in this package. It's likely in one of:
- Your configuration (try
emacs -Q -l /path/to/urgrep.el
to see if it still happens?) - Emacs itself (try running
M-x compile
and entering your Ripgrep command to see what happens) - Ripgrep
from urgrep.
I use project.el to open the project and files. I use ripgrep to search for pattern and it is not working. The project stores the path of project in .emacs.d/projects file as "~/Repo" etc. That could be the problem. This problem is not seen if I am using consult-ripgrep. This can be reproduced with ugrep also.
from urgrep.
I use project.el to open the project and files. I use ripgrep to search for pattern and it is not working. The project stores the path of project in .emacs.d/projects file as "~/Repo" etc. That could be the problem. This problem is not seen if I am using consult-ripgrep. This can be reproduced with ugrep also.
The actual value of default-directory
should already be expanded, so I strongly doubt that the ~
has any effect.
I believe the issue you're seeing is this: BurntSushi/ripgrep#951. I guess that means that Urgrep needs a special-case for ripgrep to always include a directory as an explicit command argument, else it will hang waiting for stdin that never arrives (but only on Windows, since Emacs can't use PTYs to communicate with child processes there).
from urgrep.
@elge70 Could you try this branch to see if things work? https://github.com/jimporter/urgrep/tree/ripgrep-windows
from urgrep.
Related Issues (11)
- ugrep support. HOT 2
- [question] Toggle options and re-run search in result buffer HOT 5
- Can't display ansi color on remote file HOT 4
- Wgrep support HOT 3
- Writable grep buffer and apply the changes to files. HOT 5
- Minor suggestion about using `compat` HOT 2
- Eshell integration fails with bad keyword argument HOT 3
- `nconc` called on constant list HOT 1
- Expansion of ~ on Windows HOT 2
- Please consider renaming this package (name collision with Genivia/ugrep) 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 urgrep.