Giter Club home page Giter Club logo

Comments (7)

pprevos avatar pprevos commented on June 11, 2024

Hi Jonatan,

Great suggestion. I will add this functionality over the next week or so.

You are right to follow the process of citar-denote-open-note and then pass the notes files (can be more than one) into the denote-link function.

Peter

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Hi Jonatan,

Would this function meet your needs?

(defun citar-denote-link-reference ()
  "Insert a Denote link to a bibliographic note."
  (interactive)
  (if-let* ((citekey (citar-select-refs
		      :filter (citar-denote-has-notes)
		      :multiple nil))
	    (files (gethash (car citekey)
			    (citar-denote-get-notes citekey)))
	    (file (if (= (length files) 1)
		      (car files)
		    (funcall project-read-file-name-function
			     "Select note: "
			     files nil nil nil))))
      (denote-link file)))

from citar-denote.

JonatanSahar avatar JonatanSahar commented on June 11, 2024

That's exactly what I had in mind! Thank you!

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Are all files saved to disk?

from citar-denote.

JonatanSahar avatar JonatanSahar commented on June 11, 2024

you're quick! I edited to remove it like 2 two minutes after posting :)
the note was somehow not connected to the ref. It workd beutifully.

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Thanks for the suggestion and the feedback.

The email still contained your images so that is what I responded to.

I have committed the new version, which will appear in MELPA any time soon. Commit: 327c7f3

from citar-denote.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.