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

Improve support for external editing #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

graywolf
Copy link

@graywolf graywolf commented Sep 9, 2022

Two commits improving support for external editing.

The terminal option had few issues, mainly with always passing the -e.
It added needless complexity for the cases, when running gvim is enough.
So let's just drop that option completely and instead expect user to
correctly configure editor, for example using:

  /set plugins.var.python.edit.editor "gvim -f"
  /set plugins.var.python.edit.run_externally "true"
With the previous implementation, there was a limit of being able to
edit only one message at one time (since the file name was hard-coded).
This commit instead uses a tempfile package to generate unique file for
each message, meaning you can edit multiple messages at the same time
(arguably only useful with run_externally = true).
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.

1 participant