Skip to content
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

RFC/Pull request: Feature: save-to-file similar to append-to-file #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ezequielgarcia
Copy link

I will never use append-to-file. Instead I'm using a modified version.
I believe it's more useful this way, perhaps it's useful to someone else.

Disclaimer:
I'm not a ruby developer, so I just copy-pasted code and used my brain a little.
Before this, I've never written a single ruby line.
So, feel free to modify the code...

Thanks!
Ezequiel.

This is very similar to append-to-file ',vp'.
However when saving (using ',vf') you don't need to pass a filename.
Instead, each message is saved to a different file.
Message subject is used as filename. Invalid characters get
replaced by underscores.

This is most useful for me to save patch messages.

TODO: Ask for confirmation? Ask for directory?
Use message author also as filename?

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
@danchoi
Copy link
Owner

danchoi commented Oct 20, 2012

Thanks for the patch. I'm still considering this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants