alphapapa / alphapapa/org-protocol-capture-html

Text selection doesn't work

オープン
#38 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
help wanted
主要言語
Emacs Lisp
スター
461
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。