karlicoss / grasp

A reliable org-capture browser extension for Chrome/Firefox
https://beepb00p.xyz/grasp.html
MIT License
339 stars 19 forks source link

Merge captures for the same webpage ? #38

Open aancel opened 3 years ago

aancel commented 3 years ago

Hello,

I'm wondering it there would be any way of adding an option to merge captures made for the same website within the same entry. Knowing the capture template, it could be possible to find if the exact same header is already present in the capture file and then the content could be appended to the already existing entry.

The kind of use-case I'm thinking about with this feature request, is when you are on a page and you want to capture multiple selections, that would then be merged inside a single org header.

Let me know what you think about this ! Thanks in advance for your answer !

karlicoss commented 3 years ago

Hey, sorry for a late reply! It would be useful and possible in theory by modifying the 'server' python script.. but makes it quite a bit more complicated as well (i.e. requires parsing the file in addition to generating org-mode). I usually just do it manually when I process my highlights later