alfred-org-capture icon indicating copy to clipboard operation
alfred-org-capture copied to clipboard

Support for org-mac-link and PopClip

Open ifitzpat opened this issue 8 years ago • 3 comments

Dear J. J. Asghar,

Thank you for your great work implementing alfred-org-capture! I have tweaked alfred-org-capture.el to enable PopClip support (runs make-orgcapture-frame with selected text) and org-mac-link support (creates links to certain Mac apps). I consider these additions useful (although some issues remain; see below). If you agree, I hope you'll consider merging them.

Sincerely,

Ian FitzPatrick

Additions:

  • Included a hook written by Alan Schmitt to close the frame when the capture is finalised.
  • Included support for org-mac-link which enables links to certain Mac applications (e.g., Mail, Safari, Firefox).
  • Added a PopClip extension to include selected text in capture.

Current issues:

  • The text selection mechanism is implemented by means of a global variable. audible gasp
  • Text and links are inserted into the capture using org-capture-prepare-finalize-hook which sometimes requires finalising (i.e., completing, refiling, or discarding) the capture twice.
  • When emacs is run in fullscreen mode all frames are killed when the capture is finalised.

ifitzpat avatar Mar 03 '16 09:03 ifitzpat

This is awesome! Out of principle I'll have to test this out, but I'll do this asap. This maybe enough to finally get me to look into putting this in melpa too!

jjasghar avatar Mar 04 '16 16:03 jjasghar

I'm glad you like it! I added one more tweak to the bash script to kill the terminal window upon completion of the command. I'll add that to the next pull request along with the modified README

ifitzpat avatar Mar 04 '16 19:03 ifitzpat

I edited README.md and tried to incorporate mention of the features I added as best I could.

ifitzpat avatar Mar 11 '16 09:03 ifitzpat