Closed sudeepdino008 closed 3 years ago
The version used by official installation instructions, which uses master
branch, has none of these options actually.
To use random ID, you would run:
neuron new -e
To use a custom (title) ID, you would use:
neuron new some-slug -e # Creates some-slug.md
# or, ...
neuron new "Some long title" -e # Creates "Some long title.md"
There is only one ID format: https://neuron.zettel.page/id.html
Date IDs are removed (less magic == good), in favour of the date
field in YAML frontmatter which neuron new
sets automatically.
EDIT: Oh, just realized this is not the neuron repo. I'll leave my comment anyway as clarifying information.
Hello, your assumptions sound correct, go for the PR.
It would be nice to use non-slugged IDs from neuron-mode, maybe we could have a 'title
option for neuron-id-format
which would simply take the title as it is and pass it to neuron-generate-id-arguments
as the ID.
@felko I like the idea of 'title
option. However, before its introduction, we have to migrate to the new links format - [[stuff]]
and [[[stuff]]]
.
This is because links like <Zettel with Spaces>
cannot be parsed into a link for html. Whereas for 'title
option, zettel links (with spaces) has to be supported.
Fixed in #64, thanks again
I've been getting this when creating a new zettel. My neuron version is
0.6.12.3
I'm having the following assumptions
--id-hash
option went away. It's replaced by----random-id
, which is also the default.--id-date
option doesn't seem to be supported anymore.I managed to get it working by removing the
--id-hash
argument .I want to confirm my assumptions before I could raise a PR to fix it. If the above assumptions are correct:
--id-hash
with----random-id
and that's that.neuron-id-format
) are then either ofhash
orprompt
.What do you guys think?