Describe the solution you'd like
I would like, if possible, to open the already written notes in preview formatted mode instead of edit mode. Or if it is not massive desirable, the option to chose default view in the settings would be great. In preview mode, links are clickable and text is cleaner and easier to read.
Thanks for your time :)
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
It would be improve usability
It woul increase the readability of the notes that already exist. The android app has a setting for this as well.
That's exactly the feature I am missing. Please add an option to open existing Notes in View Mode!
After realizing #331, there is no differentiation between edit mode and preview mode anymore - there will be only one single mode. Hence, this setting would just be relevant for a short period of time.
After realizing #331, there is no differentiation between edit mode and preview mode anymore - there will be only one single mode. Hence, this setting would just be relevant for a short period of time.
This does makes sense to me. Is there an estimation when #331 will be realized?
No, sorry. We hadn't enough free time for this, yet.
I would accept a PR for a default view mode setting as interim solution, though.
After realizing #331, there is no differentiation between edit mode and preview mode anymore - there will be only one single mode. Hence, this setting would just be relevant for a short period of time.
There are still some differences between the two modes :
Therefore, a default setting is still relevant.
After realizing #331, there is no differentiation between edit mode and preview mode anymore - there will be only one single mode. Hence, this setting would just be relevant for a short period of time.
Yes, it is cool one, but still is not exaclty what we are discussing here, i still prefer able to see notes in preview mode by default.
Btw, #331 is missing tables support feature.
this would a nice setting, where should one look to add the settings? how does one test?
I think the following steps have to be done:
viewMode in NotesService (like the existing setting fileSuffix, use values edit und preview)AppSettingsNote and process it.Unfortunately, we currently have no GUI tests, but syntax and code style checks (run make lint).
Cool thanks for explaining, with test i mean more in the sense of seeing the changes i made
I'm not sure if I understand you correctly. You will have to run make build-js and replace the notes app for in your Nextcloud installation. Then, if you chose the setting view, notes should open directly in preview mode, otherwise the behavior should like before.
ah build with make build-js and replace it in nextcloud, thanks that's what i wanted to know
For those interested in this default setting and waiting for it to be implemented, I use the following workaround script with JSLoader. When Notes app loads a page, this script triggers CTRL + / and thus switches to preview mode.
document.addEventListener("DOMNodeInserted",function(event){
if(event.relatedNode.matches(".app-notes #app-content-vue"))
document.dispatchEvent(new KeyboardEvent("keydown",{"key": "/","ctrlKey": true}));
});
Most helpful comment
That's exactly the feature I am missing. Please add an option to open existing Notes in View Mode!