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

App does not start with last used note opened, instead it opens first node in that notebook. #11484

Open
selivan opened this issue Dec 9, 2024 · 2 comments
Labels
bug It's a bug desktop All desktop platforms medium Medium priority issues

Comments

@selivan
Copy link

selivan commented Dec 9, 2024

Operating system

Windows

Joplin version

3.1.24

Desktop version info

Joplin 3.1.24 (prod, win32)

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

Revision: d581264

Backup: 1.4.2
Conflict Resolution: 1.2.3
Copy Code Blocks: 1.1.2
Note list and sidebar toggle buttons: 1.0.3

Current behaviour

  1. Open some notebook with more than 1 note
  2. Select any note other than first in selected sort order
  3. Close Joplin
  4. Open Joplin
  5. Now the first(according to selected sort order) note is opened, not the note that was opened last time

I tried disabling all installed plugins, it didn't help.

Expected behaviour

After re-opening the application exactly the same note should be selected.

NOTE: opening last used note worked fine while I was using Joplin 2. This started after upgrading to version 3, including latest release.

P.S. I already opened this issue at Jul 14 as #10743, but now github-actions bot closed it because of "prolonged period of inactivity". But even the longest period of inactivity does not make a bug disappear, it just doesn't work like that.

Logs

No response

@pedr
Copy link
Collaborator

pedr commented Dec 10, 2024

I don't think this ever worked, I tested with 2.11.11 (Jun 2023) and it wasn't working.

Looking at the code we only have an activeFolderId and notesParent (which is only an abstraction to normalize the tag/folder/search id):
image

I could try to refactor activeFolderId to activeNoteId (I don't think it would make sense to keep track of both), what do you think? @laurent22

@laurent22 laurent22 added medium Medium priority issues and removed high High priority issues labels Dec 10, 2024
@selivan
Copy link
Author

selivan commented Dec 10, 2024

@pedr That's weird, I remember that after updating to version 3 it became inconvenient to swtich to last note. Bit it seems to be false memory. Maybe I started to often use a note not on top of notebook sort order.

But this would be a really nice feature to implement. Most software (code editors, e-book readers) can remember last opened file and last position in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug desktop All desktop platforms medium Medium priority issues
Projects
None yet
Development

No branches or pull requests

3 participants