-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add "Smart Snippets": smart fragments that can be inserted from Composer. #28
Comments
As a minimal first implementation I could implement a single new item in the context menu of Composer: "insert snippet..." could just simply open a file picker in a configurable location and allow the user to select a html / txt file with a snippet which will be resolved "smartly" and inserted at cursor location. This would be a good test bed for a more structured UI (possibly with categorized lists) at a later stage. |
[quote] ""insert snippet..." could just simply open a file picker in a configurable location and allow the user to select a html / txt file with a snippet which will be resolved "smartly" and inserted at cursor location." [/quote] That would be a great start! |
it depends - if it was monetized then there is a chance that the author is actually working on a conversion for Thunderbird 68 or even later - the future way would be "mail extensions" (which is a Thunderbird specific rebranding for Firefox/Chrome's "web extensions") - heavily regulated sandboxed Add-ons that are not allowed any access to Mozilla's internal functions especially: XPCOM, global variables in any window, modification of the Application UI via XUL overlays, no xbl bindings, no access to any operating system functions such as the file open dialog. That's pretty much 98% of the code of SmartTemplate4. This code would have to be replaced with APIs which will be specifically written for Add-ons (I am still a little incredulous to whether Thunderbird will be able to find enough developer and resources to finance this) For the moment we are still allowed to use legacy code with a hack that allows packaging our "dinosaur" code including XUL overlays into a manifest file, and that's what I did with all my Add-ons kicking the can down the road. IN my defense there simply aren't any sufficient APIs for all the functionality I am offering, so there will be a lot of politics necessary to put this into place until the release of Thunderbird 78 in 2020. IT's more likely that we will still have some sort of hybrid or run our code as "web experiment" using the old technologu (provided that this will still be allowed at that stage) SO overall, it's still Work In Progress, partly kicking the can down the road; there is a group of currently 8 Add-on devs meeting every 2 weeks for developing a strategy forward - we have started with a wx conversion for a minor Addon (EditEmailSubject) to get the process started and formalized.
If I understand correctly: this is a separate toolbar, with multiple dropdowns representing separate lists of quicktext snippets. There is no UI for configuring these actual lists, this is done by editing some background files? Are all snippets of a single dropdown in a file or even everything in the same file? how do you edit a single snippet? |
thanks for the info on status of "everything!" Good to know.
RE QT:
Probably worth your while to install a copy to get the idea.
- Yes it's a separate toolbar.
- There is a UI: simple list of Templates and and an edit window. You
can choose to use HTML or plain text, set the Title, set the Subject of
the email if desired for this template,
Select a Template, and then for each template there is an edit window (NO toolbar / edit tools, just
a box) and:
Shortcut: Meta + none, 0-9
Insert as: Text / HTML
Subject:
Keyword: (anything - type it and press tab and your entire template is entered, including variables, which it will prompt you for answers in a popup dialog box)
Attachments:
------------------------
There are variables available, though limited. To options, From options, Dates, Attachments, selection, clipboard, file, Tbird version?, and Templates, so you can nest templates, e.g. a bunch of text and an appropriate signature.
The edit window is fine for entering your html or plain text.
You CAN edit the xml file directly. ONE xml file for ALL.
|
I see it's a complicated User Interface which allows you to do everything from within Thunderbird. I will probably have to make it a lot more simplified / less comfortable because this looks like several weeks of development which I just don't have right now. As a bare minimum I want to discuss:
|
FWIW; |
Please check #142 - there is an early prototype (for Thunderbird 78 and later) there |
Latest versions to try out for Tb68-91 can be found here: #142 (comment)
|
This was first suggested in a comment on #24 (changing the template from composer). The commenter @GrantHorizons references the (now defunct) quicktext Add-on, which seems to have added toolbar items with menus. I haven't used it personally so I am not to sure about this UI.
For the moment let's only put down the requirements, without specifying the exact UI:
Note: the current file template management UI is a little lacking as you can only add single files, it would be better if that could add multiple files or support drop and drag. It may not be a good idea to use the current paradigm (account dropdown) for managing smart snippets.
The text was updated successfully, but these errors were encountered: