-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support composing messages in an external editor #155
Conversation
I think it's better to send the message only after leaving the editor, no? Sometimes I will save what I have and keep writing. In any case, thanks for adding this feature. |
You are right! Hopefully, the crate I used works exactly the way you described, just didn't realize that at first, because tested it only with |
Hey, I compiled from your commit but |
Are you sure that you are running the version from my commit? Maybe you have compiled the release but running an old debug version or vice versa. If you are on Linux |
@capgelka This looks great, thank you for implementing this! I added some code to force a redraw of the screen afterwards, since at least for me locally I had leftover characters on the screen after the subprocess exited. |
I hope it's ok to ask about this now that the commit has been merged,
Thanks in advance |
I also hope that it's ok to have such a conversation, though probably better to use stack overflow for such questions anyway. |
Yep, continuing commenting here is fine! As @capgelka said, the positional argument to |
I should have noticed when the installation section of the README doesn't mention cloning the repo... Thank you both for the explanation and sorry for dragging this conversation. |
I found it not that difficult to implement this feature that I wanted.
If there are some issues with the current implementation, I would be glad to fix them.
PR adds a new command
:editor
that opens$EDITOR
in the current window or in a new one (if$EDITOR
is a GUI one), using a new temporary file, the message from this file will be sent immediately after leaving the editor.Also, current text from a buffer (if any) will be used as the initial content of the file.