Comments (6)
Thanks for reporting this bug, i'll have a look into it.
from rmate.
It's definitely a pretty silly problem, but I figure it might be exposing a potential issue internally somewhere.
from rmate.
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.
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.
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.
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)
- Support opening directories HOT 1
- Use stdin if no args and '--wait' or part of pipeline.
- option '--host auto' has no effect
- Does not support the +N syntax and cannot be used as $EDITOR HOT 10
- Can
- Can't rmate when remote machine running textmate HOT 2
- browse project folder HOT 2
- any interest in resolving shellcheck warnings? I have PRs ready HOT 6
- version_date should probably be the same as date of release HOT 2
- remote directory edit support HOT 7
- rmate fails, when `ls` gives filesize containing `,` HOT 6
- add support for connecting via UNIX socket HOT 6
- unable to open symlinks with relative paths HOT 5
- Add docs for other editors HOT 5
- Flags specified after the file-to-open are ignored HOT 4
- doesn't work on remote mac if Textmate installed & opened on the remote mac HOT 7
- "host" and "port" variables in rmate shell script don't get reset to default values ("localhost" and "52698") even after re-install #17 HOT 6
- v1.0.2 raises a syntax error; v1.0.1 works HOT 1
- Disallow opening same file twice HOT 2
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 rmate.