From e3e212f753effb222ab43dff9955c8ab15c62ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rosen?= Date: Sat, 13 Dec 2014 10:42:34 +0100 Subject: [PATCH] official/delete_long_tags : add a usage section --- official/delete_long_tags.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/official/delete_long_tags.lua b/official/delete_long_tags.lua index a4e41c1..2986f86 100644 --- a/official/delete_long_tags.lua +++ b/official/delete_long_tags.lua @@ -15,8 +15,21 @@ You should have received a copy of the GNU General Public License along with darktable. If not, see . ]] +--[[ +DELETE LONG TAGS +A simple script that will automatically delete all tag longer than a set length + +USAGE +* require this script from your main lua file +* set the the maximum length in darktable's preference +* restart darktable + +all tags longer than the given length will be automatically deleted at every restart + +]] local dt = require "darktable" +dt.configuration.check_version(...,{2,0,0}) dt.preferences.register("delete_long_tags", "length", "integer", "maximum length of tags to keep",