dpradov / keynote-nf

Tabbed notebook with RichText editor, multi-level notes and strong encryption.
Mozilla Public License 2.0
252 stars 57 forks source link

Changes made to the styles dropdown are not saved? #697

Closed s427 closed 4 months ago

s427 commented 4 months ago

I'm referring to the dropdown menu visible on the "Style Toolbar".

I don't use the default styles and wanted to define my own styles. However upon restarting Keynote, all my changes are lost. Only the default styles are visible (Blue Typewriter, Emergency, Green Highlight, etc).

I tried to restart KN with admin privileges; delete most of the styles in this dropdown; then restart KN. Same result: all the default styles are back.

Am I doing something wrong?

Note: immediately after deleting the styles, and before restarting KN, if I go to Tools > Customize keyboard > Apply style, I can see all the default styles listed there too (even though I just deleted them), and none of the styles I created.

dpradov commented 4 months ago

It's true, the removal of default styles is being ignored. I'll correct it.

In the meantime, what you can do is directly edit the "keynote.kns" file of the corresponding profile, eliminating the entries of those styles that you do not use. (You have to edit the file with the application closed, or it will overwrite your changes on exit)

dpradov commented 4 months ago

Upon reviewing it again I can verify that the changes are indeed saved, regardless of whether they are default styles, but currently only when closing the application (and the session), and only if it has not been started with the -nso command line ( do not save options). Closing the session is when changes to styles (keynote.kns) and favorites (keynote.fvr) are saved.

However, it is true that since it is possible to define keyboard shortcuts for the styles, and this is done from a DLL that identifies the styles to be used by consulting the "keynote.kns" file, it is advisable not to wait to save the changes on this .kns file at session close.

s427 commented 4 months ago

Strange... Now it works fine. :/ I tried several times earlier today.

Anyway, glad that you made so that it's not necessary to restart the application for assigning keyboard shortcuts to new styles.