sprig / org-capture-extension

A Chrome and firefox extension facilitating org-capture in emacs
MIT License
534 stars 56 forks source link

Captures old highlights too #70

Open ashfaqfarooqui opened 4 years ago

ashfaqfarooqui commented 4 years ago

Thanks for this extension.

I am using Manjaro linux and Emacs 26.3.

Capture works fine when saving links. However when I try to capture quotes it does not seems to clear the memory from the previous capture.

This is what I get, I tried capturing 3 times and the highlighted text seems to just get appended to the old captures.

* 
Captured On: [2020-04-20 mån 01:22]
Source: [2020-04-20 mån], ** sds
Captured On: [2020-04-20 mån 01:18]
Source: [2020-04-20 mån], sds
Captured On: [2020-04-20 mån 01:18]
Source: [2020-04-20 mån], use
 #+BEGIN_QUOTE
Some workers bought rudimentary face shields from a recreation supervisor who purchased a box online for $160. By last week, employees were pleading for help from the government and for donations of personal protective equipment in Facebook posts.

But it was too late.
#+END_QUOTE

 #+BEGIN_QUOTE
But the virus kept finding frail and older residents, and one culprit became clear: The workers themselves were likely spreading it as they moved between rooms and floors, outfitted with little or no protective equipment.
#+END_QUOTE

 #+BEGIN_QUOTE
But it was too late.
#+END_QUOTE

%?
its-a-unixsystem commented 4 years ago

It seems the %c variable in the capture template doesn't work as expected. you can replace it with [[%:link][%:description]] Which should be the same