From 1e8309a4a37ab6f903c1069b7f595f5be01ee6eb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 31 Dec 2014 09:49:49 +0530 Subject: [PATCH] Start work on snips --- src/calibre/gui2/tweak_book/snips.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/calibre/gui2/tweak_book/snips.py diff --git a/src/calibre/gui2/tweak_book/snips.py b/src/calibre/gui2/tweak_book/snips.py new file mode 100644 index 0000000000..2bedbca6e7 --- /dev/null +++ b/src/calibre/gui2/tweak_book/snips.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 +from __future__ import (unicode_literals, division, absolute_import, + print_function) + +__license__ = 'GPL v3' +__copyright__ = '2014, Kovid Goyal ' + +builtin_snips = { + '<<' : { + 'description': _('Insert a HTML tag'), + 'template': '<$1>${2*}', + }, + + '$2', + }, + + '${2*}', + }, +} +