pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.59k stars 407 forks source link

Shorcuts CTRL+begin CTRL+end to move cursor to begin and end of document #2709

Closed Baptistou closed 1 year ago

Baptistou commented 1 year ago

Expected behaviour

When I press CTRL+begin or CTRL+end, I expect to go to begin and end of document like in other editors, for example Notepad++, Word, Excel, PowerPoint, and even web browsers (Opera, Firefox, Chrome...).

Actual behaviour

When I press CTRL+begin or CTRL+end, it moves the cursor to begin and end of line instead.

Steps to reproduce

  1. Put the cursor in the middle of a document
  2. On the keyboard, press CTRL+begin or CTRL+end

Output from the debug section in the settings dialog

Expand QOwnNotes Debug Information =========================== ## General Info **Current Date**: `ven. janv. 27 19:05:33 2023` **Version**: `22.11.2` **Build date**: `Nov 3 2022` **Build number**: `991` **Platform**: `windows` **Operating System**: `Windows 7 Version 6.1 (Build 7601: SP 1)` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `\HKEY_CURRENT_USER\Software\PBE\QOwnNotes` **Application database path**: `C:\Users\**********\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite` **Application arguments**: `C:\**********\Programmes\QOwnNotes\QOwnNotes.exe` **Qt Debug**: `0` **Locale (system)**: `fr_FR` **Locale (interface)**: *empty* **Primary screen resolution**: `1366x768` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `20` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info **serverUrl**: `https://**********` **appIsValid**: `yes` **notesPathExists**: `yes` **serverVersion**: `24.0.8.2` **appVersion**: *empty* ## Spellchecking **Enabled**: `false` **Selected language**: *empty* **Language codes**: *empty* **Language names**: *empty* **Application dictionaries path**: `C:\Users\**********\AppData\Roaming\PBE\QOwnNotes\dicts` ## Note folders **currentNoteFolderId**: `1` ### Note folder `Notes` **id**: `1` **isCurrent**: `yes` **activeTagId**: `-1` **localPath**: `C:\**********\Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `yes` **activeNoteSubFolder name**: *empty* **database file**: `C:\**********\Notes\notes.sqlite` ## Cloud connections ### Cloud connection `**********` **id**: `1` **isCurrent**: `yes` **serverUrl**: `https://**********` **username**: `**********@**********` **accountId**: *empty* ## Enabled scripts ## Settings **AboutDialog/geometry** (QByteArray): `` **ActiveNoteHistoryItem** (NoteHistoryItem): `` **Debug/fakeOldVersionNumber** (QString): `false` **Debug/fileLogging** (QString): `false` **DistractionFreeMode/editorWidthMode** (int): `1` **DistractionFreeMode/isEnabled** (QString): `false` **DistractionFreeMode/menuBarGeometry** (QByteArray): `` **DistractionFreeMode/menuBarHeight** (int): `21` **DistractionFreeMode/menuBarVisible** (QString): `true` **DistractionFreeMode/windowState** (QByteArray): `` **Editor/CurrentSchemaKey** (QString): `EditorColorSchema-cdbf28fc-1ddc-4d13-bb21-6a4043316a2f` **Editor/autoBracketClosing** (QString): `false` **Editor/autoBracketRemoval** (QString): `false` **Editor/centerCursor** (QString): `false` **Editor/disableCursorBlinking** (QString): `false` **Editor/editorWidthInDFMOnly** (QString): `true` **Editor/highlightCurrentLine** (QString): `true` **Editor/indentSize** (int): `4` **Editor/removeTrailingSpaces** (QString): `false` **Editor/showLineNumbers** (QString): `true` **Editor/useTabIndent** (QString): `true` **Editor/vimMode** (QString): `false` **FileDialog/LastPath** (QString): `C:/Users/**********/Downloads` **FileDialog/LastPath-SettingsExport** (QString): `C:/Users/**********/Downloads` **IssueAssistantDialog/geometry** (QByteArray): `` **LastUpdateCheck** (QDateTime): `2023-01-27T19:05:03.836` **LinkDialog/geometry** (QByteArray): `` **LocalTrashDialog/geometry** (QByteArray): `` **MainWindow/geometry** (QByteArray): `` **MainWindow/mainToolBar.iconSize** (int): `24` **MainWindow/menuBarGeometry** (QByteArray): `` **MainWindow/noteTextEdit.code.font** (QString): `Courier New,9,-1,2,50,0,0,0,0,0` **MainWindow/noteTextEdit.font** (QString): `Courier New,9,-1,5,50,0,0,0,0,0,Normal` **MainWindow/noteTextView.code.font** (QString): `Courier New,9,-1,2,50,0,0,0,0,0` **MainWindow/noteTextView.font** (QString): `Courier New,9,-1,5,50,0,0,0,0,0,Normal` **MainWindow/noteTextView.ignoreCodeFontSize** (QString): `true` **MainWindow/noteTextView.rtl** (QString): `false` **MainWindow/noteTextView.underline** (QString): `true` **MainWindow/noteTextView.useEditorStyles** (QString): `true` **MainWindow/noteTextView.useInternalExportStyling** (QString): `true` **MainWindow/showNotesFromAllNoteSubFolders** (QString): `true` **NoteDialog/geometry** (QByteArray): `` **NoteDialog/tabWidgetIndex** (int): `0` **NoteFolder-1/NoteTabNameList** (QStringList): `TODO` **NoteFolder-1/NoteTabStickinessList** (QStringList): *empty* **NoteFolder-1/NoteTabSubFolderPathDataList** (QStringList): *empty* **NoteFolder-1/allowDifferentNoteFileName** (QString): `true` **NoteHistory-1** (QVariantList): `` **NoteHistoryCurrentIndex-1** (int): `18` **PiwikClientId** (QString): `` **ScriptRepositoryDialog/mainSplitterState** (QByteArray): `` **SearchEngineId** (int): `0` **SettingsDialog/geometry** (QByteArray): `` **SettingsDialog/mainSplitterState** (QByteArray): `` **ShowSystemTray** (QString): `false` **StartHidden** (QString): `false` **TableDialog/geometry** (QByteArray): `` **TrashDialog/geometry** (QByteArray): `` **UpdateDialog/geometry** (QByteArray): `` **VersionDialog/geometry** (QByteArray): `` **WelcomeDialog/geometry** (QByteArray): `` **acceptAllExternalModifications** (QString): `false` **allowNoteEditing** (QString): `true` **allowOnlyOneAppInstance** (QString): `true` **appMetrics/disableAppHeartbeat** (QString): `false` **appMetrics/disableTracking** (QString): `false` **appMetrics/notificationShown** (QString): `true` **automaticNoteFolderDatabaseClosing** (QString): `false` **checkSpelling** (QString): `false` **closeTodoListAfterSave** (QString): `false` **cryptoKey** (qlonglong): `` **currentNoteFolderId** (int): `1` **currentWorkspace** (QString): `EnMVYxeCyywH` **cursorWidth** (int): `1` **darkMode** (QString): `true` **darkModeColors** (QString): `true` **darkModeIconTheme** (QString): `true` **darkModeTrayIcon** (QString): `false` **defaultNoteFileExtension** (QString): `md` **disableAutomaticUpdateDialog** (QString): `true` **disableSavedSearchesAutoCompletion** (QString): `false` **dockWasInitializedOnce** (QString): `true` **enableNoteTree** (QString): `false` **enableSocketServer** (QString): `true` **enableWebAppSupport** (QString): `false` **externalEditorPath** (QString): *empty* **fullyHighlightedBlockquotes** (QString): `false` **gitCommitInterval** (int): `30` **gitExecutablePath** (QString): *empty* **gitLogCommand** (QString): *empty* **guiFirstRunInit** (QString): `true` **ignoreAllExternalModifications** (QString): `false` **ignoreAllExternalNoteFolderChanges** (QString): `false` **ignoreNoteSubFolders** (QString): `^\.` **imageScaleDown** (QString): `false` **imageScaleDownMaximumHeight** (int): `1024` **imageScaleDownMaximumWidth** (int): `1024` **initialLayoutIdentifier** (QString): `full` **insertTimeFormat** (QString): `yyyy-MM-dd HH:mm` **interfaceFontSize** (int): `11` **interfaceLanguage** (QString): *empty* **internalIconTheme** (QString): `false` **itemHeight** (int): `15` **legacyLinking** (QString): `false` **localTrash/autoCleanupDays** (int): `30` **localTrash/autoCleanupEnabled** (QString): `true` **localTrash/supportEnabled** (QString): `false` **localTrashSplitterSizes** (QByteArray): `` **markdownHighlightingEnabled** (QString): `true` **navigationPanelHideSearch** (QString): `false` **networking/ignoreSSLErrors** (QString): `true` **networking/proxyType** (int): `2` **newNoteAskHeadline** (QString): `true` **noteEditIsCentralWidget** (QString): `true` **noteFileExtensionList** (QStringList): `md, txt` **noteListPreview** (QString): `false` **noteSaveIntervalTime** (int): `10` **noteSubfoldersPanelDisplayAsFullTree** (QString): `true` **noteSubfoldersPanelHideSearch** (QString): `false` **noteSubfoldersPanelOrder** (int): `0` **noteSubfoldersPanelShowFullPath** (QString): `false` **noteSubfoldersPanelShowNotesRecursively** (QString): `false` **noteSubfoldersPanelShowRootFolderName** (QString): `true` **noteSubfoldersPanelSort** (int): `0` **notesPanelOrder** (int): `0` **notesPanelSort** (int): `1` **notesPath** (QString): `C:/**********/Notes` **notifyAllExternalModifications** (QString): `false` **overrideInterfaceFontSize** (QString): `false` **ownCloud/supportEnabled** (QString): `true` **ownCloud/todoCalendarBackend** (int): `3` **ownCloud/todoCalendarCalDAVPassword** (QString): `` **ownCloud/todoCalendarCalDAVServerUrl** (QString): *empty* **ownCloud/todoCalendarCalDAVUsername** (QString): *empty* **ownCloud/todoCalendarCloudConnectionId** (int): `1` **ownCloud/todoCalendarDisplayNameList** (QStringList): *empty* **ownCloud/todoCalendarEnabledList** (QStringList): *empty* **ownCloud/todoCalendarEnabledUrlList** (QStringList): *empty* **ownCloud/todoCalendarUrlList** (QStringList): *empty* **ownCloudInfo/appIsValid** (QString): `true` **ownCloudInfo/connectionErrorMessage** (QString): `Erreur inconnue` **ownCloudInfo/notesPathExistsText** (QString): `yes` **ownCloudInfo/serverVersion** (QString): `24.0.8.2` **previousWorkspace** (QString): `uQVWHtX3CzHS` **restoreCursorPosition** (QString): `true` **restoreLastNoteAtStartup** (QString): `true` **restoreNoteTabs** (QString): `true` **savedSearches/noteFolder-1** (QStringList): `Test, Note 2021-05-16T12.53.41, Note 2021-05-16T12.25.10` **showMatches** (QString): `true` **showMenuBar** (QString): `true` **showStatusBar** (QString): `true` **systemIconTheme** (QString): `false` **tagWasAddedToNote** (QString): `true` **taggingShowNotesRecursively** (QString): `false` **tagsPanelHideNoteCount** (QString): `false` **tagsPanelHideSearch** (QString): `false` **tagsPanelOrder** (int): `0` **tagsPanelSort** (int): `0` **todoCalendarSupport** (QString): `false` **toolbar/1/items** (QStringList): `action_New_note, actionShow_note_in_file_manager, action_Open_note_in_external_editor, actionAllow_note_editing, actionSave_modified_notes, action_Print_note_markdown, action_Remove_note, , action_Find_note, action_Find_text_in_note, actionReplace_in_current_note, actionFind_action, , action_Reload_note_folder, actionShare_note, actionShow_versions, actionShow_trash` **toolbar/1/name** (QString): `mainToolBar` **toolbar/1/title** (QString): `barre d'outils principale` **toolbar/2/items** (QStringList): `actionFormat_text_bold, actionFormat_text_italic, actionFormat_text_underline, actionStrike_out_text, actionToggle_text_case` **toolbar/2/name** (QString): `formattingToolbar` **toolbar/2/title** (QString): `barre d'outils de formatage` **toolbar/3/items** (QStringList): `actionInsert_text_link, actionInsert_note_link, actionInsert_image, actionInsert_attachment, actionInsert_headline_from_note_filename, actionInsert_current_time, actionInsert_table, actionInsert_block_quote, actionInsert_code_block` **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** (QStringList): `action_Quit` **toolbar/6/name** (QString): `quitToolbar` **toolbar/6/title** (QString): `quitter la barre d’outils` **toolbar/size** (int): `6` **trashSplitterSizes** (QByteArray): `` **useNoteFolderButtons** (QString): `false` **useUNIXNewline** (QString): `false` **versionSplitterSizes** (QByteArray): `` **webAppClientService/serverUrl** (QString): `wss://app.qownnotes.org` **webAppClientService/token** (QString): `` **webSocketServerService/bookmarksNoteName** (QString): `Bookmarks` **webSocketServerService/bookmarksTag** (QString): `bookmarks` **webSocketServerService/port** (int): `22222` **workspace-EnMVYxeCyywH/name** (QString): `Edit` **workspace-EnMVYxeCyywH/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-EnMVYxeCyywH/windowState** (QByteArray): `` **workspace-uQVWHtX3CzHS/name** (QString): `Preview` **workspace-uQVWHtX3CzHS/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-uQVWHtX3CzHS/windowState** (QByteArray): `` **workspaces** (QStringList): `EnMVYxeCyywH, uQVWHtX3CzHS` ## System environment **ALLUSERSPROFILE**: `C:\ProgramData` **AMDAPPSDKROOT**: `C:\Program Files (x86)\AMD APP\` **APPDATA**: `C:\Users\**********\AppData\Roaming` **CommonProgramFiles**: `C:\Program Files\Common Files` **CommonProgramFiles(x86)**: `C:\Program Files (x86)\Common Files` **CommonProgramW6432**: `C:\Program Files\Common Files` **COMPUTERNAME**: `HP**********` **ComSpec**: `C:\Windows\system32\cmd.exe` **FP_NO_HOST_CHECK**: `NO` **HOMEDRIVE**: `C:` **HOMEPATH**: `\Users\**********` **LOCALAPPDATA**: `C:\Users\**********\AppData\Local` **LOGONSERVER**: `\\HP**********` **NUMBER_OF_PROCESSORS**: `4` **OnlineServices**: `Online Services` **OS**: `Windows_NT` **Path**: `C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\MinGW\bin;C:\Program Files\Java\jdk1.8.0_271\bin;C:\Program Files\MKVToolNix;C:\**********\Scripts;C:\Program Files\Git\cmd;C:\Users\**********\AppData\Local\GitHubDesktop\bin` **PATHEXT**: `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC` **PCBRAND**: `Pavilion` **Platform**: `MCD` **PROCESSOR_ARCHITECTURE**: `AMD64` **PROCESSOR_IDENTIFIER**: `AMD64 Family 18 Model 1 Stepping 0, AuthenticAMD` **PROCESSOR_LEVEL**: `18` **PROCESSOR_REVISION**: `0100` **ProgramData**: `C:\ProgramData` **ProgramFiles**: `C:\Program Files` **ProgramFiles(x86)**: `C:\Program Files (x86)` **ProgramW6432**: `C:\Program Files` **PSModulePath**: `C:\Windows\system32\WindowsPowerShell\v1.0\Modules\` **PUBLIC**: `C:\Users\Public` **SESSIONNAME**: `Console` **SystemDrive**: `C:` **SystemRoot**: `C:\Windows` **TEMP**: `C:\Users\**********\AppData\Local\Temp` **TMP**: `C:\Users\**********\AppData\Local\Temp` **USERDOMAIN**: `HP**********` **USERNAME**: `**********` **USERPROFILE**: `C:\Users\**********` **windir**: `C:\Windows` **windows_tracing_flags**: `3` **windows_tracing_logfile**: `C:\BVTBin\Tests\installpackage\csilogfile.log`

Relevant log output in the Log panel

Expand
pbek commented 1 year ago

This already works the way you describe it on Linux/Windows. Can you please post the output from the debug settings that you can copy when you get into the settings dialog in QOwnNotes and head over to the Debug section of it.

Baptistou commented 1 year ago

Sorry for the delay. I added the debug info to the issue. Then, I updated QOwnNotes from version 22.11 to 23.1 and I was not able to reproduce the issue. So I think we can close it as resolved.