-
Not quite sure where to place this, but here goes. There might also be a bug — at least there is unexpected behaviour and confusion — and a feature request. By default I have all nodes sorted by applying The problem comes in when I try to remove the It appends an asterisk to those nodes which I have moved around. They are only appended to the names in the tree view, not the main view: If I collapse the tree view and then open it up again, my ordering has disappeared and all the nodes now have asterisks: But closing and reopening Trilium restores the manual sorting and removes the asterisks: Adding a new node sorts it again (no asterisks) and this sorting survives closing and reopening Trilium: If at this point I try to drag a node around I cannot. Instead I need to execute the search again and then the whole dance repeats itself. Regardless of the (in)action of the search, at all times the inherited attributes list contained My intuition tells me it would be helpful if something like the following could be implemented regarding inherited attributes:
The "only for this level" would refer to the direct children of "this level". In my above example, setting it for |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi,
Could you explain this a bit more? You have inheritable #sorted at the root, you can't really remove it with "Search in subtree". There's currently no way to override or disable inherited attribute. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation and changes; I'll try to explain the requirement as well as share some ideas I had for how it might work out. RequirementOrdering is obviously important for most lists, especially when humans are involved, as we don't do hash functions in our heads too well. Some kind of lexicographical ordering is usually sufficient, but sometimes it won't work, as is the case here. I am happy to apply Currently the only alternative is to apply The rest of this post is a first stab at how to improve this. IdeasI don't know how the node lists (tree levels) are implemented but am guessing that each is some form of linked list. Perhaps the easiest would be to sort each level by calling a function which is pointed to by the parent node. If it is null, then the initial order is as inserted, allowing nodes to be moved around at will. In such a scheme those in the know can create really complex sorts as SQL statements (or whatever) while others could (like now) choose the ordering via the Search in subtree approach, but with the addition of The above is specific for sorting. A more general approach is overriding inherited values and then something like this idea might work (it is expanded from the example in my previous post). The general principle is that local definitions override general values. The flexibility comes in with how that is done.
Let's look at a structure of The
|
Beta Was this translation helpful? Give feedback.
-
[Just discovered one cannot mark part of a thread in a discussion as being the answer, so am trying this approach.]
|
Beta Was this translation helpful? Give feedback.
[Just discovered one cannot mark part of a thread in a discussion as being the answer, so am trying this approach.]