Coder Social home page Coder Social logo

Comments (4)

jeanphilippegg avatar jeanphilippegg commented on July 28, 2024

This left part of the link is what allows links to work in Denote (and org), ie you can click on them or have a backlinks buffer. Normally, it is not visible to the user. The right part is the description and is meant to be controlled by the users.

By default, the description is the file's title (and signature if present). This can be controlled by the variable denote-link-description-function. It is not yet released on gnu elpa. It will be available in Denote 3.0.0. If you have the latest code, you can try this:

(defun my-link-description-function (file region-text)
  (denote-get-file-name-relative-to-denote-directory file))

(setq denote-link-description-function #'my-link-description-function)

Your links would look like [[denote:20240126T142743][emacs/20240126T142743--Basic-Elisp__emacs_code.org]]. Would this be an acceptable solution?

Have a look at the default value of denote-link-description-function if you want your link descriptions to include the file's title or the region content.

from denote.

teotenn avatar teotenn commented on July 28, 2024

Hi, no I need rather the oposite, the left side modified so that I can use the links outside of emacs:

[[emacs/20240126T142743--Basic-Elisp__emacs_code.org][Basic Elisp]]

OR

[[20240126T142743--Basic-Elisp__emacs_code.org][Basic Elisp]]

Is this possible?

But then I guess that the part of denote: is what it actually opens the link right?

from denote.

protesilaos avatar protesilaos commented on July 28, 2024

from denote.

teotenn avatar teotenn commented on July 28, 2024

Thanks for the explanation, I'm closing the issue then and will try to find some solution for my particular case.

from denote.

Related Issues (20)

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.