Giter Site home page Giter Site logo

Difficulty using rg with TRAMP about rg.el HOT 3 CLOSED

dajva avatar dajva commented on May 26, 2024
Difficulty using rg with TRAMP

from rg.el.

Comments (3)

dajva avatar dajva commented on May 26, 2024

This is a bit tricky AFAIK. Essentially the executable-find function makes sure binaries are found in certain setups when emacs is not inheriting the shell $PATH variable (See #31). Removing that would probably make it work with tramp but other setups may suffer.

I could think of breaking out the rg executable to a new variable that does not contain any flags and then the user could choose to either use executable-find (default) or simply use "rg" and let the shell handle locating the executable.
The current executable-find stuff in this package is a mess BTW, which I have been thinking to clean up for a while so I wouldn't mind such a solution at all. But maybe there are better alternatives?

from rg.el.

dajva avatar dajva commented on May 26, 2024

I've pushed a fix where I've added an rg-executable variable that can be customized. Please try it out and see if it works for you.

from rg.el.

danielmatz avatar danielmatz commented on May 26, 2024

Yes, that works for me, thanks!

from rg.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.