TagSpaces is an offline, open source, document manager with tagging support
adding last modified data as tag suggestion in the file opener
Ilianc99c6f509438
diff --git a/data/js/fileopener.js b/data/js/fileopener.jsindex 33e0dd2bc..585d8619b 100644--- a/data/js/fileopener.js+++ b/data/js/fileopener.js@@ -374,7 +374,13 @@ define(function(require, exports, module) {));tsMenu.append($('<li class="dropdown-header"><span id="">Suggested Tags:</span></li>'));- //console.log("Last modified: "+_openedFileProperties.lmdt);+ //console.log("Last modified: "+_openedFileProperties.lmdt);+ // Add tag suggestion based on the last modified date+ if(!isChrome) {+ suggTags.push(TSCORE.TagUtils.formatDateTime4Tag(_openedFileProperties.lmdt));+ suggTags.push(TSCORE.TagUtils.formatDateTime4Tag(_openedFileProperties.lmdt, true));+ }+// Adding context menu entries for creating tags according to the suggested tagsfor (var i=0; i < suggTags.length; i++) {// Ignoring the tags already assigned to a file