All Projects → avirut → obsidian-query2table

avirut / obsidian-query2table

Licence: other
Represent files returned by a query as a table of their YAML frontmatter (for obsidian.md)

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to obsidian-query2table

obsidian-tracker
A plugin tracks occurrences and numbers in your notes
Stars: ✭ 661 (+2654.17%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-todoist-plugin
Materialize Todoist tasks in Obsidian notes
Stars: ✭ 521 (+2070.83%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-kanban
Create markdown-backed Kanban boards in Obsidian.
Stars: ✭ 974 (+3958.33%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-spaced-repetition
Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian.md
Stars: ✭ 667 (+2679.17%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-rollover-daily-todos
An obsidian plugin that rolls over todo items from the previous daily note
Stars: ✭ 52 (+116.67%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-community-list
📃 • updated list of community themes & plugins for obsidian.md!
Stars: ✭ 16 (-33.33%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-readwise
Sync Readwise highlights into your obsidian vault
Stars: ✭ 79 (+229.17%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-advanced-appearance
Change Obsidian colors, fonts and other cosmetic settings
Stars: ✭ 35 (+45.83%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-emoji-toolbar
No description or website provided.
Stars: ✭ 35 (+45.83%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-tweet-to-markdown
An Obsidian.md plugin to save tweets as Markdown files.
Stars: ✭ 35 (+45.83%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-link-archive
Link Archive plugin for Obsidian
Stars: ✭ 94 (+291.67%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
oz-clear-unused-images-obsidian
Obsidian plugin to clear the images that are not used in note files anymore
Stars: ✭ 92 (+283.33%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-style-settings
A dynamic user interface for adjusting theme, plugin, and snippet CSS variables within Obsidian
Stars: ✭ 205 (+754.17%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-convert-url-to-iframe
Plugin for Obsidian.md to convert a selected URL to an iframe.
Stars: ✭ 132 (+450%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-contextual-typography
No description or website provided.
Stars: ✭ 45 (+87.5%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-charts
Charts - Obsidian Plugin | Create editable, interactive and animated Charts in Obsidian via Chart.js
Stars: ✭ 177 (+637.5%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-smart-typography
Converts quotes to curly quotes, dashes to em dashes, and periods to ellipses
Stars: ✭ 81 (+237.5%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-hider
Hide Obsidian UI elements such as tooltips, status, titlebar and more
Stars: ✭ 106 (+341.67%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-podcast-note
A plugin for the note taking app Obsidian that lets you add podcast meta data to your notes.
Stars: ✭ 24 (+0%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md
obsidian-budget-wysiwyg
Obsidian plugin that automatically switches between preview and source mode.
Stars: ✭ 25 (+4.17%)
Mutual labels:  obsidian, obsidian-plugin, obsidian-md

ARCHIVED

This plugin was a temporary solution to a problem that has now been better solved by Obsidian Dataview. In the future, I may fork Obsidian Dataview to match the rendering featureset that I want while keeping its far superior query handlers. This plugin, however, will receive no further updates.

obsidian-query2table

Represent files returned by a query as a table of their YAML frontmatter

Disclaimer

During usage, this plugin will overwrite your search pane - this is necessary to run the query. You also will not be able to run two query blocks in the same file.

Also, I haven't really tested this plugin at all on any vaults but my own, and there are likely many places where the appropriate checks for null or undefined values are missing. Therefore, you may experience significant errors early on. When this happens, please open DevTools (ctrl/cmd + shift + i), save the console error output, and report it as an issue through this repository's Issues tab. This plugin shouldn't delete your files or anything, but it may just occassionally not work as expected.

Table generation from query

This plugin allows you to output the results of a query as a searchable, sortable table of the frontmatter attributes from relevant notes. sample codeblock

Usage

Within your query2table codeblock, specify the attributes query, fields, and approxNumberOfResults.

Query

A string (enclosed in "" or '') which indicates what you're searching for. This is the same format as if you were using the built in file-search (because the plugin actually does use the built in file search).

Fields

A list of the YAML frontmatter attributes, and their corresponding "type". Available types are:

  • note - The text will be the same as the frontmatter attribute, but this column will link to the actual note the row refers to. The frontmatter value for whatever attribute this refers to must be present (not null or undefined), or the row for that file will not be shown.
  • link - Long links are handled poorly by the table (they take up a lot of width), so use this attribute to replace them with the word Link that has a hyperlink to whatever link was specified in the frontmatter attribute.
  • text-as-link - This one uses the original text of the frontmatter attribute, but makes it a link as well. It's similar to link, but possibly better if seeing the actual link before you click it is really important to you.
  • list - Use this for frontmatter attributes that are text arrays - the value in the table will show as a bullet pointed list.

If you have any good ideas for field types, feel free to open up an issue and I'll work on it when I get the chance.

Approximate Number of Results

Because of limitations within the Obsidian API, the only way to make the querying part of this plugin work is to run the query through the UI, then pull out the returned files. This means that whenever the query2table codeblock is rendered, you'll see the search being run in your UI as well. However, there is some delay between the search being run and the files being output. If this delay is too short, you may not get all your files into the table. Adjust approxNumberOfResults as necessary to ensure that you get all your files without waiting too long.

Sample Output

Full Results

full results

Search and Sort

search and sort

Credits

Much of the code/structure in this plugin came from obsidian-charts and obsidian-text-expand. Also, thanks to Liam and Licat in the Discord #plugins channel for their frequent help!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].