Add support for --wait flag
Some programs want to give user a text file to edit in their favourite text editor and want to know when the user is done editing. One such program is Git, which allows customizing the text editor for editing commit messages using core.editor
configuration option or GIT_EDITOR
environment variable.
It is usually accomplished by running the text editor with --wait
flag, which causes the program to continue running until user closes the tab/window with the file.
For example, see gedit --wait «path»
.
Edited by Jan Tojnar