File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ Primarily a stabilization and bug-fix release.
29
29
modification time.
30
30
- [[https://github.com/d12frosted/vulpea/pull/86][vulpea#86]] Use =vulpea-db-query= in =vulpea-select= instead of heavy
31
31
=org-roam-db-query=.
32
+ - =vulpea-utils-note-hash= function to calculate =sha1= of a given =NOTE=.
32
33
33
34
*Fixes*
34
35
Original file line number Diff line number Diff line change @@ -154,10 +154,11 @@ of interest:
154
154
- =vulpea-utils-with-note= - function to execute =BODY= with point at =NOTE=.
155
155
Supports file-level notes as well as heading notes.
156
156
- =vulpea-utils-link-make-string= - make a bracket link to =NOTE=.
157
+ - =vulpea-utils-note-hash= function to calculate =sha1= of a given =NOTE=.
157
158
158
159
** =vulpea-db=
159
160
:PROPERTIES:
160
- :ID: 55717e59-d850-4659-8a02-8153fda52fef
161
+ :ID: 55717e59-d850-4659-8a02-8153fda52fef
161
162
:END:
162
163
163
164
This module contains functions to query notes data base. Functions of interest:
Original file line number Diff line number Diff line change @@ -64,5 +64,12 @@ beginning of the buffer. Otherwise at the heading with note id."
64
64
(concat " id:" (vulpea-note-id note))
65
65
(vulpea-note-title note)))
66
66
67
+ (defun vulpea-utils-note-hash (note )
68
+ " Compute the hash of NOTE."
69
+ (with-temp-buffer
70
+ (set-buffer-multibyte nil )
71
+ (insert-file-contents-literally (vulpea-note-path note))
72
+ (secure-hash 'sha1 (current-buffer ))))
73
+
67
74
(provide 'vulpea-utils )
68
75
; ;; vulpea-utils.el ends here
You can’t perform that action at this time.
0 commit comments