zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

(Bug report)When delete several notes, the delete list in confirm dialog lost some selected note #2865

Closed zomboo closed 2 years ago

zomboo commented 2 years ago

Trilium Version

0.51.2

What operating system are you using?

Windows

What is your setup?

Local (no sync)

Operating System Version

windows11 21H2

Description

Today I want to delete several notes, but when I press 'shift' key and click mouse to select notes , then right click to delete, I find the delete list in open dialog is not All notes that I had select. show in gif like this: trilium_bug

sigaloid commented 2 years ago

I think this is intended behavior. If a note is not italicized it's not selected for deletion. Just having a note open when you begin selecting doesn't automatically include it for deletion. (Assuming you're referring to the one you have open not being included)

SiriusXT commented 2 years ago

It is recommended to add the following CSS styles to the theme file so that the selected items will be both italicized and underlined, span.fancytree-selected span.fancytree-title{ text-decoration:underline; } 图片

zadam commented 2 years ago

@sigaloid is right, there's a difference between active note and selected note, active is not automatically part of multi-selection.

@SiriusXT I added the underline to add some more visual difference as suggested.