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

Change behavior of asking for a chapter/scene name on creation. #1443

Closed
xahodo opened this issue May 11, 2023 · 4 comments · Fixed by #1692
Closed

Change behavior of asking for a chapter/scene name on creation. #1443

xahodo opened this issue May 11, 2023 · 4 comments · Fixed by #1692
Labels
enhancement Request: New feature or improvement planned Note: Feature planned for a later release project management Component: Project or Project Tree

Comments

@xahodo
Copy link

xahodo commented May 11, 2023

Current behavior:
Upon creation of a chapter/scene in the project tree, the user is requested for a name. It's possible to leave the name as is. This behavior from the application pokes the user to create a name for their chapter/scene in advance.

Desired behavior:
Upon creation of a chapter/scene in the project tree, the program just creates an entry with a generic name and allows for changing it later. In an ideal situation the generic names would be numbered, as to differentiate between multiple of them.

Possible compromise:
Make this a configuration option, where users can switch between the dialog appearing on chapter/scene creation or not.

Rationale:
In writing, common wisdom is to first write your chapter/scene, and then name them. If it's done the other way around, writers might find themselves molding the chapter/scene to fit the heading. I've fallen for this trap myself.

@xahodo xahodo added the enhancement Request: New feature or improvement label May 11, 2023
@vkbo
Copy link
Owner

vkbo commented May 11, 2023

You are free to leave the new document with the generic name if you wish, all you need to do is hit the enter key. This is a minor inconvenience compared to the opposite case where you will need to right click and select "Rename" to set the name after you've created the item if you do want to assign a name.

The latter path is significantly more friction to the user, so I do not agree that the default behaviour should be changed.

Edit: As for what is common wisdom, that entirely depends on your approach to writing. novelWriter does not dictate or assume any specific approach. If you are, like me, an outlining-type writer rather than a seat-of-the-pants writer, scenes may very well be defined before you write them. I plan all my key scenes beforehand.

@tmarplatt
Copy link
Contributor

tmarplatt commented Jul 20, 2023

First, I wish the "Item Label" dialog had a checkbox that, when checked, by default appended an item counter to the chosen name. Basically what @xahodo is requesting, but also similar to the Formatting Codes of the Build tool, i.e. giving the user the power to choose where and how to insert the counter. So, a simple option charged with more advanced usage if the user is so inclined.

Another wish related to naming: I think there is an argument to be made about having the ability to couple document names (item labels) and first headings. Since novelWriter already autofills the first heading with your chosen document name, why not allow the user to choose which documents should make use of that, both ways. Make it seamless: all you have to do to rename a label is change the document's heading. novelWriter takes care of the rest.

Either that or a more involved "Update Label" option in the Project Tree/Novel Outline views, which updates all selected document names using the heading in the first line (or no update if there is none).

@vkbo
Copy link
Owner

vkbo commented Dec 4, 2023

I've already added a feature to right click a document heading and set the item label to match. Adding a way to right click an item and pull the title from the first heading is a logical next step. Now that multi-select is possible, it is also possible to make it an option for several items at once.

Adding a checkbox to sync them both ways will not happen, as novelWriter will not edit a document that isn't open.

Tasks:

  • Add a context menu entry in the project tree to update the item label to the text of the first heading in the document.
  • Add an equivalent feature for multi-select.

@vkbo vkbo added project management Component: Project or Project Tree planned Note: Feature planned for a later release labels Dec 4, 2023
@vkbo vkbo added this to the Release 2.3 Beta 1 milestone Dec 4, 2023
@vkbo vkbo linked a pull request Feb 11, 2024 that will close this issue
6 tasks
@vkbo
Copy link
Owner

vkbo commented Feb 11, 2024

I've added an option to the context menu that will allow easy rename to the main heading of a document, if one exists. It only shows up when right-clicking documents that have a heading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request: New feature or improvement planned Note: Feature planned for a later release project management Component: Project or Project Tree
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants