Frederick888 / external-editor-revived

External Editor Revived is a Thunderbird MailExtension which allows editing emails in programs such as Vim, Neovim, Emacs, etc.
GNU General Public License v3.0
113 stars 6 forks source link

How to invoke EER from compose window? #46

Closed Chris-Hibbert closed 2 years ago

Chris-Hibbert commented 2 years ago

Description

The original external editor allowed me to start up an editor from an existing compose window. This allowed my normal flow to be to compose in Thunderbird's window until a message got complex, or required reformatting, or the like, and switch to emacs at that point.

Environment

Configuration

{
  "name": "external_editor_revived",
  "description": "Edit emails in external editors such as Vim",
  "path": "/users/chris/bin/aquamacs",
  "type": "stdio",
  "allowed_extensions": [
    "external-editor-revived@tsundere.moe"
  ]
}
Frederick888 commented 2 years ago

? There's an External Editor button in composing window, so simply click on it when you feel like it? Is this not what you wanted?

Chris-Hibbert commented 2 years ago

I missed that button. I'll look for it when I'm on that machine next. Thanks!

But I'm mostly a keyboard guy. Is it possible to bind a keystroke to that button? (I haven't looked to see if it's in a menu yet. Will do that later today.)

Frederick888 commented 2 years ago

Why do I even bother having a wiki smh

https://github.com/Frederick888/external-editor-revived/wiki#keyboard-shortcuts https://github.com/Frederick888/external-editor-revived/wiki#toolbar-buttons https://github.com/Frederick888/external-editor-revived/wiki#screenshots

Chris-Hibbert commented 2 years ago

Thanks for the links.

I now have external-editor-revived in my ~/bin directory, with permissions at 755. external_editor_revived.json is in the appropriate MacOS directory with

  "name": "external_editor_revived",
  "path": "/Users/chris/bin/external-editor-revived",

I have the command template set to

/Applications/Aquamacs.app/Contents/Resources/bin/aquamacs --nofork "/path/to/temp.eml"

Each time I hit my keyboard shortcut in an editor window, I see ExtEditorR sending in the Error console, but nothing happens in aquamacs.

Further back in the Error Console, I see ExtensionError: No such native application external_editor_revived, followed by several copies of

658598585189    addons.webextension.<unknown>   WARN    Loading extension 'null': Reading manifest: Warning processing legacy: An unexpected property was found in the WebExtension manifest.

Do you have any suggestions for what I should try next? I don't know what "No such native application" might indicate.