alphapapa / alphapapa/org-protocol-capture-html

Text selection doesn't work

未关闭
#38 2 条评论 0 个 reaction 已指派 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 摘要。