Skip to content
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

[F] Changing only one note’s language #3004

Open
jd-develop opened this issue Apr 11, 2024 · 2 comments
Open

[F] Changing only one note’s language #3004

jd-develop opened this issue Apr 11, 2024 · 2 comments

Comments

@jd-develop
Copy link

Expected behaviour

I have some notes written in French (fr_FR), some in English (en_US), and some in Occitan (oc_FR). However, if I want to note something in one on my Occitan notes, then immediately after, in one of my English or French notes, I have to manually switch the language for spelling checks in Edit->Language.

It would be nice if it was possible to set a default language for every new note, and that you can change the language of each note individually.

Actual behaviour

Language is set globally, not individually for each note, and therefore you have to re-set the language option whenever you switch between notes.

Steps to reproduce

  • Write a note in a certain language (for instance, your default selected language)
  • Write a note in another language
  • Switch between notes: spell checking is correct for the first note (because it is written in the default selected language), but not for the second

By the way, the “auto” language mode can not detect Occitan, and this is why I don’t use it.

Information about the application, settings and environment

Expand

QOwnNotes Debug Information

General Info

Current Date: jeu. avr. 11 13:43:26 2024
Version: 24.4.0
Build date: Apr 2 2024
Build number: 1090
Platform: linux (xcb)
Operating System: Ubuntu 23.10
Build architecture: x86_64
Current architecture: x86_64
Release: Launchpad PPA
Qt Version (build): 5.15.10
Qt Version (runtime): 5.15.10
Portable mode: no
Settings path / key: /home/jddev/.config/PBE/QOwnNotes.conf
Application database path: /home/jddev/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite
Application arguments: /usr/bin/QOwnNotes
Qt Debug: 0
Locale (system): fr_FR
Locale (interface): empty
Primary screen resolution: 1920x1080
Icon theme: breeze-dark-qownnotes
Notes in current note folder: 6
Calendar items: 0
Enabled scripts: 0
Database drivers: QSQLITE

Server Info

serverUrl: empty
appIsValid: no
notesPathExists: empty
connectionErrorMessage: empty

Spellchecking

Enabled: true
Selected language: fr_FR
Language codes: en_US, eo, fr, fr_BE, fr_CA, fr_CH, fr_FR, fr_LU, fr_MC, oc_FR
Language names: American English (United States), esperanto, français, français (Belgique), français canadien (Canada), français suisse (Suisse), français (France), français (Luxembourg), français (Monaco), oc_FR
Application dictionaries path: /home/jddev/.local/share/PBE/QOwnNotes/dicts

Note folders

currentNoteFolderId: 1

Note folder par défaut

id: 1
isCurrent: yes
activeTagId: -1
localPath: /home/jddev/Documents/Notes
remotePath: Notes
cloudConnectionId: 1
isShowSubfolders: yes
isUseGit: yes
allowDifferentNoteFileName: no
activeNoteSubFolder name: (there is sensitive data here)
database file: /home/jddev/Documents/Notes/notes.sqlite

Cloud connections

Cloud connection Par défaut

id: 1
isCurrent: yes
serverUrl: empty
username: empty
accountId: empty

Enabled scripts

Settings

