aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Ángel Moreno <mail@migalmoreno.com>2023-03-15 12:14:12 +0100
committerMiguel Ángel Moreno <mail@migalmoreno.com>2023-03-15 12:21:20 +0100
commit326f2c38ffe4bcceaa46b655102d22702e295ab8 (patch)
tree61901aa24d729ca0c1f97e8b2ae727dea4abd7a1
parent4e73a69ff1290829de4d78ee945c0d51d54c6f5b (diff)
feat: Remove helpers that integrate with Org mode
-rw-r--r--nyxt.el32
1 files changed, 0 insertions, 32 deletions
diff --git a/nyxt.el b/nyxt.el
index c9b4531..521912e 100644
--- a/nyxt.el
+++ b/nyxt.el
@@ -185,22 +185,6 @@ Optionally test if the extension's SYMBOL is bound."
(not (string-match "NIL" sym)))
(not (string= (downcase sys) "nil")))))
-(defun nyxt-store-link ()
- "Store the current page link via Org mode."
- (when (and (or nyxt-process
- (nyxt--system-process-p))
- (when (require 'exwm nil t)
- (string-match "Nyxt:" (buffer-name (current-buffer)))))
- (require 'ol)
- (org-link-store-props
- :type "nyxt"
- :link (if (nyxt--extension-p "nx-router" "trace-url")
- (read
- (nyxt--sly-eval
- '(render-url (nx-router:trace-url (url (current-buffer))))))
- (read (nyxt--sly-eval '(render-url (url (current-buffer))))))
- :description (read (nyxt--sly-eval '(title (current-buffer)))))))
-
;;;###autoload
(defun nyxt-sly-connect ()
"Connect to a Slynk server via Sly to interact with the Nyxt browser."
@@ -224,22 +208,6 @@ Optionally test if the extension's SYMBOL is bound."
(setq nyxt-sly-connection nil)))
;;;###autoload
-(cl-defun nyxt-capture (template &key (roam-p nil))
- "Store and capture the current Nyxt page link in Org TEMPLATE.
-
-If ROAM-P, store it in the corresponding Org Roam capture TEMPLATE."
- (interactive)
- (with-current-buffer
- (car (cl-remove-if-not (lambda (buffer)
- (string-match "Nyxt:"
- (buffer-name buffer)))
- (buffer-list)))
- (org-store-link t t)
- (if roam-p
- (org-roam-capture nil template)
- (org-capture nil template))))
-
-;;;###autoload
(defun nyxt-search (query)
"Search for QUERY in the default search engine in Nyxt."
(interactive "sSearch for: ")