Dyldog / luhman-obsidian-plugin

GNU General Public License v3.0
60 stars 18 forks source link

[BUG] Do not 'Title Case' filenames when creating a note from a text selection #40

Open DesiQuintans opened 2 years ago

DesiQuintans commented 2 years ago

Issue Searching

OtherIssues

No other similar issues closed or open.

Description

When Add titles automatically is TRUE, then running New Child/Sibling Zettel Note will use the selected text as the title for the filename. This is good!

But it will take that text and automatically Turn It Into Title Case, which I'd rather avoid.

Reproduction steps

  1. Ensure Add titles automatically is TRUE.
  2. Write some text in a note and select the text.
  3. Run New Zettel Note (child or sibling).

Expected Result

A new file should be generated where the selected text is used in the filename (desired), and its capitalisation is either unchanged, or in Sentence case.

Actual Result

A new file was generated where the selected text is used in the filename (desired) but it's in Title Case (not desired).

Version

1.1.0 (Current Version)

Relevent log output

No response

Screenshots

No response

Other Notes

It would be nice to see this resolved in a two-step way:

  1. A plugin option where the default capitalisation scheme can be chosen (unedited, sentence case, title case).
  2. Always show the New Zettel Title... prompt when creating a new note, but pre-fill it with text transformed as above, if any text is selected.

Thanks!

Eforen commented 2 years ago

I like this but I would like to see it as an option in the settings to Always show the New Zettel Title... prompt when creating a new note and if it is set to always show then yes lets prefill the selected feild.

Also for the Cap scheme lets put that as an option in the popup also