-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow users to customize do/ado-file headers #2
Comments
A minimal way to do this would be to replace "Author" in the current header with the value of the TM_FULLNAME variable that the user can set in his TextMate preferences. |
Indeed, though it would be nice to have somewhat more flexibility than this if possible. |
A solution might be to do as |
Actually I just looked at that, and it seems fairly straightforward (the TODO bundle also provides a good example, though I'd personally prefer to work in Python rather than Ruby). The basic approach seems to be to call
in a TextMate window. The result can then be written to
and subsequently queried with That said, I wonder whether this is in fact the best way to handle automatic do/ado-file headers. Should we instead be handling these as templates that the user can create/modify? |
I believe that heavy coders will already have their favourite header saved as a code snippet. Coding one into the bundle would rather be, IMHO, a way to help users who are not using such a system -- as your current do/ado header command does. |
Users are likely to have very different preferences for the headers of their do/ado-files, and it would be nice if we could accommodate this via a user-configurable setting. I don't currently know the best way to do that.
The text was updated successfully, but these errors were encountered: