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

Write saved content to stdout when editing stdin #38

Merged
merged 2 commits into from
May 23, 2015

Conversation

schinckel
Copy link
Contributor

This allows you to do stuff like:

$ grep "search-string" foo | rmate --wait - | something-else

This allows you to do stuff like:

$ grep "search-string" foo | rmate --wait - | something-else
@aurora
Copy link
Owner

aurora commented May 22, 2015

Interesting idea! I'll play around a little bit with it before merging.

@ylluminate
Copy link

👍

@aurora
Copy link
Owner

aurora commented May 22, 2015

That's a very cool feature ... the only thing i wonder is:

currently the content will only be written to STDOUT if it get's saved at least one time. If you decide to close the editor without saving, you do not get the input to STDOUT ... i am not sure, if this behaviour is intended. What do you think?

@schinckel
Copy link
Contributor Author

Yeah, that is deliberate: it matches the normal save behaviour.

Whatever was last saved is what gets written to stdout.

I'm so used to using 2 spaces in my bash scripts... ;)
@aurora
Copy link
Owner

aurora commented May 23, 2015

Ok, merged! Thanks very much!

aurora added a commit that referenced this pull request May 23, 2015
Write saved content to stdout when editing stdin
@aurora aurora merged commit edeba5f into aurora:master May 23, 2015
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.

3 participants