alphapapa / alphapapa/org-protocol-capture-html

Text selection doesn't work

Aperta
#38 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
help wanted
Lingua principale
Emacs Lisp
Stelle
461
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.