Skip to content

The order of notes is modified after importing while moving through the list #11810

@tspivey

Description

@tspivey

Operating system

Windows

Joplin version

3.2.12

Desktop version info

Joplin 3.2.12 (prod, win32)

Client ID: d6d835f245d64cdc9ba636480472e17e
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: d6f1ca4

Backup: 1.4.2
Freehand Drawing: 2.14.0

Current behaviour

Notes are modified after importing, based on the line endings of the files.

To reproduce, starting from a newly-installed Joplin:

  1. Create a new directory.
    Create two notes, note1.txt and note2.txt with CRLF line endings. From Windows cmd.exe:
    echo test>note1.txt
    echo testing>note2.txt
    
  2. From Joplin, File, Import, TXT - Text document (Directory). Select the newly-created directory.
  3. Select the new notebook in the sidebar, and notice that note2 comes before note1, as expected.
  4. Press Ctrl+Shift+L, and move down to note1. After that, note1 moves to the top of the list.

Try again from step 2, but first create note1.txt and note2.txt with LF line endings.
The notes stay in the correct order after importing.

Expected behaviour

I expected the order of notes not to change as I moved through the list, only after I updated something. If line endings have to be LF, it should change them during import.

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt's a bugstaleAn issue that hasn't been active for a while...

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions