-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Can't navigate back to currently open document from outline view #1291
Comments
This is not a bug. The reason a new "open document" call isn't processed any more is that doing so would reset the undo buffer of the editor. This could be annoying in some cases, so the action is blocked. The navigation from the novel view and outline view use the same code, but for the novel view it doesn't matter since the editor is already visible. What would make sense still is that the the view is shifted to show the editor again, even if a new document isn't loaded. I can make that change. It is more consistent with how it used to be before when it would reload a document regardless of whether it was open or not. |
On a sidenote, if you have any suggestions for the novel view, feel free to add feature requests, The feature was completely rewritten for 2.0, and is still a bit of a work in progress. I prefer to outline the structure of my stories, so I start with one document per act that I break down in steps as I add a synopsis, then excerpt, then text to each scene. I rewrote the novel view with this in mind, and I usually use it when writing as well. Also, keep in mind that the novelWriter text editor becomes a bit sluggish on very large documents, so you may want to break it up in at least a few docs when you get into the 200k word area, if that's where you end up. |
Ah, that makes sense, wasn't aware of that.
Yes, that would be great already - at the moment it's a little confusing, as clicks in the outline view sometimes do something, and sometimes do nothing. It would be great if it could also scroll to the correct h3 scene / h2 heading / etc that's been clicked, if a sub-heading is clicked (i.e., the same as in the novel tree view). |
It already does that actually. It works the same way as double-clicking in the novel view. The only thing that needs to be added is that it shifts the editor into view. |
Thanks! I think the new novel tree view is a huge improvement already, as it really helps with certain workflows, like when planning a plot and you just want to sequentially hammer out chapter and scene headings. Having to manage separate documents can become a bit cumbersome and needs a lot of clicks and drags if you want to re-order things. I have a couple of suggestions, am happy to open separate issues in more detail for each of these if that would be helpful:
Thank you, will bear that in mind once I hit 200k / it gets sluggish. In any case, I think once a novel has progressed sufficiently, it makes sense splitting a long document into sub-documents / parts / chapters (and is easy to do with the split into documents function), but in the early stages of a draft it can be a bit cumbersome managing the document 'files' separately from the markdown headers, particularly if you are renaming and juggling them a lot or moving things between sections, etc. |
Oh, fantastic, I hadn't noticed that! Yes, then just a shift of focus is all that is perhaps expected. |
It seems like we have a very similar workflow. This is also why I made it so you can split on specific header levels, so you can do it in multiple steps as the text grows. My workflow isn't exactly the snowflake method, but it is a personalised version of it.
Yeah, I can see the need for that. The middle mouse button click opens in the view panel in both the project tree and novel view, but that's only useful if you have an actual middle button on your mouse. It's no problem adding a context menu, but I would like to have more options to add to it before I do so. Perhaps I could add an alternate "middle click" feature with Ctrl + mouse click. Feel free to add a feature request for a more universal way to open docs in the viewer from the novel view. That's definitely something I can look into.
This has been requested before and I've decided against it primarily because it would involve rewriting the content of your text documents. As it is now, the app never modifies the text you've written. Even the split and merge tools do their thing on new documents, not the original. I can absolutely see how it would be a useful feature, and I wouldn't mind having it myself. I have considered making it possible to do this internally in a document. However, allowing to drag'n'drop a heading that represents a whole document from the novel view would run into the problem of knowing where in the file structure to drop it. This structure isn't visible from the novel view, and the drop point could be ambiguous.
I've thought about this too. Because the Alt+num ones are already sort of used up, I've considered adding a new key combo that isn't numeric so therefore not drifting out of order if I add more views. A double key combo could work. Something like:
... and so on. Doesn't have to be |
Thanks for your responses, those are all valid and reasonable points and concerns.
Oh, I didn't know about the middle mouse-button, that's cool and works really well in the novel tree! In that case, a quick fix might be allowing the middle button and Ctrl+R shortcuts also in the Outline view, that would make the View Document option a bit more consistent between views.
Yes, that could work, though I'm personally not a huge fan of double key combinations for shortcuts you might want to press repeatedly in rapid succession (such as quickly cycling between Project / Novel and/or Outline view, and back again, for instance). Just brainstorming / potential inspiration, another option could be to 'combine' both Project and Novel tree view under Alt+1 (since they're substantially similar layouts), and make it possible to switch between both with a separate toggle, like ctrl+tab or ctrl+t or another unused combination (and have it remember the last view you were in, when you next press alt+1). However, for consistency, that might require a slight rework of the UI. Another option more consistent with the current GUI could be (if backwards compatibility of keyboard shortcuts is not the highest priority), a slight refactor of the alt+number hotkeys to correspond directly to the icons in the left-hand bar, e.g. alt+1 = Project view, alt+2 = Novel View, 3 = Outline (and optionally, for consistency, though separate hotkeys already exist, alt+4 = Build, 5 = Details, 6 = Stats, 7 = Settings). The focus 'go to document editor' / 'document viewer' hotkeys (currently at alt+2 / 3) could then simply be a ctrl+tab or other hotkey toggle to jump focus between side-pane and any open editor panes (since those two views are effectively linked / only visible once you're in the project or novel view anyway) / or ctrl+e seems semi-available (other than going to the end of a line in the editor, emacs style). |
Good idea. I'll fix that.
I don't like to disrupt people's habits. I've done it from time to time, but the Alt+Num keys are actually to switch focus, not view, so I could just leave them as they are and instead add new keys for views and focus. See Keyboard Shortcuts for a reference of used shrotcuts. |
That sounds fair enough :)
Thanks for explaining, that makes sense!
Maybe Ctrl+T could also be a good candidate to toggle Project and Novel views: it seems to be available, could stand for Toggle or Tree (view toggle), and is maybe less confusing / technical than an F[number] key, most of which seem to currently be bound to Tools menu functions (other than the somewhat standardised F8 and F11 View mode hotkeys). |
You're right. The F keys are mostly for tools, aside from the standard ones that are not (F1, F2, F3, F7, F8 and F11, oh wait, that's most of them 😆) But sure, |
The issue has been fixed, and I referenced the other points in #1310. Feel free to add more info there. I'm closing this one now. |
Hi, the new version is great, some superb improvements and codebase clean-up! ✊ Sharing a small UX bug / unexpected behaviour in the Outline view.
Steps to Reproduce
Expected behaviour
You would expect a double-click or ctrl+o to always return you to the editor view and the same document and the appropriate sub-section. This is also the standard behaviour in the Novel Tree sidepane view.
Background: My use case
I am currently using Novelwriter without very many sub-documents, but as basically one long novel document with headers as subsections and chapters. The outline view and the 'novel' view display all the hierarchy and notes fantastically, but the outline view becomes almost unusable when you can't jump back to the right place in the editor view from it.
The text was updated successfully, but these errors were encountered: