asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

RFE: Add Spell checking language selection to setting so they can be permanently saved #458

Open gearboxscott opened 4 years ago

gearboxscott commented 4 years ago

Is it possible to have language selection for Spell Checking add to the setting page for Editor so they can permanently saved? Save it would eliminate the step of selecting the default language every time I open a document or create a new one.

rahmanusta commented 4 years ago

If you change spell checker language in 'Default language' context menu, AsciidocFX will save and remember it.

gearboxscott commented 4 years ago

"content menu"? I'm on a mac, not windows. I see "preview", "settings", "workdir", "outline", "recent". In a document, I right-click the mouse and see a menu, picking Spell Checker, picking Default Language, en_US. Open a new document, it's fine. Close the application and reopen, then look a Default Language, it goes back to Turkce. What am I missing here?

markisevil commented 4 years ago

"content menu"? I'm on a mac, not windows. I see "preview", "settings", "workdir", "outline", "recent". In a document, I right-click the mouse and see a menu, picking Spell Checker, picking Default Language, en_US. Open a new document, it's fine. Close the application and reopen, then look a Default Language, it goes back to Turkce. What am I missing here?

This happened me too, but I ran AsciidocFX as administrator once, made the settings, and then the next time I restarted AsciidocFX as usual, as a regular (non-admin) user, the setting had been saved.

sothawo commented 4 years ago

I find this pretty annoying too. And no, I wouldn't run an application as administrator to persist a individual user setting. In the directory ~/.AsciidocFX there is a file _spellcheckconfig.json that is an empty json file; if I'd know if putting something in there would help.

rahmanusta commented 4 years ago

The file should be recorded to user's home directory without requiring admin rights. Why this require admin rights to write a file in user_home ? I would like to help if this is an application issue, but seems it is like permission issue.

sothawo commented 4 years ago

The file is in my home directory, the problem is, that changes in the UI are not persisted, so after a new start of the application, the language for spell checking gets back to the turkish default.