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

[I] qc misslead by first title #2526

Open euneuber opened 2 years ago

euneuber commented 2 years ago

Expected behaviour

title should be "Test 2"

Actual behaviour

title is "Test 1"

Steps to reproduce

Note 2022-05-04T10.44.18
========================

- `date` aktuelles Datum

## Test 1

- `who` Wer?

## Test 2

```bash
ls
```

Relevant log output in the Log panel

Expand ``` [10:52:02] [debug] updatePanelMenu - 'updatePanelMenu' ```

Information about the application, settings and environment

Expand QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Mi. Mai 4 10:52:12 2022` **Version**: `22.5.0` **Build date**: `May 2 2022` **Build number**: `963` **Platform**: `linux` **Operating System**: `openSUSE Tumbleweed` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `OBS` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `/home/eugen/.config/PBE/QOwnNotes.conf` **Application database path**: `/home/eugen/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite` **Application arguments**: `/usr/bin/QOwnNotes` **Qt Debug**: `0` **Locale (system)**: `de_DE` **Locale (interface)**: *empty* **Primary screen resolution**: `1536x864` **Screen resolution(s)**: `1536x864, 3072x1728, 3072x1728` **Icon theme**: `breeze` **Notes in current note folder**: `101` **Calendar items**: `11` **Enabled scripts**: `0` ## Server Info **serverUrl**: `https://nextcloud.lin-serv.at` **appIsValid**: `yes` **notesPathExists**: `yes` **serverVersion**: `22.2.7.1` **appVersion**: *empty* ## Spellchecking **Enabled**: `true` **Selected language**: `auto` **Language codes**: `de_DE, en_US` **Language names**: `Deutsch (Deutschland), American English (United States)` **Application dictionaries path**: `/home/eugen/.local/share/PBE/QOwnNotes/dicts` ## Note folders **currentNoteFolderId**: `4` ### Note folder `Javascript` **id**: `2` **isCurrent**: `no` **activeTagId**: `-1` **localPath**: `/home/eugen/Nextcloud/Notes/Javascript` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/home/eugen/Nextcloud/Notes/Javascript/notes.sqlite` ### Note folder `Nextcloude Notes` **id**: `4` **isCurrent**: `yes` **activeTagId**: `-1` **localPath**: `/home/eugen/Nextcloud/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/home/eugen/Nextcloud/Notes/notes.sqlite` ### Note folder `Neuer Ordner` **id**: `5` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `/home/eugen/Nextcloud/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `/home/eugen/Nextcloud/Notes/notes.sqlite` ## Cloud connections ### Cloud connection `lin-serv.at` **id**: `1` **isCurrent**: `yes` **serverUrl**: `https://nextcloud.lin-serv.at` **username**: `eugen` **accountId**: *empty* ## Enabled scripts ## Settings **AboutDialog/geometry** (QByteArray): `` **ActiveNoteHistoryItem** (NoteHistoryItem): `` **Debug/fakeOldVersionNumber** (QString): `false` **Debug/fileLogging** (QString): `false` **Editor/CurrentSchemaKey** (QString): `EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb` **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` **EvernoteImport/AttachmentImportCheckBoxChecked** (QString): `true` **EvernoteImport/ImageImportCheckBoxChecked** (QString): `true` **EvernoteImport/MetaDataUnCheckedList** (QStringList): `, ` **EvernoteImportDialog/geometry** (QByteArray): `` **FileDialog/LastPath** (QString): `/home/eugen/Downloads` **FileDialog/LastPath-ImportTextFiles** (QString): `/home/eugen/Downloads` **ImageDialog/disableCopying** (QString): `false` **ImageDialog/geometry** (QByteArray): `` **IssueAssistantDialog/geometry** (QByteArray): `` **LastUpdateCheck** (QDateTime): `2022-05-04T10:42:34.743` **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): `` **MainWindow/mainToolBar.iconSize** (QString): `22` **MainWindow/menuBarGeometry** (QByteArray): `` **MainWindow/noteTextEdit.code.font** (QString): `Hack,11,-1,5,50,0,0,0,0,0,Regular` **MainWindow/noteTextEdit.font** (QString): `Noto Sans,11,-1,5,50,0,0,0,0,0,Regular` **MainWindow/noteTextView.code.font** (QString): `Hack,13,-1,5,50,0,0,0,0,0,Regular` **MainWindow/noteTextView.font** (QString): `Noto Sans,13,-1,5,50,0,0,0,0,0,Regular` **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` **NoteDiffDialog/geometry** (QByteArray): `` **NoteFolder-2/NoteTabNameList** (QString): `Note 2019-09-11T15.25.54` **NoteFolder-2/NoteTabStickinessList**: *empty* **NoteFolder-2/NoteTabSubFolderPathDataList** (QString): *empty* **NoteFolder-2/allowDifferentNoteFileName** (QString): `false` **NoteFolder-4/NoteTabNameList** (QString): `TODO 2022-04` **NoteFolder-4/NoteTabStickinessList**: *empty* **NoteFolder-4/NoteTabSubFolderPathDataList** (QString): *empty* **NoteFolder-4/allowDifferentNoteFileName** (QString): `false` **NoteFolder-5/NoteTabNameList** (QString): `TODO 2021-12` **NoteFolder-5/NoteTabStickinessList**: *empty* **NoteFolder-5/NoteTabSubFolderPathDataList** (QString): *empty* **NoteHistory-2** (QVariantList): `` **NoteHistory-4** (QVariantList): `` **NoteHistory-5** (QVariantList): `` **NoteHistoryCurrentIndex-2** (QString): `6` **NoteHistoryCurrentIndex-4** (QString): `43` **NoteHistoryCurrentIndex-5** (QString): `10` **OrphanedImagesDialog/geometry** (QByteArray): `` **PasswordDialog/geometry** (QByteArray): `` **PiwikClientId** (QString): `` **ScriptRepositoryDialog/mainSplitterState** (QByteArray): `` **SearchEngineId** (QString): `2` **SettingsDialog/geometry** (QByteArray): `` **SettingsDialog/mainSplitterState** (QByteArray): `` **ShowSystemTray** (QString): `false` **StartHidden** (QString): `false` **UpdateDialog/geometry** (QByteArray): `` **WelcomeDialog/geometry** (QByteArray): `` **acceptAllExternalModifications** (QString): `false` **allowNoteEditing** (bool): `true` **allowOnlyOneAppInstance** (QString): `true` **appMetrics/disableAppHeartbeat** (QString): `false` **appMetrics/disableTracking** (QString): `false` **appMetrics/notificationShown** (QString): `true` **automaticNoteFolderDatabaseClosing** (QString): `false` **checkSpelling** (bool): `true` **closeTodoListAfterSave** (QString): `false` **cryptoKey** (QString): `` **currentNoteFolderId** (QString): `4` **currentWorkspace** (QString): `initial` **cursorWidth** (QString): `1` **darkMode** (QString): `false` **darkModeColors** (QString): `false` **darkModeIconTheme** (QString): `false` **darkModeTrayIcon** (QString): `false` **defaultNoteFileExtension** (QString): `md` **demoNotesCreated** (QString): `true` **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** (QString): `30` **gitExecutablePath** (QString): *empty* **gitLogCommand** (QString): *empty* **guiFirstRunInit** (bool): `true` **ignoreAllExternalModifications** (QString): `false` **ignoreAllExternalNoteFolderChanges** (QString): `false` **ignoreNoteSubFolders** (QString): `^\.` **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): `24` **legacyLinking** (QString): `false` **localTrash/autoCleanupDays** (QString): `30` **localTrash/autoCleanupEnabled** (QString): `true` **localTrash/supportEnabled** (QString): `true` **markdownHighlightingEnabled** (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` **notesPanelOrder** (QString): `0` **notesPanelSort** (QString): `1` **notesPath** (QString): `/home/eugen/Nextcloud/Notes` **notifyAllExternalModifications** (QString): `false` **overrideInterfaceFontSize** (QString): `false` **ownCloud/supportEnabled** (QString): `true` **ownCloud/todoCalendarBackend** (QString): `3` **ownCloud/todoCalendarCalDAVPassword** (QString): `` **ownCloud/todoCalendarCalDAVServerUrl** (QString): *empty* **ownCloud/todoCalendarCalDAVUsername** (QString): *empty* **ownCloud/todoCalendarCloudConnectionId** (QString): `1` **ownCloud/todoCalendarDisplayNameList** (QStringList): `Persönlich, Deck: Personal, Deck: lin-serv.at, Deck: Books` **ownCloud/todoCalendarEnabledList** (QStringList): `Persönlich, Deck: Personal, Deck: lin-serv.at, Deck: Books` **ownCloud/todoCalendarEnabledUrlList** (QStringList): `https://nextcloud.lin-serv.at/remote.php/dav/calendars/eugen/pers%c3%b6nlich/, https://nextcloud.lin-serv.at/remote.php/dav/calendars/eugen/app-generated--deck--board-1/, https://nextcloud.lin-serv.at/remote.php/dav/calendars/eugen/app-generated--deck--board-2/, https://nextcloud.lin-serv.at/remote.php/dav/calendars/eugen/app-generated--deck--board-3/` **ownCloud/todoCalendarUrlList** (QStringList): `https://nextcloud.lin-serv.at/remote.php/dav/calendars/eugen/pers%c3%b6nlich/, https://nextcloud.lin-serv.at/remote.php/dav/calendars/eugen/app-generated--deck--board-1/, https://nextcloud.lin-serv.at/remote.php/dav/calendars/eugen/app-generated--deck--board-2/, https://nextcloud.lin-serv.at/remote.php/dav/calendars/eugen/app-generated--deck--board-3/` **ownCloudInfo/appIsValid** (bool): `true` **ownCloudInfo/connectionErrorMessage** (QString): `Unbekannter Fehler` **ownCloudInfo/notesPathExistsText** (QString): `yes` **ownCloudInfo/serverVersion** (QString): `22.2.7.1` **recentNoteFolders** (QStringList): `/home/eugen/Nextcloud/Notes/Javascript, /home/eugen/Dokumente/Notizen` **restoreCursorPosition** (QString): `true` **restoreLastNoteAtStartup** (QString): `true` **restoreNoteTabs** (QString): `true` **savedSearches/noteFolder-2** (QStringList): `Note 2019-12-11T14.10.11, Note Eugen 2019-11-11, Note 2019-09-11T15.25.54` **savedSearches/noteFolder-4** (QStringList): `Note 2022-05-04T10.44.18, Note 2022-04-27T08.32.47, Note 2022-01-26T07.41.37, Note 2021-12-17T10.36.43, Note 2021-11-24T20.46.19, Note 2020-10-07T09.07.11, Note 2020-09-07T14.05.45, Note 2020-04-24T13.17.45, Note 2020-03-18T14.06.34` **savedSearches/noteFolder-5** (QString): `TODO 2021-12` **showMatches** (QString): `true` **showMenuBar** (bool): `true` **showStatusBar** (bool): `true` **spellCheckLanguage** (QString): `auto` **systemIconTheme** (QString): `false` **tagWasAddedToNote** (QString): `true` **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, ` **toolbar/1/name** (QString): `mainToolBar` **toolbar/1/title** (QString): `Hauptsymbolleiste` **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): `Formatierungs-Werkzeugleiste` **toolbar/3/items** (QStringList): `actionInsert_image, actionInsert_current_time` **toolbar/3/name** (QString): `insertingToolbar` **toolbar/3/title** (QString): `Einfügen-Werkzeugleiste` **toolbar/4/items** (QStringList): `action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note` **toolbar/4/name** (QString): `encryptionToolbar` **toolbar/4/title** (QString): `Verschlüsselung-Werkzeugleiste` **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): `Fenster-Werkzeugleiste` **toolbar/6/items** (QString): `action_Quit` **toolbar/6/name** (QString): `quitToolbar` **toolbar/6/title** (QString): `Beenden - Symbolleiste` **toolbar/size** (QString): `6` **useNoteFolderButtons** (QString): `false` **useUNIXNewline** (QString): `false` **webAppClientService/serverUrl** (QString): `wss://app.qownnotes.org` **webAppClientService/token** (QString): `` **webSocketServerService/bookmarksNoteName** (QString): `Bookmarks` **webSocketServerService/bookmarksTag** (QString): `bookmarks` **webSocketServerService/commandSnippetsTag** (QString): `commands` **webSocketServerService/port** (QString): `22222` **webSocketServerService/token** (QString): `` **workspace-initial/name** (QString): `Vollständig` **workspace-initial/noteSubFolderDockWidgetVisible** (QString): `true` **workspace-initial/windowState** (QByteArray): `` **workspaces** (QString): `initial` ## System environment **SHELL**: `/bin/bash` **SDK_HOME**: `/usr/lib64/jvm/java` **XDG_CONFIG_DIRS**: `/home/eugen/.config/kdedefaults:/etc/xdg:/usr/etc/xdg` **LESS**: `-M -I -R` **XDG_SESSION_PATH**: `/org/freedesktop/DisplayManager/Session1` **JDK_HOME**: `/usr/lib64/jvm/java` **GTK_IM_MODULE**: `ibus` **MACHTYPE**: `x86_64-suse-linux` **G_BROKEN_FILENAMES**: `1` **HISTSIZE**: `1000` **HOSTNAME**: `p52` **FROM_HEADER**: *empty* **MINICOM**: `-c on` **QT4_IM_MODULE**: `xim` **JAVA_ROOT**: `/usr/lib64/jvm/java` **JAVA_HOME**: `/usr/lib64/jvm/java` **AUDIODRIVER**: `pulseaudio` **JRE_HOME**: `/usr/lib64/jvm/java/jre` **SSH_AUTH_SOCK**: `/tmp/ssh-XXXXXXF6wyOV/agent.2839` **CPU**: `x86_64` **INPUT_METHOD**: `ibus` **JAVA_BINDIR**: `/usr/lib64/jvm/java/bin` **XMODIFIERS**: `@im=ibus` **DESKTOP_SESSION**: `/usr/share/xsessions/plasma5` **SSH_AGENT_PID**: `2841` **GPG_TTY**: `kein Terminal` **GTK_MODULES**: `canberra-gtk-module` **XDG_SEAT**: `seat0` **PWD**: `/home/eugen` **QEMU_AUDIO_DRV**: `pa` **LOGNAME**: `eugen` **XDG_SESSION_DESKTOP**: `KDE` **XDG_SESSION_TYPE**: `x11` **MANPATH**: `/usr/local/man:/usr/share/man` **XAUTHORITY**: `/run/user/1001/xauth_juWDoN` **XKEYSYMDB**: `/usr/X11R6/lib/X11/XKeysymDB` **XNLSPATH**: `/usr/share/X11/nls` **HOME**: `/home/eugen` **SSH_ASKPASS**: `/usr/libexec/ssh/ssh-askpass` **LANG**: `de_DE.UTF-8` **XDG_CURRENT_DESKTOP**: `KDE` **PYTHONSTARTUP**: `/etc/pythonstart` **OSTYPE**: `linux` **XDG_SEAT_PATH**: `/org/freedesktop/DisplayManager/Seat0` **QT_IM_SWITCHER**: `imsw-multi` **LESS_ADVANCED_PREPROCESSOR**: `no` **XSESSION_IS_UP**: `yes` **LESSCLOSE**: `lessclose.sh %s %s` **XDG_SESSION_CLASS**: `user` **TERM**: `xterm` **G_FILENAME_ENCODING**: `@locale,UTF-8,ISO-8859-15,CP1252` **HOST**: `p52` **XAUTHLOCALHOSTNAME**: `p52` **LESSOPEN**: `lessopen.sh %s` **USER**: `eugen` **MORE**: `-sl` **CSHEDIT**: `emacs` **DISPLAY**: `:0` **SHLVL**: `0` **WINDOWMANAGER**: `/usr/bin/startplasma-x11` **PAGER**: `less` **QT_IM_MODULE**: `ibus` **CVS_RSH**: `ssh` **XDG_VTNR**: `7` **XDG_SESSION_ID**: `2` **XDG_RUNTIME_DIR**: `/run/user/1001` **DEBUGINFOD_URLS**: `https://debuginfod.opensuse.org/ ` **MANPATHISSET**: `yes` **XDG_DATA_DIRS**: `/home/eugen/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/share` **CONFIG_SITE**: `/usr/share/site/x86_64-pc-linux-gnu` **PATH**: `/home/eugen/kotlin-native-linux-1.4.10/bin:/home/eugen/.yarn/bin:/home/eugen/.config/yarn/global/node_modules/.bin:/home/eugen/bin:/usr/local/bin:/usr/bin:/bin` **DBUS_SESSION_BUS_ADDRESS**: `unix:path=/run/user/1001/bus` **PROFILEREAD**: `true` **MAIL**: `/var/spool/mail/eugen` **HOSTTYPE**: `x86_64` **GIT_PROMPT_THEME**: `Single_line_openSUSE` **LESSKEY**: `/usr/etc/lesskey.bin` **QT_SCREEN_SCALE_FACTORS**: `DP-0=1.25;DP-1=1.25;HDMI-0=1.25;DP-2=1.25;DP-3=1.25;DP-4=1.25;DP-0.3=1.25;DP-0.1=1.25;` **XCURSOR_THEME**: `breeze_cursors` **XCURSOR_SIZE**: `24` **QT_AUTO_SCREEN_SCALE_FACTOR**: `0` **KDE_FULL_SESSION**: `true` **KDE_SESSION_VERSION**: `5` **KDE_SESSION_UID**: `1001` **KDE_APPLICATIONS_AS_SCOPE**: `1` **SYSTEMD_EXEC_PID**: `2773` **GTK_RC_FILES**: `/etc/gtk/gtkrc:/home/eugen/.gtkrc:/home/eugen/.config/gtkrc` **GTK2_RC_FILES**: `/etc/gtk-2.0/gtkrc:/home/eugen/.gtkrc-2.0:/home/eugen/.config/gtkrc-2.0` **SESSION_MANAGER**: `local/p52:@/tmp/.ICE-unix/2969,unix/p52:/tmp/.ICE-unix/2969` **LANGUAGE**: *empty*
pbek commented 2 years ago

Thank you for mentioning.

As the regular expression that parses the command snippets currently works is that if you have a headline the reg exp searches for the first code block after the headline. In your case the first code block after Test 1 is your ls that is under the headline Test 2...