Shunting unsuspecting people off to emacs or vim, on the other hand, would be cruel.) On my second proposal, you wouldn't get shunted if the value of EDITOR was the name of a editor that handles folders well, and that includes emacs and vim.īut perhaps it is better not to shunt, no matter what: if EDITOR is not on the list of editors known to handle folders, throw an error and ask to set some appropriate value of HOMEBREW_EDITOR. (If one must shunt, better to shunt to textmate than emacs or vim, I think: if you have textmate installed, you won't be too surprised if you don't, you'll just get an error. On my first proposal, it is true that users of emacs and vim would be shunted off the textmate, but they would also be told how to solve the problem easily (just set the value of HOMEBREW_EDITOR). I don't know about TextWrangler's 'edit', but it seems to me that users of emacs and vim shouldn't be shunted to textmate here I was imagining a simple sh script that checks each parameter, and expands those that are paths to folders into a list of folder contents, and passes that whole list on to your preferred editor. …Or were you suggesting a wrapper script in any language?Īny language that can be run from your shell. But I don’t actually know it.) That being the case, the best I can offer is the following pseudocode, which should go into edit.rb: The output should contain the word TextWrangler. Since edit is pretty a generic word, however, I recommend scanning the output of edit -version.But both are free, so it’s trivial to scrap the crippled version and replace it with the regular one. It is only possible if you download TextWrangler from due to the App Store’s security restrictions. You can only do this if you didn’t download TextWrangler from the App Store. I think this would pretty much do the same thing that is currently expected of mate. This installs the executable /usr/bin/edit. In TextWrangler under the application menu, there’s an option called Install Command Line Tools…. That’s good reasoning…but TextMate costs money! The rationale is, EDITOR may or may not be something that can properly handle opening a bunch of files in one command. In /Library/cmd/edit.rb, there’s a comment that the EDITOR environment variable is problematic for brew edit (with no arguments).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |