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

Monitor text editor process ID and close massren if it's gone #27

Open
laurent22 opened this issue Dec 6, 2015 · 1 comment
Open

Monitor text editor process ID and close massren if it's gone #27

laurent22 opened this issue Dec 6, 2015 · 1 comment

Comments

@laurent22
Copy link
Owner

Currently, after launching the text editor, massren watches for the temporary file it created. If this file is modified, the renaming process starts, and then massren is closed.

However, if the file is not changed at all and simply closed, massren stays open and has to be closed with Ctrl + C.

In order to prevent this, we could watch the text editor process ID and, if it's gone, automatically exit massren. That would take care mainly of modal editors such as Vim. It still won't fix the issue with GUI editors though since they would usually remain open even if the file is closed.

@ghost
Copy link

ghost commented Mar 20, 2018

In order to prevent this, we could watch the text editor process ID and, if it's gone, automatically exit massren. That would take care mainly of modal editors such as Vim.

I guess that would cover Sublime Text as well (initiated by subl). git already does this on unchanged (unsaved) commit messages, using subl -nw.

I'll keep an eye on this.

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

No branches or pull requests

1 participant