Code Monkey home page Code Monkey logo

Comments (6)

aurora avatar aurora commented on June 18, 2024

Thanks for reporting this bug, i'll have a look into it.

from rmate.

fake-name avatar fake-name commented on June 18, 2024

It's definitely a pretty silly problem, but I figure it might be exposing a potential issue internally somewhere.

from rmate.

aurora avatar aurora commented on June 18, 2024

Yes, you are right regarding the potential issue but there could always be the case that you have a - in your filename, eg. as leading character, which currently doesn't work either. With fixing the bug you found i also want to implement the possibility to use -- (double-dash) to end argument parsing, to make it possible to eg. open the file -foo by running

rmate -- -foo

from rmate.

aurora avatar aurora commented on June 18, 2024

I have created a test-branch https://github.com/aurora/rmate/tree/issue-57 ... can you try if this works for your case? It now seems to handle stuff like "test ->.txt", etc. just fine ...

from rmate.

aurora avatar aurora commented on June 18, 2024

I think this should work now @fake-name . The problem turned out to be the whitespaces in your filename which i didn't handle properly in a part of the script. Tried with your simplified test-case and also with the long (somehow obscure) filename you mentioned in your first post.

from rmate.

fake-name avatar fake-name commented on June 18, 2024

Cool, thanks.

I wound up rewriting some of my stuff to not use angle brackets, so I kind of worked around the issue. They break on windows anyways, so it was kind of silly. I was basically embedding json in a filename because I haven't set up a proper database for a project, yet.

from rmate.

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.