protesilaos / denote

Simple notes for Emacs with an efficient file-naming scheme
https://protesilaos.com/emacs/denote
GNU General Public License v3.0
545 stars 55 forks source link

Refactorings #329

Closed jeanphilippegg closed 7 months ago

jeanphilippegg commented 7 months ago

Two commits. Nothing major or breaking.

protesilaos commented 7 months ago

Merged. Thank you!

For the name of the backlinks buffer, I wonder if we should have third condition:

  1. Use title from the front matter.
  2. Use title from the file name.
  3. Use the identifier.
jeanphilippegg commented 7 months ago

For the name of the backlinks buffer, I wonder if we should have third condition:

1. Use title from the front matter.

2. Use title from the file name.

3. Use the identifier.

We previously used denote-retrieve-title-or-filename which is almost what you suggest here. Maybe we could go back to using that and delete denote--backlinks-get-buffer-name? The identifier should be visible in the file name if we reach 3.

protesilaos commented 7 months ago

From: Jean-Philippe Gagné Guay @.***> Date: Fri, 26 Apr 2024 21:43:02 -0700

For the name of the backlinks buffer, I wonder if we should have third condition:

1. Use title from the front matter.

2. Use title from the file name.

3. Use the identifier.

We previously used denote-retrieve-title-or-filename which is almost what you suggest here. Maybe we could go back to using that and delete denote--backlinks-get-buffer-name? The identifier should be visible in the file name if we reach 3.

I guess that would be fine too because the user probably wants to read the keywords and/or signature in the absence of a title.

-- Protesilaos Stavrou https://protesilaos.com