I have been editing .tid files in Emacs, and wrote some Elisp to update the
modified time:
(defun tid-time ()
"If called in a tiddler file, this function updates the metadata to
reflect the modification time."
(interactive)
(when
(and
(> (length (buffer-file-name)) 4)
(string-equal (substring (buffer-file-name) -4) ".tid"))
(save-excursion
(goto-char (point-min))
(forward-line)
(kill-line)
(insert (format-time-string "modified: %Y%m%d%H%M%S%3N")))))
I should probably make some modifications to it, including searching for
the "modified" in case it is not the second line.
Anybody else using Emacs to edit .tid files? I haven't figured out how to
get CodeMirror to use Emacs bindings yet.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.