Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make title and YAML block optional #230

Merged
merged 9 commits into from
Jun 11, 2020
Merged

Make title and YAML block optional #230

merged 9 commits into from
Jun 11, 2020

Conversation

srid
Copy link
Owner

@srid srid commented Jun 11, 2020

If no title is specified, use the H1 title (as raw string). If that is missing, use the first few letters of the first paragraph. Otherwise, use "Untitled".

Resolves #181

@srid srid marked this pull request as ready for review June 11, 2020 22:30
@srid srid merged commit 956e78e into master Jun 11, 2020
@srid srid deleted the optional-title branch June 11, 2020 23:14
@dpaetzel
Copy link

Hi, let me start by saying that I just recently discovered neuron and I'm a big fan 🙂 Great work!

A question though: What is the reasoning behind not putting titles specified via the CLI argument into the YAML any more? (I'm just curious 😉 )

@srid
Copy link
Owner Author

srid commented Jun 12, 2020

@dpaetzel The thinking is that going forward we would use the new-style title (# The title) by default. In conjunction with tags also moving to the body (see #189), the YAML would become strictly unnecessary (except for specifying date).

If that's not desirable for some users' workflow, then we could certainly add an option to neuron new like --title-in-yaml that preserves the old behaviour (PR welcome!).

@dpaetzel
Copy link

dpaetzel commented Jun 13, 2020

the YAML would become strictly unnecessary (except for specifying date)

Makes a lot of sense to me! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make title optional
2 participants