aurora / rmate

Remote TextMate 2 implemented as shell script
GNU General Public License v3.0
887 stars 123 forks source link

support multi files opening #46

Closed randy3k closed 7 years ago

randy3k commented 8 years ago

As in the official rmate, it supports opening multiple files. rmate foo.txt bar.txt baz.txt. I basically wrap the original code in the function open_file and do a for loop

for file in "${filepaths[@]}"; do
    open_file "$file"
done
randy3k commented 8 years ago

Ops....each file should have its corresponding --line, --name and --type arguments.

randy3k commented 8 years ago

Tested again on textmate and atom. And apparently, sublime doesn't support it.

aurora commented 8 years ago

@randy3k hey, i have to take a further look at this, because it seems to be quite a big change. but due to health reasons it'll take some weeks until i can look into it ...

randy3k commented 8 years ago

Take your time. I totally understand it.

tiennou commented 7 years ago

I've been using that version a few times on various Linux-based server, and it works quite well.

randy3k commented 7 years ago

@aurora

this has been sitting here for 1.5 year, how do you think about it?

aurora commented 7 years ago

@randy3k i am really sorry about the long delay, i am going to merge it. Thanks very much for your work and your patience on this :-)!