Git Product home page Git Product logo

trilium-collection-views's People

Contributors

mabeyj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

trilium-collection-views's Issues

$title, But For Note ID

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.

Table footers

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/rows
  • countDefined: Number of attributes defined (including empty values and multiple values)
  • countUndefined: Number of notes/rows with no attribute defined
  • countEmpty: Number of attributes defined with empty values
  • countNonEmpty: Number of attributes defined with non-empty values
  • sum: Sum all numeric attribute values
  • average: Average of all numeric attribute values
  • median: Median numeric attribute value
  • min: Lowest numeric value
  • max: Highest numeric value
  • range: max - min
  • earliest: Oldest date
  • latest: Most recent date
  • dateRange: latest - earliest in years, months, weeks, or days

prefix 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).

Calendar view

Add a calendar view:

  • Ability to select month/year
  • Next/previous month buttons
  • Today button
  • Start and end date attributes need to be specified in Render Note configuration

quickly search note within the current collection

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.

Regarding "Complete" label (builtin date expressions)

image
Hi maybeyj:

is that possible that by some method we can make this "complete" update automatically? Now it's like "#complete=5" "#total=100", is that possible that we can make it like "#complete=$daycreated" "#total=timeleft"?

Unable to create empty header for relation

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.

how to sort notes by created time

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?

Attributes of parent/ancestor notes

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

Question: Add custom button?

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:

  • Backlog
    • Task 1
  • In Progress
    • Task 2
  • Done
    • Other Task 1

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.

"Include note" support

Render the view when including the Render Note inside another note. Currently, only the text description used for note lists is shown.

Expression column

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!

Attribute for note content

Discussed in #49

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.

Note Title as Table Column, and Attributes as Table Rows

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.