Main icon indicating copy to clipboard operation
Main copied to clipboard

Create description + preview for all Tippers

Open OriRoth opened this issue 9 years ago • 2 comments

New preferences mechanism for the plugin shows a short description + usage example (= "before/after" = preview). Currently all Tippers has default implementations for description (class's name) and preview ("[no preview available]") methods. We need to create a specific description and preview methods for each Tipper, then making description and preview abstract- this is a good practice, because from now on the Tipper's developers would be ought to supply description + usage example when writing Tippers (what we encourage anyway).

@yossigil do you want me to do this? I think it should be completed before the next release.

To clarify: preview returns TipperPreview which contains before and after Strings. We may consier moving the description into TipperPreview as well, renaming it TipperDescription.

OriRoth avatar Feb 28 '17 21:02 OriRoth

I think it is best if Tipper inherits from TipperPreview

yossigil avatar Mar 05 '17 09:03 yossigil

this is important for the saner paper @M4tt30rru

yossigil avatar May 25 '17 12:05 yossigil