It would be lovely being able to access the side-bar with the keyboard (e.g. 'opt' + '←' and 'opt' + '→') and navigating articles with arrow up and down. Would it be possible?
Thanks :)
Very good idea, one I actually try to implement since months. The problem is: Zettlr actually once had keyboard navigation. But since I moved to clusterize.js for rendering the preview list, that feature broke. I hadn't had any luck restoring the support since. But it's still on my agenda, because it angers me as well!
Furthermore: Which sidebare do you mean? The attachment sidebar or the file list/tree view-sidebar?
So far, it sounds like a reasonable thing!
Cheers
Hi Nathan!
I meant the file list side bar. But it would be great to be able to go either way. Left to ‘file view’ from the editor and right to ‘attachment bar’. Should it be possible to have another note on split view as well, that could also be in between and it would be awesome ;)
I am sorry to hear that this feature was lost and that you probably already had to go though a lot to get it back running again. Maybe there is workaround we could try as an alternative in the meanwhile? I was thinking perhaps a shortcut for next & previous article (going up and down in the list). It there was this item in the menu, we could simply set a shortcut for it.
Another cool idea that I've seen in other apps is triggering the table of contents pop-up via keyboard shortcut (e.g. cmd + 9) and navigating up and down using arrow keys and selecting the desired section pressing return. (I thought I should mention it, but perhaps it is not worth it going through too much trouble to implement it. I don't know.)
The thing is that I did not manage to reimplement this up until now 😭
I'll see into it once again (I just got an idea of how to do this), but currently I have a lot to do elsewhere …
Did some digging around in the source code and I managed to re-activate the arrow-key navigation.
Using the current dev build (and, probably tomorrow, the 1.0.0-beta.1 build) it should be possible to use the following keys to navigate:
Arrow Up: Select the previous file in the listArrow Down: Select the next file in the listCmd/Ctrl+Arrow Up: Select the first file in the listCmd/Ctrl+Arrow Down: Select the last file in the listUnfortunately, initially you can't use the arrow keys due to some strange focusing that is happening, so you'll have to focus the preview list first by clicking on the upmost directory entry. Maybe I'll find out why this happens as well until 1.0!
That is great new, Nathan. Thank you for looking into it.
You're welcome!
I created a macro with shift + cmd + f and tab (x9) so now I can go directly to the articles list! :)
Also, I love the new text folding feature. It is a great one! (If there is there a keyboard shortcut for it, please let us know). Thanks again, Nathan!
Thanks! :)
There's no shortcut to trigger the text folding — would you like one? There's an option to define something like this, if I remember correctly …
(But this is a different issue, so I'm going to close this one here!)