Skip to content

How to make a note have a different title to its filename? #549

Closed

Description

@ckp95

Trying out this program. I want to be able to link to a note without having to use its filename. This is because I may want long titles, titles with spaces, titles with weird Unicode, or other things that might make life difficult down the road if they were used as filenames. I just want to have the filenames be meaningless and have the actual metadata inside the file. Fulltext search > filenames.

So I go through the tutorial and it says to make a file with neuron new -e, so I do that and make this file with the randomly generated filename cb3bc096.md:

---
date: 2021-02-01T13:42
title: A test note
---

# Heading of the note

Body of the note

Then I make a index.md file with these contents:

# My Zettelkasten 

From here, you can visit: [[A test note]]

And I generate the site with neuron gen -wS like the docs say, except that doesn't work and I need to do neuron rib -wS instead for some reason. Anyway I do that and it doesn't work. It just says "links to non-existent zettel: A test note".

So I think maybe I need to use the "slug" field. I add slug: A test note to cb3bc096.md. Doesn't work either. I try with hyphens instead of spaces, doesn't work.

So .. how do I make these kinds of links? Surely I'm not meant to memorize these gibberish autogenerated filenames? I don't get it.

Activity

  1. ckp95 commented on Feb 1, 2021

    @ckp95
    Author

    Also is it me or is the documentation site really, really slow to load for just being static html?

  2. changed the title [-]How do make a note have a different title to its filename?[/-] [+]How to make a note have a different title to its filename?[/+] on Feb 1, 2021
  3. ckp95 commented on Feb 1, 2021

    @ckp95
    Author

    Oh wait I get it now, I can just give a short title like test-note.md and then a longer title with whatever formatting I need by doing title: A test note. Then linking to it is just [[test-note]] and it renders with the title. That makes sense, although the docs could be clearer.

    Although now I tried changing the slug part to be slug: quick-brown-fox yet the HTML filename is still test-note.html, so I don't understand that part.

    And the locally hosted site is really really slow just like the web hosted docs. I don't understand why this is. A page with two lines of content takes 2-4 seconds to load fully.

  4. Repository owner locked and limited conversation to collaborators on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions