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

Inconsisent behaviour for new file across different menus #14589

Open
mine-cetinkaya-rundel opened this issue Apr 24, 2024 · 0 comments
Open

Comments

@mine-cetinkaya-rundel
Copy link

I'm on Version 2024.04.0+735 (2024.04.0+735).

There are three ways of getting a new Quarto document:

  1. Top Menu: File > New File > Quarto Document... -> Untitled1.qmd with document with sections, code, etc.
  2. Top Menu: File > New File > Quarto Document... > Create Empty Document -> Untitled1.qmd with no content but a YAML with title, format, and editor fields.
  3. Files Pane: New Blank File > Quarto Doc... -> you get to specify the name but the default is UntitledQMD.qmd and it's actually blank as intended, but it's literally blank, not even a YAML.

There are some notable inconsistencies that constantly make me think "last time I did this there was something else here", but I think the issue is that there are different ways of doing the same thing, each with a slightly different experience.

I think the menus make a distinction between "File" and "Document" as concepts? I'm not sure. But the distinction isn't clear to a new (or experienced) user. I'd suggest keeping the terminology consistent -- either both should call them File or Document (I suggest File but I'm actually good with either).

Further suggestions to make the experience similar across various methods of getting a new file:

  • Both menus should say "Quarto Document..." (not "Quarto Doc...", which is unclear)
  • Both menus should list the types of files in the same order
  • In the New Blank File menu either all options should have ... or none, they all result in a pop-up menu for filename so it doesn't make sense for some to have them and some not
  • New File menu should also pop a window that allows the user to specify a name
    • That pop up window should be called "Create a New qmd file in Current Directory"
    • The default filename should be either Untitled1.qmd or whatever the next number is based on saved/unsaved open files or if that's impossible it should be Untitled.qmd (not UntitledQMD.qmd)
  • All menus should result in a file with at least a YAML -- blank file would have no content otherwise and non-blank file would have the usual boilerplate.

If there's agreement that this streamlining is useful, I'm happy to write up in further detail what each step should look like, and for other types of files too (not just qmds.)

@mine-cetinkaya-rundel mine-cetinkaya-rundel added enhancement new New incoming issues, ready for initial review. labels Apr 24, 2024
@ronblum ronblum added quarto and removed new New incoming issues, ready for initial review. labels Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants