This commit is contained in:
Bram Adams
2022-12-08 19:17:10 -06:00
parent 6a505f7e99
commit ce3130bd79
32 changed files with 21757 additions and 58162 deletions

View File

@@ -1,7 +1,6 @@
[ [
"folder-note-plugin", "folder-note-plugin",
"obsidian-git", "obsidian-git",
"readwise-official",
"url-into-selection", "url-into-selection",
"obsidian-style-settings", "obsidian-style-settings",
"supercharged-links-obsidian", "supercharged-links-obsidian",
@@ -10,5 +9,8 @@
"cmdr", "cmdr",
"obsidian-kanban", "obsidian-kanban",
"periodic-notes", "periodic-notes",
"calendar" "calendar",
"dataview",
"omnisearch",
"obsidian-footnotes"
] ]

View File

@@ -7,5 +7,24 @@
], ],
"key": "P" "key": "P"
} }
],
"omnisearch:show-modal": [
{
"modifiers": [
"Mod",
"Shift"
],
"key": "F"
}
],
"global-search:open": [],
"obsidian-footnotes:insert-footnote": [
{
"modifiers": [
"Alt",
"Shift"
],
"key": "F"
}
] ]
} }

22
.obsidian/plugins/dataview/data.json vendored Normal file
View File

@@ -0,0 +1,22 @@
{
"renderNullAs": "\\-",
"taskCompletionTracking": false,
"taskCompletionUseEmojiShorthand": false,
"taskCompletionText": "completion",
"taskCompletionDateFormat": "yyyy-MM-dd",
"warnOnEmptyResult": true,
"refreshEnabled": true,
"refreshInterval": 2500,
"defaultDateFormat": "MMMM dd, yyyy",
"defaultDateTimeFormat": "h:mm a - MMMM dd, yyyy",
"maxRecursiveRenderDepth": 4,
"tableIdColumnName": "File",
"tableGroupColumnName": "Group",
"allowHtml": true,
"inlineQueryPrefix": "=",
"inlineJsQueryPrefix": "$=",
"inlineQueriesInCodeblocks": true,
"enableDataviewJs": true,
"enableInlineDataviewJs": true,
"prettyRenderInlineFields": true
}

21010
.obsidian/plugins/dataview/main.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
{
"id": "dataview",
"name": "Dataview",
"version": "0.5.47",
"minAppVersion": "0.13.11",
"description": "Complex data views for the data-obsessed.",
"author": "Michael Brenan <blacksmithgu@gmail.com>",
"authorUrl": "https://github.com/blacksmithgu",
"isDesktopOnly": false
}

142
.obsidian/plugins/dataview/styles.css vendored Normal file
View File

@@ -0,0 +1,142 @@
/** Live Preview padding fixes, specifically for DataviewJS custom HTML elements. */
.is-live-preview .block-language-dataviewjs > p, .is-live-preview .block-language-dataviewjs > span {
line-height: 1.0;
}
/*****************/
/** Table Views **/
/*****************/
/* List View Default Styling; rendered internally as a table. */
.table-view-table {
width: 100%;
}
.table-view-table > thead > tr, .table-view-table > tbody > tr {
margin-top: 1em;
margin-bottom: 1em;
text-align: left;
}
.table-view-table > tbody > tr:hover {
background-color: var(--text-selection) !important;
}
.table-view-table > thead > tr > th {
font-weight: 700;
font-size: larger;
border-top: none;
border-left: none;
border-right: none;
border-bottom: solid;
max-width: 100%;
}
.table-view-table > tbody > tr > td {
text-align: left;
border: none;
font-weight: 400;
max-width: 100%;
}
.table-view-table ul, .table-view-table ol {
margin-block-start: 0.2em !important;
margin-block-end: 0.2em !important;
}
/** Rendered value styling for any view. */
.dataview-result-list-root-ul {
padding: 0em !important;
margin: 0em !important;
}
.dataview-result-list-ul {
margin-block-start: 0.2em !important;
margin-block-end: 0.2em !important;
}
/** Generic grouping styling. */
.dataview.result-group {
padding-left: 8px;
}
/*******************/
/** Inline Fields **/
/*******************/
.dataview.inline-field-key {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-primary-alt);
color: var(--text-nav-selected);
}
.dataview.inline-field-value {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-secondary-alt);
color: var(--text-nav-selected);
}
.dataview.inline-field-standalone-value {
padding-left: 8px;
padding-right: 8px;
font-family: var(--font-monospace);
background-color: var(--background-secondary-alt);
color: var(--text-nav-selected);
}
/***************/
/** Task View **/
/***************/
.dataview.task-list-item, .dataview.task-list-basic-item {
margin-top: 3px;
margin-bottom: 3px;
transition: 0.4s;
}
.dataview.task-list-item:hover, .dataview.task-list-basic-item:hover {
background-color: var(--text-selection);
box-shadow: -40px 0 0 var(--text-selection);
cursor: pointer;
}
/*****************/
/** Error Views **/
/*****************/
div.dataview-error-box {
width: 100%;
min-height: 150px;
display: flex;
align-items: center;
justify-content: center;
border: 4px dashed var(--background-secondary);
}
.dataview-error-message {
color: var(--text-muted);
text-align: center;
}
/*************************/
/** Additional Metadata **/
/*************************/
.dataview.small-text {
font-size: smaller;
color: var(--text-muted);
margin-left: 3px;
}
.dataview.small-text::before {
content: "(";
}
.dataview.small-text::after {
content: ")";
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
{
"id": "obsidian-footnotes",
"name": "Footnote Shortcut",
"version": "0.0.9",
"minAppVersion": "0.12.0",
"description": "Insert and write footnotes faster",
"author": "Alexis Rondeau, Micha Brugger",
"authorUrl": "https://publish.obsidian.md/alexisrondeau",
"isDesktopOnly": false
}

View File

@@ -0,0 +1 @@
/* Sets all the text color to red! */

View File

@@ -1,34 +0,0 @@
{
"projects": [
{
"id": "4ec59e65-0c22-488f-80e5-b06ccada08e3",
"name": "Open Projects",
"path": "_PARA/Projects",
"recursive": true,
"defaultName": "",
"templates": [],
"views": [
{
"id": "57d8e60b-52c6-49f8-b9dc-629c4fdde61c",
"name": "Table",
"type": "table",
"config": {
"fieldConfig": {
"path": {
"width": 604
},
"name": {
"width": 398
}
}
}
}
],
"excludedNotes": [
"_PARA/Projects/Test Project/Scratchpad.md",
"_PARA/Projects/Test Project 2/Scratchpad.md"
]
}
],
"version": 1
}

File diff suppressed because one or more lines are too long

View File

@@ -1,10 +0,0 @@
{
"id": "obsidian-projects",
"name": "Projects",
"version": "1.3.0",
"minAppVersion": "1.0.0",
"description": "Project management for Obsidian.",
"author": "Marcus Olsson",
"authorUrl": "https://marcus.se.net",
"isDesktopOnly": false
}

View File

@@ -1,7 +0,0 @@
.workspace-leaf-content[data-type="obsidian-projects"] .view-content {
padding: 0;
}
.sortable-drag {
opacity: 0 !important;
}

20
.obsidian/plugins/omnisearch/data.json vendored Normal file
View File

@@ -0,0 +1,20 @@
{
"hideExcluded": false,
"ignoreDiacritics": true,
"indexedFileTypes": [],
"PDFIndexing": false,
"imagesIndexing": false,
"showShortName": false,
"ribbonIcon": true,
"showExcerpt": true,
"renderLineReturnInExcerpts": true,
"showCreateButton": false,
"hightlight": true,
"showPreviousQueryResults": true,
"simpleSearch": false,
"weightBasename": 2,
"weightH1": 1.5,
"weightH2": 1.3,
"weightH3": 1.1,
"welcomeMessage": "1.8.0-beta.3"
}

55
.obsidian/plugins/omnisearch/main.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,10 @@
{
"id": "omnisearch",
"name": "Omnisearch",
"version": "1.9.0",
"minAppVersion": "1.0.0",
"description": "A search engine that just works",
"author": "Simon Cambier",
"authorUrl": "https://github.com/scambier/obsidian-omnisearch",
"isDesktopOnly": false
}

53
.obsidian/plugins/omnisearch/styles.css vendored Normal file
View File

@@ -0,0 +1,53 @@
.omnisearch-modal {
}
.omnisearch-result {
white-space: normal;
display: flex;
flex-direction: column;
}
.omnisearch-result__title {
}
.omnisearch-result__counter {
font-size: 0.7rem;
}
.omnisearch-result__body {
white-space: normal;
font-size: small;
word-wrap: normal;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
color: var(--text-muted);
}
.omnisearch-highlight {
}
.omnisearch-default-highlight {
color: var(--text-normal);
background-color: var(--text-highlight-bg);
}
.omnisearch-input-container {
display: flex;
flex-direction: row;
gap: 5px;
}
@media only screen and (max-width: 600px) {
.omnisearch-input-container {
flex-direction: column;
}
}
.omnisearch-input-field {
position: relative;
flex-grow: 1;
}

View File

@@ -4,20 +4,68 @@
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "05accf0255f19ffe", "id": "f274f0d27bfb552f",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "4d78f86db5e48244", "id": "ae7e8989390facfc",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "_PARA/Archive/Archived Project/Archived Project.md", "file": "_tests/Project Management.md",
"mode": "source", "mode": "source",
"source": false "source": false
} }
} }
},
{
"id": "28464c2ed0a27503",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Readwise/Articles Test/The Ancient Japanese Technique That Produces Lumber Without Cutting Trees.md",
"mode": "source",
"source": false
}
}
},
{
"id": "f1bf5e61bd0e37de",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "_tests/External/iOS Shortcuts.md",
"mode": "source",
"source": false
}
}
},
{
"id": "6c5b4304b1c5069d",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "_tests/External/Alfred.md",
"mode": "source",
"source": false
}
}
},
{
"id": "ca5ff70e5ec9eca4",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Readwise/Articles Test/The Ancient Japanese Technique That Produces Lumber Without Cutting Trees.md",
"mode": "preview",
"source": false
}
}
} }
] ]
} }
@@ -86,7 +134,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "_PARA/Archive/Archived Project/Archived Project.md", "file": "_tests/Project Management.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@@ -103,7 +151,7 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
"file": "_PARA/Archive/Archived Project/Archived Project.md", "file": "_tests/Project Management.md",
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
} }
@@ -126,7 +174,7 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "_PARA/Archive/Archived Project/Archived Project.md" "file": "_tests/Project Management.md"
} }
} }
}, },
@@ -151,7 +199,8 @@
} }
], ],
"direction": "horizontal", "direction": "horizontal",
"width": 300 "width": 300,
"collapsed": true
}, },
"left-ribbon": { "left-ribbon": {
"hiddenItems": { "hiddenItems": {
@@ -161,20 +210,21 @@
"templates:Insert template": false, "templates:Insert template": false,
"command-palette:Open command palette": false, "command-palette:Open command palette": false,
"publish:Publish changes": false, "publish:Publish changes": false,
"periodic-notes:Open today": false "periodic-notes:Open today": false,
"omnisearch:Omnisearch": false
} }
}, },
"active": "4d78f86db5e48244", "active": "ae7e8989390facfc",
"lastOpenFiles": [ "lastOpenFiles": [
"_PARA/Archive/Archived Project/Scratchpad.md", "_tests/Private.md",
"_PARA/Archive/Archived Project/Kanban.md", "_tests/Paste URL into Selection.md",
"_PARA/Archive/Archived Project/Archived Project.md", "_tests/External/GitHub.md",
"_PARA/Projects/building a shed/building a shed.md", "_tests/_tests.md",
"_PARA/Projects/building a shed/Scratchpad.md", "Readwise/Articles Test/The Ancient Japanese Technique That Produces Lumber Without Cutting Trees.md",
"_PARA/Projects/building a shed/Kanban.md", "_tests/Hotkeys.md",
"_PARA/Projects/Test Project/Scratchpad.md", "_PARA/Projects/yo/yo.md",
"_PARA/Projects/Test Project 2/Scratchpad.md", "_PARA/Projects/yo2/Kanban.md",
"_PARA/Projects/Test Project 2/Kanban.md", "_PARA/Projects/yo2/yo2.md",
"_PARA/Projects/ferg/ferg.md" "_PARA/Projects/yo/Kanban.md"
] ]
} }

