Compare commits
2 commits
00c1b131f8
...
d4a4228fc4
Author | SHA1 | Date | |
---|---|---|---|
d4a4228fc4 | |||
f0e4ae7de9 |
1 changed files with 10 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
;;; Code:
|
||||
(require 'json)
|
||||
(require 'plz)
|
||||
(require 'shr)
|
||||
|
||||
(defcustom linkding-host ""
|
||||
"Hostname of the Linkding instance."
|
||||
|
@ -41,7 +42,15 @@
|
|||
("is_archived" . false)
|
||||
("unread" . false)
|
||||
("shared" . false)
|
||||
("tag_names" . [])))))
|
||||
("tag_names" . [])))
|
||||
:as 'string
|
||||
:then (lambda (res) (message "URL stored successfully."))
|
||||
:else (lambda (res) (message "Failed to store URL."))))
|
||||
|
||||
(defun linkding-add-bookmark-at-point ()
|
||||
"Add URL at point as bookmark to Linkding."
|
||||
(interactive)
|
||||
(linkding-add-bookmark (shr-url-at-point nil)))
|
||||
|
||||
(provide 'linkding)
|
||||
;;; linkding.el ends here
|
||||
|
|
Loading…
Add table
Reference in a new issue