Coder Social home page Coder Social logo

Handle paths with spaces about xonsh HOT 7 CLOSED

xonsh avatar xonsh commented on May 13, 2024
Handle paths with spaces

from xonsh.

Comments (7)

scopatz avatar scopatz commented on May 13, 2024

Ahh super interesting. Maybe the tab-completion should add the quotes. How do you feel about that?

from xonsh.

scopatz avatar scopatz commented on May 13, 2024

Thanks for reporting @jessejoe!

from xonsh.

adqm avatar adqm commented on May 13, 2024

To me, having the completer add the quotes feels like the right thing. I started working on this, but it looks like it is going to be difficult to get something that feels "right."

That is, it's easy to make the completer add the quotes. But it seems like it will be hard to get it to complete halfway-finished quoted strings (particularly after a space). So if we have a directory called name with spaces, then it will complete na or "na or 'na, but not "name wi.

This is maybe fine, but the downside is if we do: tab complete, backspace, tab; then it will not re-complete to the right value.

I will submit a pull request with what I have now in case it helps, but it isn't perfect.

from xonsh.

scopatz avatar scopatz commented on May 13, 2024

Cool, It seems like the right thing to do to me would be to insert quotes on both sides, though. I'll check out your PR.

from xonsh.

jessejoe avatar jessejoe commented on May 13, 2024

Adding quotes seems okay, that's what cmd.exe does in Windows, however it is very annoying when it matches something else, you have to backspace, tab again, possibly backspace again, tab again, etc. This would honestly make it a little too annoying for daily use for me.

from xonsh.

scopatz avatar scopatz commented on May 13, 2024

Adding quotes or not seems like the kind of thing that could easily be configure by an environment variable. If you wanted to add that behavior, that would be great!

from xonsh.

scopatz avatar scopatz commented on May 13, 2024

I am closing this in favor of #181.

from xonsh.

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.