View File

@@ -0,0 +1,20 @@
---
author: DSF Antique Jewelry
fullTitle: The Ancient Japanese Technique That Produces Lumber Without Cutting Trees
category: #articles
url: "https://dsfantiquejewelry.com/blogs/interesting-facts/the-ancient-japanese-technique-that-produces-lumber-without-cutting-trees"
project: Test Project
---
## Highlights
---
> ![](https://cdn.shopify.com/s/files/1/0142/3405/8816/files/poza1_4.jpg?v=1652662357) ([View Highlight](https://read.readwise.io/read/01gkm5mj94j7xhptk1663cbm0s))
---
---
> The shoots are carefully and gently pruned by hand every two years leaving only the top boughs, allowing them to grow straight. Harvesting takes 20 years and old 'tree stock' can grow up to a hundred shoots at a time ([View Highlight](https://read.readwise.io/read/01gkm5n9a625vhyfqca6xaak1t))
---

View File

@@ -1,30 +0,0 @@
---
kanban-plugin: basic
---
## To Do
## In Progress
## Done
**Complete**
## Waiting On
%% kanban:settings
```
{"kanban-plugin":"basic"}
```
%%

View File

@@ -1,4 +0,0 @@
# Scratchpad
2022-12-08 - [How to Build a Cheap Shed - Shedplans.org](https://shedplans.org/how-to-build-a-shed/)

View File

@@ -1,2 +0,0 @@
# building a shed

View File

@@ -1,31 +1,54 @@
module.exports = async function createProject(params) { module.exports = async function createProject(params) {
const PROJECTS_FOLDER = "_PARA/Projects/";
const PROJECTS_FOLDER = "_PARA/Projects/"; const userInput = await params.quickAddApi.inputPrompt(
"CREATE a new Project (and remember to have fun!)",
"Project Name"
);
const userInput = await params.quickAddApi.inputPrompt("CREATE a new Project (and remember to have fun!)", "Project Name") // Check if user cancelled
if (!userInput) {
return;
}
// Check if user cancelled // add a checkbox prompt to see if for optional settings
if (!userInput) { const settings = await params.quickAddApi.checkboxPrompt(
return; ["Create a Kanban", "Create a Scratchpad", "Add Readwise Dataview"],
["Create a Kanban", "Create a Scratchpad", "Add Readwise Dataview"]
);
// Get the project name
const absolutePath = PROJECTS_FOLDER + userInput;
// Create a new folder
await params.app.vault.createFolder(`${absolutePath}`);
// // Create a new file in the new folder
const newFile = await params.app.vault.create(
`${absolutePath}/${userInput}.md`,
`> [!info]\n> Project Description Here\n\n`
);
// // Create a scratchpad file in the new folder
if (settings.includes("Create a Scratchpad")) {
await params.app.vault.create(`${absolutePath}/Scratchpad.md`, "");
}
if (settings.includes("Add Readwise Dataview")) {
await params.app.vault.create(
`${absolutePath}/Readwise Resources.md`, `# Readwise Resources\n\n\`\`\`dataview
list from "Readwise"
where project = "${userInput}"
\`\`\``
)
} }
// Get the project name
const absolutePath = PROJECTS_FOLDER + userInput;
// Create a new folder
await params.app.vault.createFolder(`${absolutePath}`);
// // Create a new file in the new folder
const newFile = await params.app.vault.create(`${absolutePath}/${userInput}.md`, `# ${userInput}\n\n`);
// // Create a scratchpad file in the new folder
await params.app.vault.create(`${absolutePath}/Scratchpad.md`, "# Scratchpad\n\n");
if (settings.includes("Create a Kanban")) {
// // Create a Kanban file in the new folder // // Create a Kanban file in the new folder
await params.app.vault.create(`${absolutePath}/Kanban.md`, `--- await params.app.vault.create(
`${absolutePath}/Kanban.md`,
`---
kanban-plugin: basic kanban-plugin: basic
@@ -54,7 +77,7 @@ kanban-plugin: basic
\`\`\` \`\`\`
{"kanban-plugin":"basic"} {"kanban-plugin":"basic"}
\`\`\` \`\`\`
%%`); %%`
);
}
} };

0
_tests/External/Alfred.md vendored Normal file
View File

7
_tests/External/GitHub.md vendored Normal file
View File

@@ -0,0 +1,7 @@
In this vault, Obsidian Git is used for:
- version control
- backups
>[!warning]
>You should add `/Private` to `.gitignore` using the "Edit .gitignore" command

65
_tests/External/Readwise.md vendored Normal file
View File

@@ -0,0 +1,65 @@
If you use Readwise, you'll be able to have resources auto sync from Kindle + the web. They'll end up in the `/Readwise` directory.
## Dataview Test (should have one item)
```dataview
list from "Readwise"
where project = "Test Project"
```
## Page Metadata Formatting
```
---
author: {% if author %}{{author}}{% endif %}
fullTitle: {{full_title}}
category: #{{category}}
source: {{source}}
date: [[{{date}}]]
time: {{time}}
{% if image_url -%}
imageURL: {{image_url}}
{% endif -%}
{% if book_id -%}
bookID: {{book_id}}
{% endif -%}
{% if document_tags -%}
documentTags: {% for tag in document_tags %}#{{tag}} {% endfor %}
{% endif -%}
{% if url -%}
url: {{url}}
{% endif -%}
project: -
---
```
## Highlights Header Formatting
```
{% if is_new_page %}
## Highlights
{% elif has_new_highlights -%}
## New highlights added {{date|date('F j, Y')}} at {{time}}
{% endif -%}
```
## Highlight Formatting
```
---
> {{ highlight_text }}{% if highlight_location and highlight_location_url %} ([{{highlight_location}}]({{highlight_location_url}})){% elif highlight_location %} ({{highlight_location}}){% endif %}{% if highlight_tags %}
- Tags: {% for tag in highlight_tags %} #{{tag}} {% endfor %}{% endif %}{% if highlight_note %}
- Note: {{ highlight_note }}{% endif %}
---
```
## Sync Notification
```
- [[{{date|date('Y-m-d')}}]] {{time}} — Synced {{num_highlights}} highlight{{num_highlights|pluralize}} from {{num_books}} document{{num_books|pluralize}}.
{% for book in books %} - {{ book.num_highlights_added}} highlights from {{ book.title }}
{% endfor %}
```

0
_tests/External/iOS Shortcuts.md vendored Normal file
View File

View File

@@ -1,3 +1,5 @@
`ctrl-shift-e` -> [auto link title](obsidian://show-plugin?id=obsidian-auto-link-title) `ctrl-shift-e` -> [auto link title](obsidian://show-plugin?id=obsidian-auto-link-title)
`ctrl-shift-p` -> show [projects](obsidian://show-plugin?id=obsidian-projects) `ctrl-shift-p` -> show [projects](obsidian://show-plugin?id=obsidian-projects)
`ctrl-click` a folder name -> create a [folder note](obsidian://show-plugin?id=folder-note-plugin) `ctrl-click` a folder name -> create a [folder note](obsidian://show-plugin?id=folder-note-plugin)
`ctrl-shift-f` -> [omnisearch](obsidian://show-plugin?id=omnisearch) vault search
`alt-shift-f` -> [footnote](obsidian://show-plugin?id=obsidian-footnotes) insertion

View File

@@ -8,3 +8,6 @@ This vault follows the PARA methodology:
1. When a link is found on the internet, it should be trivial to add it to the list of resources in a project 1. When a link is found on the internet, it should be trivial to add it to the list of resources in a project
2. Notes should also be easily made, following the tenets of progressive summarization 2. Notes should also be easily made, following the tenets of progressive summarization
On the left ribbon, the "sprout" creates a new project, and the "ribbon plus" appends to a Project's Scratchpad