alphapapa / alphapapa/org-protocol-capture-html

Text selection doesn't work

Ouverte
#38 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
help wanted
Langage dominant
Emacs Lisp
Étoiles
461
Forks
41
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Thanks for this wonderful package, much appreciated.

I managed to set up successfully for full page capture. However, whether I select text or not, the function always captured the entire page. I am wondering if I did anything wrong.

```
(setq org-directory "~/org-notes")
(setq org-default-notes-file (concat org-directory "/notes.org"))
(define-key global-map "\C-cc" 'org-capture)

(defun transform-square-brackets-to-round-ones(string-to-transform)
"Transforms [ into ( and ] into ), other chars left unchanged."
(concat
(mapcar #'(lambda (c) (if (equal c ?[) ?\( (if (equal c ?]) ?\) c))) string-to-transform))
)

(setq org-capture-templates
'(("w" "Web site"
entry
(file+olp "~/org-notes/notes.org" "Web")
"* %c :website:\n%U %?%:initial")))

(setq org-protocol-default-template-key "w")
```

I am using the first bookmarklet set up for Firefox.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.