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

[FR]: Easily add a new post in a blog e.g quarto create post #3917

Open
cderv opened this issue Jan 10, 2023 · 10 comments
Open

[FR]: Easily add a new post in a blog e.g quarto create post #3917

cderv opened this issue Jan 10, 2023 · 10 comments
Labels
enhancement New feature or request
Milestone

Comments

@cderv
Copy link
Collaborator

cderv commented Jan 10, 2023

This comes from quarto-dev/quarto-r#22

R users have such feature with blogdown::new_post() and a RStudio Addin build upon it. I believe it would be a nice feature to have in our quarto create ... suites of features.

This would help

  • Create a post in the right place in the Quarto blog
  • Add some content to the file based on a default or template maybe
  • Offer to fill some fields at command line maybe like title, etc...
@cderv cderv added the enhancement New feature or request label Jan 10, 2023
@cderv cderv added this to the Future milestone Jan 10, 2023
@jthomasmock
Copy link

A few functions/packages have been created by community:

But a current limitation is that all are R focused rather than general quarto CLI tooling.

@smach
Copy link

smach commented Feb 26, 2023

The one thing these personal R packages are missing (including mine) is the ability to see existing blog categories. It's usually not a good idea to add freeform text to what should be structured data!

@cderv
Copy link
Collaborator Author

cderv commented Feb 27, 2023

@dragonstyle do you think we could target adding new quarto create feature for 1.4 ?

@petzi53
Copy link

petzi53 commented May 27, 2023

With quartopost I tried to simulate the very missed blogdown "new post" RStudio Addin by Yihui Xie using a shiny dialog window with some configurations and offering a list of already used tags as commented by @smach.

@dragonstyle
Copy link
Collaborator

@cderv I'm not sure if we'll have time to get to this in 1.4 - I think doing a good job will be a few days worth of work...

@mcanouil
Copy link
Collaborator

mcanouil commented May 30, 2023

I would argue that first, #5421 and #598 need to be resolved, before adding new commands.

EDIT: easy workaround is to define code snippet in your favourite IDE to create a new post (although it won't create parent directory itself before saving, at least VSCode creates parent directory on save).

@cderv
Copy link
Collaborator Author

cderv commented May 30, 2023

@dragonstyle let's consider this for later then.

@mcanouil yes, this would be better to clean the current state first.

Regarding the workaround, I believe @petzi53 work on https://github.com/petzi53/quartopost is really good !
It is targeting RStudio's user only though but that is still a really good solution ! Thanks @petzi53 !

@astrowonk
Copy link

Yes, please! I miss hugo new posts/something_new/index.md and having the basic metadata like date and draft: true set for me.

@astrowonk
Copy link

astrowonk commented Mar 6, 2024

I created the very simple Python based quarto-new-content command line utility to replicate hugo new content command line functionality. One can do:

quarto-new-content posts/star-trek-is-cool/index.qmd 

and it will make the new file in the new directory, with a very minimal set of yaml headers, ready for editing.

@coatless
Copy link
Contributor

For VS Code (& maybe Positron) users who miss the addin option, check out {quartize} (VS Marketplace and OpenVSX). It provides a nice form field & the option to directly specify via palette.

Demo workflow triggering a new_post() pop-up

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

No branches or pull requests

8 participants