novelWriter icon indicating copy to clipboard operation
novelWriter copied to clipboard

Editor switches to new document upon creation

Open xahodo opened this issue 6 months ago • 5 comments

The basic idea is to have NW switch to the new document (be it a scene, chapter, or project note) upon creation.

Situation now:

  1. User creates a new document
  2. User has to manually switch to the document to start typing.

Desired result:

  1. User creates a new document and is automatically switched to the new document

It's a little niggle, but enough to ask for a change. Perhaps behind an option which can be set, either in the new document dialog (if so, please make it remember its setting) or the configuration window.

xahodo avatar Jun 07 '25 13:06 xahodo

Adding options for every little tweak isn't a sustainable solution, so I don't think that's a good idea.

As for the auto-open: Firstly, it assumes you actually do want to open the document you created. If you're creating them in bulk, that may be annoying. The second issue is that opening a document saves and closes the previous one, and clears its undo history. That is not a nice thing to do without the user's explicit request.

vkbo avatar Jun 07 '25 13:06 vkbo

Well, then a setting which gets remembered (on a per project basis) in the new document window would be more appropriate, I guess. This puts responsibility in the hands of the user, while not polluting the settings window. A hint could show an explanation about the undo history.

Also, I find the current interface is not particularly conductive to create documents in bulk (except, perhaps when using shortcut keys... but even then, what if a mistake is made (a typo, f.e.))

xahodo avatar Jun 07 '25 14:06 xahodo

Perhaps include a new entry in the "add item" menu? "Create multiple items" which would open up a new window, which would give the user a convenient interface to create, edit, delete their bulk item(s)? Once done, they could hit a "commit" button and they would be created all at once in the project tree.

xahodo avatar Jun 08 '25 07:06 xahodo

The fast way to do this is to create a single document, add all the headers and meta data you want in there, and use the split tool.

This is actually a good topic to add in https://novelwriter.io/docs/usage/howto.html

vkbo avatar Jun 08 '25 08:06 vkbo

Perhaps NW could detect what you're trying to do? If you create one document, it'll automatically switch to that document. If you create a whole bunch it could switch to any one of them - the window for splitting a document could facilitate this?

xahodo avatar Jul 15 '25 05:07 xahodo