Send Org Link/Marked Text to Karakeep

Hihi :waving_hand:

I made this code with the help of some artificial sweetener to send org-mode links or marked text directly from emacs to Karakeep.

Maybe it’ll help some people? Anyway, keep in mind that I’m not a coder at all and I just wanted something that works. You’ll have to change your IP/domain/port and put in an API code that you make in Karakeep. I marked them pretty clearly near the top of the code so you shouldn’t miss it. I just dropped it in my emacs scripts folder and used (provide) in my init for it to load.

https://github.com/summeremacs/SendToKarakeep/blob/main/karakeep-send.el

That is all. Please resume with your regularly scheduled mayhem. :upside_down_face:

2 Likes

Wonderful, thank you so much. I couldn’t resist and add an org-mode karakeep-org functionality. It does the following:

  1. Assume the current buffer is in org-mode
  2. Temporarily convert to Markdown (as karakeep understands that syntax)
  3. Clean some unwanted org-mode leftovers
  4. Assign an URL as in emacs://<org-mode-filename>, which on my system has a handler that opens such a link in Emacs

If you find this useful, I forked the original script with these amendments here:
https://github.com/bam93/SendToKarakeep