Comments (2)
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.
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)
- Non blocking cache regeneration is very slow HOT 3
- The function `neuron-toggle-connection-type` fails HOT 1
- can't run `neuron-new-zettel` in dired-mode HOT 3
- Feature request: Add ability to easily navigate between journal entries HOT 2
- Template zettels HOT 1
- Tag specific keymaps HOT 1
- neuron-mode fails to initialize HOT 10
- Cannot bind neuron-toggle-connection-type HOT 2
- Support wiki links HOT 7
- Another failure when initializing neuron mode HOT 3
- --id-hash and --id-date not supported anymore HOT 4
- Ignore log messages in output of 'neuron query' HOT 2
- 'neuron-add-tag' is unable to identify tags with latest version of neuron HOT 3
- Querying by --uri fails now? HOT 3
- neuron v2 query HOT 3
- neuron-insert-zettel-link inserts [[[nil]]] for link with non-ascii letters in filename HOT 8
- Canonical location of tags in `neuron query` (v2) HOT 1
- Release (or tag) for the last version that worked with Neuron 1.0 HOT 1
- Updates for latest (unreleased) Neuron version HOT 6
- --zettels is no longer a valid query flag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neuron-mode.