AboutDialog/geometry (QByteArray): <binary data>
ActiveNoteHistoryItem (NoteHistoryItem): <binary data>
Debug/fakeOldVersionNumber (QString): false
Debug/fileLogging (QString): false
Editor/CurrentSchemaKey (QString): EditorColorSchema-cdbf28fc-1ddc-4d13-bb21-6a4043316a2f
Editor/autoBracketClosing (QString): true
Editor/autoBracketRemoval (QString): true
Editor/disableCursorBlinking (QString): false
Editor/editorWidthInDFMOnly (QString): true
Editor/highlightCurrentLine (QString): true
Editor/indentSize (QString): 4
Editor/removeTrailingSpaces (QString): false
Editor/showLineNumbers (QString): false
Editor/useTabIndent (QString): false
Editor/vimMode (QString): false
IssueAssistantDialog/geometry (QByteArray): <binary data>
LastUpdateCheck (QDateTime): 2024-04-11T13:35:18.134
LocalTrashDialog/geometry (QByteArray): <binary data>
LogWidget/criticalLog (bool): true
LogWidget/debugLog (bool): true
LogWidget/fatalLog (bool): true
LogWidget/infoLog (bool): true
LogWidget/scriptingLog (bool): true
LogWidget/statusLog (bool): true
LogWidget/warningLog (bool): true
MainWindow/geometry (QByteArray): <binary data>
MainWindow/mainToolBar.iconSize (QString): 24
MainWindow/menuBarGeometry (QByteArray): <binary data>
MainWindow/noteSubFolderTreeWidgetExpandState-1 (QStringList): (there is sensitive data here)
MainWindow/noteTextEdit.code.font (QString): monospace,11,-1,2,50,0,0,0,0,0
MainWindow/noteTextEdit.font (QString): Ubuntu,11,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.code.font (QString): monospace,11,-1,2,50,0,0,0,0,0
MainWindow/noteTextView.font (QString): Ubuntu,11,-1,5,50,0,0,0,0,0
MainWindow/noteTextView.ignoreCodeFontSize (QString): true
MainWindow/noteTextView.refreshDebounceTime (QString): 600
MainWindow/noteTextView.rtl (QString): false
MainWindow/noteTextView.underline (QString): true
MainWindow/noteTextView.useEditorStyles (QString): true
MainWindow/noteTextView.useInternalExportStyling (QString): true
MainWindow/showNotesFromAllNoteSubFolders (QString): false
NoteDialog/geometry (QByteArray): <binary data>
NoteFolder-1/NoteTabNameList (QString): (there is sensitive data here)
NoteFolder-1/NoteTabStickinessList: empty
NoteFolder-1/NoteTabSubFolderPathDataList (QString): (there is sensitive data here)
NoteFolder-1/allowDifferentNoteFileName (QString): false
NoteHistory-1 (QVariantList): <variant list with 19 item(s)>
NoteHistoryCurrentIndex-1 (QString): 18
PiwikClientId (QString): <hidden>
ScriptRepositoryDialog/geometry (QByteArray): <binary data>
ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data>
SearchEngineId (QString): 2
SettingsDialog/geometry (QByteArray): <binary data>
SettingsDialog/mainSplitterState (QByteArray): <binary data>
ShowSystemTray (QString): false
StartHidden (QString): false
UpdateDialog/geometry (QByteArray): <binary data>
WelcomeDialog/geometry (QByteArray): <binary data>
acceptAllExternalModifications (QString): false
allowNoteEditing (bool): true
allowOnlyOneAppInstance (QString): true
appMetrics/disableAppHeartbeat (QString): false
appMetrics/disableTracking (QString): true
appMetrics/notificationShown (QString): true
autoReadOnlyMode (QString): false
autoReadOnlyModeTimeout (QString): 30
automaticNoteFolderDatabaseClosing (QString): false
checkSpelling (bool): true
closeTodoListAfterSave (QString): false
cryptoKey (QString): <hidden>
currentNoteFolderId (QString): 1
currentWorkspace (QString): initial
cursorWidth (QString): 1
darkMode (QString): true
darkModeColors (QString): true
darkModeIconTheme (QString): true
darkModeTrayIcon (QString): true
defaultNoteFileExtension (QString): md
demoNotesCreated (QString): true
disableAutomaticUpdateDialog (QString): true
disableSavedSearchesAutoCompletion (QString): false
dockWasInitializedOnce (QString): true
enableNoteTree (QString): true
enableSocketServer (QString): true
enableWebAppSupport (QString): false
externalEditorPath (QString): empty
fullyHighlightedBlockquotes (QString): false
gitCommitInterval (QString): 120
gitExecutablePath (QString): empty
gitLogCommand (QString): empty
guiFirstRunInit (bool): true
ignoreAllExternalModifications (QString): false
ignoreAllExternalNoteFolderChanges (QString): false
ignoreNoteSubFolders (QString): ^\.
ignoredNoteFiles (QString): empty
imageScaleDown (QString): false
imageScaleDownMaximumHeight (QString): 1024
imageScaleDownMaximumWidth (QString): 1024
initialLayoutIdentifier (QString): full
insertTimeFormat (QString): empty
interfaceFontSize (QString): 11
interfaceLanguage (QString): empty
internalIconTheme (QString): false
itemHeight (QString): 17
legacyLinking (QString): false
localTrash/autoCleanupDays (QString): 30
localTrash/autoCleanupEnabled (QString): true
localTrash/supportEnabled (QString): true
localTrashSplitterSizes (QByteArray): <binary data>
markdownHighlightingEnabled (QString): true
navigationPanelAutoSelect (QString): true
navigationPanelHideSearch (QString): false
networking/ignoreSSLErrors (QString): true
networking/proxyType (QString): 2
newNoteAskHeadline (QString): false
noteEditIsCentralWidget (QString): true
noteFileExtensionList (QStringList): md, txt
noteListPreview (QString): false
noteSaveIntervalTime (QString): 10
noteSubfoldersPanelDisplayAsFullTree (QString): true
noteSubfoldersPanelHideSearch (QString): false
noteSubfoldersPanelOrder (QString): 0
noteSubfoldersPanelShowFullPath (QString): false
noteSubfoldersPanelShowNotesRecursively (QString): false
noteSubfoldersPanelShowRootFolderName (QString): true
noteSubfoldersPanelSort (QString): 0
noteSubfoldersPanelTabsUnsetAllNotesSelection (QString): false
notesPanelOrder (QString): 0
notesPanelSort (QString): 1
notesPath (QString): /home/jddev/Documents/Notes
notifyAllExternalModifications (QString): false
overrideInterfaceFontSize (QString): false
ownCloud/supportEnabled (QString): false
ownCloud/todoCalendarBackend (QString): 3
ownCloud/todoCalendarCalDAVPassword (QString): <hidden>
ownCloud/todoCalendarCalDAVServerUrl (QString): empty
ownCloud/todoCalendarCalDAVUsername (QString): empty
ownCloud/todoCalendarCloudConnectionId (QString): 1
ownCloud/todoCalendarDisplayNameList: empty
ownCloud/todoCalendarEnabledList: empty
ownCloud/todoCalendarEnabledUrlList: empty
ownCloud/todoCalendarUrlList: empty
restoreCursorPosition (QString): true
restoreLastNoteAtStartup (QString): true
restoreNoteTabs (QString): true
savedSearches/noteFolder-1 (QStringList): Note 2024-04-10T15.15.58, Note 2024-04-08T13.17.42, Note 2024-04-08T13.17.21, Note 2024-04-08T13.02.18, Note 2024-04-08T13.00.27, Note 2024-04-08T12.58.45, Note 2024-01-21T15.53.55, Note 2024-01-21T15.45.20, Note 2024-01-21T15.44.56, Note 2024-01-21T15.42.18
showMatches (QString): true
showMenuBar (bool): true
showStatusBar (bool): true
spellCheckLanguage (QString): auto
startInReadOnlyMode (QString): false
systemIconTheme (QString): false
taggingShowNotesRecursively (QString): false
tagsPanelHideNoteCount (QString): false
tagsPanelHideSearch (QString): false
tagsPanelOrder (QString): 0
tagsPanelSort (QString): 0
todoCalendarSupport (QString): true
toolbar/1/items (QStringList): action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionShow_Todo_List
toolbar/1/name (QString): mainToolBar
toolbar/1/title (QString): barre d'outils principale
toolbar/2/items (QStringList): actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote
toolbar/2/name (QString): formattingToolbar
toolbar/2/title (QString): barre d'outils de formatage
toolbar/3/items (QStringList): actionInsert_text_link, actionInsert_image, actionInsert_current_time
toolbar/3/name (QString): insertingToolbar
toolbar/3/title (QString): barre d'outils d'insertion
toolbar/4/items (QStringList): action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note
toolbar/4/name (QString): encryptionToolbar
toolbar/4/title (QString): barre d'outils de chiffrement
toolbar/5/items (QStringList): actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size
toolbar/5/name (QString): windowToolbar
toolbar/5/title (QString): barre d'outils de fenêtre
toolbar/6/items (QString): action_Quit
toolbar/6/name (QString): quitToolbar
toolbar/6/title (QString): quitter la barre d’outils
toolbar/size (QString): 6
useNoteFolderButtons (QString): false
useUNIXNewline (QString): false
webAppClientService/serverUrl (QString): wss://app.qownnotes.org
webAppClientService/token (QString): <hidden>
webSocketServerService/bookmarksNoteName (QString): Bookmarks
webSocketServerService/bookmarksTag (QString): bookmarks
webSocketServerService/commandSnippetsNoteName (QString): Commands
webSocketServerService/commandSnippetsTag (QString): commands
webSocketServerService/port (QString): 22222
workspace-initial/name (QString): Complet
workspace-initial/noteSubFolderDockWidgetVisible (QString): true
workspace-initial/windowState (QByteArray): <binary data>
workspaces (QString): initial

