Giter VIP home page Giter VIP logo

Comments (2)

felko avatar felko commented on June 2, 2024 1

Hello, thanks for the suggestion.

I could implement this by allowing neuron-id-format to be set to a function which would be called using the ID and title. This would cover virtually every possible use cases, since users might want both the title and ID in the file name (e.g. to avoid collision with zettels having the same title), or even want to format the title so that it is slugged, etc...

In general, I would recommend using the IDs and nothing else. The point of this is that you can rename without any additional work, though using titles in the file names can be used for small and rarely changing zettelkastens, e.g. for documentations. In "knowledge base" zettelkastens, I would argue this is a very bad idea.

Syncing the ID and the title would solve this issue, but I have no idea how to implement this efficiently. I think this should be implemented neuron side, or maybe as a separate tooling, instead of neuron-mode.

from neuron-mode.

felko avatar felko commented on June 2, 2024

I have partly implemented this in 6cf3475
If a function is assigned to neuron-id-format, it only takes the title as an argument, and not the ID.
This is because the ID generation logic is handled by neuron itself, at the same time that it creates the file.
I'm closing this for now because I don't think I can do better (without doing something that feels like a hack), so I leave @srid decide whether the neuron CLI should allow generating an ID alone without creating a new file.

from neuron-mode.

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.