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

Implement default editor for editing current message #68

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

Conversation

therealjuanmartinez
Copy link

It seemed convenient to have the option to edit current message in an external editor - this change allows for user to specify an external editor and use ":e/:edit" in order to do so.

This is for certain cases where more robust text editors can add value to the experience.

This commit adds a default editor option for interactive message editing, including necessary argument handling and a new `:edit` command.
@kharvd
Copy link
Owner

kharvd commented Apr 21, 2024

Thanks for the contribution! Do you think we can use the EDITOR env variable instead?

@dbosk
Copy link

dbosk commented May 15, 2024

+1 on using the EDITOR env variable. First VISUAL, then EDITOR. If none of them are set, go for a default or tell the user to set either.

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

3 participants