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",