System environment

HOME: /home/jddev
LANG: fr_FR.UTF-8
LANGUAGE: fr_FR:fr_CA:en_GB:en
LC_ADDRESS: fr_FR.UTF-8
LC_IDENTIFICATION: fr_FR.UTF-8
LC_MEASUREMENT: fr_FR.UTF-8
LC_MONETARY: fr_FR.UTF-8
LC_NAME: fr_FR.UTF-8
LC_NUMERIC: fr_FR.UTF-8
LC_PAPER: fr_FR.UTF-8
LC_TELEPHONE: fr_FR.UTF-8
LC_TIME: fr_FR.UTF-8
LOGNAME: jddev
PATH: /home/jddev/.cargo/bin:/home/jddev/.local/bin:/home/jddev/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/snap/bin
SHELL: /bin/zsh
SYSTEMD_EXEC_PID: 2836
USER: jddev
XDG_RUNTIME_DIR: /run/user/1000
GTK_MODULES: gail:atk-bridge
QT_ACCESSIBILITY: 1
QTWEBENGINE_DICTIONARIES_PATH: /usr/share/hunspell-bdic/
XDG_DATA_DIRS: /usr/share/ubuntu-xorg:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
DEBUGINFOD_URLS: https://debuginfod.ubuntu.com
DESKTOP_SESSION: ubuntu-xorg
DISPLAY: :0
GDMSESSION: ubuntu-xorg
GNOME_DESKTOP_SESSION_ID: this-is-deprecated
GNOME_SHELL_SESSION_MODE: ubuntu
GPG_AGENT_INFO: /run/user/1000/gnupg/S.gpg-agent:0:1
IM_CONFIG_PHASE: 1
LIBVIRT_DEFAULT_URI: qemu:///system
PAPERSIZE: a4
PWD: /home/jddev
QT_IM_MODULE: ibus
QT_QPA_PLATFORM: xcb
SESSION_MANAGER: local/jdbuntu:@/tmp/.ICE-unix/2815,unix/jdbuntu:/tmp/.ICE-unix/2815
SHLVL: 0
SSH_AUTH_SOCK: /run/user/1000/keyring/ssh
USERNAME: jddev
WINDOWPATH: 2
XAUTHORITY: /run/user/1000/gdm/Xauthority
XDG_CACHE_HOME: /home/jddev/.cache
XDG_CONFIG_DIRS: /etc/xdg/xdg-ubuntu-xorg:/etc/xdg
XDG_CONFIG_HOME: /home/jddev/.config
XDG_CURRENT_DESKTOP: ubuntu:GNOME
XDG_DATA_HOME: /home/jddev/.local/share
XDG_MENU_PREFIX: gnome-
XDG_SESSION_CLASS: user
XDG_SESSION_DESKTOP: ubuntu-xorg
XDG_SESSION_TYPE: x11
XMODIFIERS: @im=ibus
_: /usr/bin/dbus-update-activation-environment
MANAGERPID: 2408
INVOCATION_ID: 912a631fc1e2455591c6911384cc2590
JOURNAL_STREAM: 8:37600
GJS_DEBUG_OUTPUT: stderr
GJS_DEBUG_TOPICS: JS ERROR;JS LOG
GIO_LAUNCHED_DESKTOP_FILE: /usr/share/applications/PBE.QOwnNotes.desktop
XDG_ACTIVATION_TOKEN: gnome-shell/QOwnNotes/2836-4-jdbuntu_TIME1672576
GIO_LAUNCHED_DESKTOP_FILE_PID: 7004

@pbek
Copy link
Owner

pbek commented Apr 11, 2024

Hm, I don't think this will happen anytime soon, since there is not even a persistent note database to store such settings and note files can change outside QOwnNotes...

@pbek
Copy link
Owner

pbek commented Apr 11, 2024

In theory, you can find out the name of the action in the menu and call it with https://www.qownnotes.org/scripting/methods-and-objects.html#triggering-a-menu-action directly to change the language for a note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants