mabeyj / trilium-collection-views Goto Github PK
View Code? Open in Web Editor NEWAn extension for Trilium Notes that implements different ways of viewing collections of notes.
License: MIT License
An extension for Trilium Notes that implements different ways of viewing collections of notes.
License: MIT License
Hey,
I would like suggest add in attribute custom inserting thousands separators. So, for example, you could use it as a phone number via changing separator to -
As it says on the tin. It's possible to query using $title using the collections views, and it's very helpful to use in a template because I don't need to manually point a note to itself. However, if I have two notes with the same name, both notes appear in the collection view, even if they are compelely unrelated.
Trilium generates its own unique note IDs and can search through them (note.noteId=xxxxx), and so I was wondering if it'd be possible to set up something like a $ID, which always returns the ID of the note that it's pasted on. I've already tried using the noteId search in a query and it was perfect.
Add a footer
setting for tables that performs a count, sum, or other calculation on values in the column.
Example: #attribute=value,footer=sum
Possible functions:
count
: Number of notes/rowscountDefined
: Number of attributes defined (including empty values and multiple values)countUndefined
: Number of notes/rows with no attribute definedcountEmpty
: Number of attributes defined with empty valuescountNonEmpty
: Number of attributes defined with non-empty valuessum
: Sum all numeric attribute valuesaverage
: Average of all numeric attribute valuesmedian
: Median numeric attribute valuemin
: Lowest numeric valuemax
: Highest numeric valuerange
: max - min
earliest
: Oldest datelatest
: Most recent datedateRange
: latest - earliest
in years, months, weeks, or daysprefix
and suffix
apply to the result, as well as precision
for numeric calculations. Multiple footer
values should be supported (e.g., #attribute=value,footer=sum,footer=count
).
Add a calendar view:
Thank you for developing such a useful plugin. However, I would suggest adding a search function within the current collection. At times, it can be difficult to quickly locate a specific note within a large collection. Thus, adding a search function would greatly enhance the usability and accessibility of the plugin.
Documentation states
#attribute="status,header=" will display an empty header.
when I tried this on a relation included in my table, the attribute's name was used as the column header.
I am using Trilium 0.60.4, and the latest collection-views.
I wrote a table view to list all notes which Web Clipper creates. It works well. Then I want to sort these notes by their created time and use the below command:
~renderNote=[Collection Views] #view=table #query="#clipType=page note.isArchived=false" #sort=note.dateCreated
But it does not work, is anything wrong?
Related: #38
Add special relations that refer to a note's parent note ($parent
) and all ancestor notes ($ancestors
). All ancestors would include multiple notes (parent, grandparent, etc.).
Cloned notes have multiple parents. In this case, $parent
might return multiple notes. $parents
should be an alias for $parent
.
Examples:
#attribute=$parent
(get parent note)#attribute=$parent.tag
(get tag attribute of parent note)#attribute=$parent.$parent
(get grandparent note)#attribute=$parents
#attribute=$ancestors
I have a task list collection view and I am curious if I could create a button in one of the columns to manually move the note to under another note.
Example
To-Do:
In the collections view, one of the columns might be Action and have buttons or some way to just click to move the task to Backlog/In Progress/Done and maybe even refresh the screen/note if needed.
Is this possible?
I am relatively new to Trillium so still figuring stuff out.
Render the view when including the Render Note inside another note. Currently, only the text description used for note lists is shown.
像是obsidian里的那样,我在trilium那里提了一个issue,zadam/trilium#2479
Hey,
Thanks for your plugin,I love it!
Are you consider to add expression column like formula in excel or notion? If so I would suggest to run js like in trilium title template and make array of all columns like this for example
$atr.name.length + $atr.age
In that example would be columns age and name.
Let me know what you think about that!
Originally posted by TheBig-O December 29, 2023
I'm not sure this is possible but I'd like to show a truncated version of a note's text as a field in a collection view. If it's not possible to truncate the note, the whole note would work as well, but is not the preferred option. (I'm only working with short snippets.)
Does this seem possible?
Add a $content
attribute which returns the content of a note. HTML will likely have to be stripped or limited. If the note is not a text or code note, then nothing is returned.
As it says on the tin.
Example: I have a few notes, or maybe just a single note, with attributes that I want to display on a table. The problem is that there are a lot of attributes with long names that don't fit neatly when written horizontally across the column space. A good method of handling that would be the ability to have the note's title act as the column instead as the attributes, and have the attributes act as the rows.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.