Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/702573n/obsidian-notes-list

Dataview Snippet To Show Notes In Different List Views
https://github.com/702573n/obsidian-notes-list

listview notes obsidian-md obsidian-plugin

Last synced: 5 days ago
JSON representation

Dataview Snippet To Show Notes In Different List Views

Awesome Lists containing this project

README

        

# Obsidian-Notes-List
Dataview Snippet To Show Notes In Different List Views

## Story
All Obsidian users switched from some other note-taking programme (such as Evernote, Apple Notes, Standard Notes, Bear Notes) to Obsidian. When switching, many users lack a list of all notes with a small excerpt of the text and, if applicable, a thumbnail image. This Dataview snippet makes it possible to retrofit this missing view with a single line of code. All that is needed is the Dataview plugin.

## Setup
1. Install "Dataview Plugin" from the external plugins
2. Create a new folder called "notesList" or any other name and paste the files "view.js" and "view.css" into it

Bildschirm­foto 2022-10-16 um 14 25 00

3. Create a new note or edit an existing one and add the following code line:

````
```dataviewjs
dv.view("notesList", {pages: "", view: "normal"})
```
````

If you paste the main files (js/css) into another folder then "notesList", you have to replace the name between the first quotation marks.

4. There are 2 different variables to set path/location as "pages", list view style as "view".

---
### pages:
```
pages: ""
```
Get all notes in obsidian.

```
pages: "Notes/Theology"
```
Set a custom folder to get notes from.

---
### view:
```
view: "normal"
```
List view with small text preview and a preview of all attachments below like in Bear.

```
view: "compact"
```
List view with small text preview and a preview of the first attachment inside the note.

```
view: "cards"
```
List view with small cards of each note including small text preview and a preview of the first attachment inside the note.

---

## Impressions

### Normal View
Bildschirm­foto 2022-10-16 um 14 16 45

---

### Compact View
Bildschirm­foto 2022-10-16 um 14 17 41

---

### Cards View
Bildschirm­foto 2022-10-16 um 14 18 18