3 ms·
This is awesome! Really great work. I can think of about five different instances in the last couple weeks where this could've really helped me out. Oftentimes,
by peterjmag 13y ago
This is awesome! Really great work. I can think of about five different instances in the last couple weeks where this could've really helped me out. Oftentimes, I ended up just using something like NameMangler[1] instead and pining for the flexibility of my editor.
For the other commenters in this thread that don't see the appeal or keep comparing it to other alternatives, here's what's so compelling to me:
- Editor agnostic. This isn't just for vim, people. ST2 is awesome for this kind of thing.
- Undo. Easy undo. That's a killer feature, and I wouldn't be surprised if it's unique to this tool.
Effusive praise aside, I ran into a couple small issues on OS X:
$ massren --config editor 'subl'
massren: Config has been changed: "editor" = "subl"
$ massren
massren: exec: "subl": executable file not found in $PATH
subl is indeed in my $PATH, but it's actually just a symlink to the ST2 application directory, as the ST2 docs suggest [2]. I solved this by just adding the app directory to my $PATH, but it'd be nice to keep it out of there if possible.
Also, I'd like to be able to pass switches along with my editor command, like git config's core.editor [3]. However, this doesn't seem to work:
massren: exec: "subl -wn": executable file not found in $PATH
Anyway, great work once again, and thanks for releasing such a cool tool!
[1] http://manytricks.com/namemangler/ http://manytricks.com/namemangler/
[2] http://www.sublimetext.com/docs/2/osx_command_line.html http://www.sublimetext.com/docs/2/osx_command_line.html
[3] https://help.github.com/articles/using-sublime-text-2-as-your-default-editor https://help.github.com/articles/using-sublime-text-2-as-you...
- laurent123456 13y agoThanks for the feedback! I would have expected Go to find the subl executable if it's in the PATH, even if it's a symlink but apparently not. I will check if this can be improved. At the moment, the tool indeed doesn't support parameters for the text editor, though it's quite trivial to implement. I'm going to add this soon.
- JadeNB 13y agoAt a quick thought, is there any chance that 'subl' is actually an OS X alias (https://en.wikipedia.org/wiki/Alias_%28Mac_OS%29 https://en.wikipedia.org/wiki/Alias_%28Mac_OS%29) (which can't easily be followed from the command line), rather than a symlink?