henrikpersson / rsub

Use rmate with Sublime Text.
458 stars 70 forks source link

nothing happens when creating new file #29

Open m4rkus opened 10 years ago

m4rkus commented 10 years ago

rmate [existing_file] opens as it should in both textmate2/3 for me rmate[non_existing_file] produce no results at all. expected result open a new blank file in sublime (?) (Mountain Lion / Debian)

edit: this was a problem with rmate not submitting any data at all when file was not existing, seems that sublime needs both size=0 and and empty string to open a blank document.. i don't know if this is specific for sublime and does not apply to textmate so i just forked the submodule and fixed it here https://github.com/m4rkus/rmate

problem solved ;)

m4rkus commented 10 years ago

actually, when i looked in console rsub actually quits with error.. the parsing stops prematurely because rsub does always expect the data-command to be the last command, which is not the case when creating a new file (for whatever weird reason). i fixed the problem though and will send a pull req to this issue

codeman38 commented 10 years ago

...Oops. Note to self: make sure you've actually pulled the latest version of rsub before complaining about something. facepalm Creating a new file is indeed working for me after the merge.