Skip to content

Commit

Permalink
Minor fixes and new templates
Browse files Browse the repository at this point in the history
- Fixed bug with Travel and Trips showing "maybe a file already exists?".
- Fixed external link that was broken.
- Minor modifications to style settings.
- Added new templates to allow for quickly inserting headers.
- Reorganized dataview and javascript files.
  • Loading branch information
SoRobby committed Aug 3, 2023
1 parent 6e455ee commit bb9f1ab
Show file tree
Hide file tree
Showing 18 changed files with 83 additions and 41 deletions.
3 changes: 2 additions & 1 deletion Vault/.obsidian/plugins/obsidian-style-settings/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
"minimal-style@@h4-weight": 600,
"minimal-style@@h4-variant": "normal",
"minimal-style@@h5-variant": "normal",
"minimal-style@@h6-variant": "normal"
"minimal-style@@h6-variant": "normal",
"minimal-style@@inline-title-size": "1.125em"
}
78 changes: 42 additions & 36 deletions Vault/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@
"type": "split",
"children": [
{
"id": "f43c07561a509078",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Dashboard.md",
"mode": "preview",
"source": false
"id": "8060cdf49dea58d2",
"type": "tabs",
"children": [
{
"id": "efc6674b2f676532",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Dashboard.md",
"mode": "preview",
"source": false
}
}
}
}
]
}
],
"direction": "vertical"
Expand Down Expand Up @@ -140,57 +146,57 @@
"table-editor-obsidian:Advanced Tables Toolbar": false,
"obsidian-excalidraw-plugin:Create new drawing": false,
"homepage:Open homepage": false,
"omnisearch:Omnisearch": false,
"obsidian-book-search-plugin:Create new book note": false,
"templater-obsidian:Templater": false,
"omnisearch:Omnisearch": false
"templater-obsidian:Templater": false
}
},
"active": "f43c07561a509078",
"active": "efc6674b2f676532",
"lastOpenFiles": [
"Notes/Notes Dashboard.md",
"Dashboard.md",
"Spaces/Trips/Trips Dashboard.md",
"Spaces/Trips/Testasdf.md",
"_data_/templates/general/Travel and Trip.md",
"Element Structure and Formats.md",
"_data_/templates/general/Blank page.md",
"_data_/templates/general/Insert header 6.md",
"_data_/templates/general/Insert header 5.md",
"_data_/templates/general/Insert header 4.md",
"_data_/templates/general/Insert header 3.md",
"_data_/templates/general/Insert header 2.md",
"_data_/templates/general/Insert header 1.md",
"Dashboard.md",
"Inbox.md",
"_data_/scripts/javascript/vaultplugins.js",
"_data_/scripts/vaultplugins.js",
"_data_/scripts/dataview/toc.js",
"_data_/scripts/dataview/recent-news.js",
"_data_/scripts/javascript/navbar.js",
"_data_/scripts/javascript/get-upcoming-rocket-launches.js",
"_data_/scripts/javascript/get-gnews.js",
"_data_/scripts/javascript/get-nasa-image-of-the-day.js",
"_data_/scripts/javascript",
"_data_/scripts/dataview",
"README.md",
"Notes/Notes Dashboard.md",
"_data_/pinned/Tasks.md",
"_data_/pinned/Sidebar Navigation.md",
"Projects/Projects.md",
"Projects/Top Secret Project/Home.md",
"_data_/pinned/Untitled",
"_data_/media/banners/banner-personal-01.jpg",
"_data_/media/banners/cosmic-dawn-initiative.png",
"_data_/media/banners/cosmic-dawn-initiative.png",
"_data_/media/banners/banner-personal-02.jpg",
"_data_/media/banners/banner-proprietary-01.jpg",
"_data_/media/banners/banner-proprietary-02.jpg",
"Inbox.md",
"Projects/Top Secret Project/Tasks.md",
"Projects/Top Secret Project/References.md",
"Projects/Top Secret Project/Notes/All Notes.md",
"Projects/Top Secret Project/Meetings/All Meetings.md",
"Projects/Top Secret Project/Notes",
"Projects/Top Secret Project/Meetings",
"Projects/Top Secret Project",
"README.md",
"_data_/media/dashboard-preview.png",
"_data_/media/255020736-42c6f878-46e3-4602-9224-5d92918bef07.png",
"_data_/templates/development/get_page_title.md",
"_data_/templates/development/Index Space.md",
"_data_/templates/development/Dashboard list page.md",
"_data_/templates/development/check_if_file_is_empty.md",
"_data_/templates/dataview/Dataview flat table.md",
"_data_/templates/dataview/Dataview nested table.md",
"_data_/templates/dataview/Insert navigation bar.md",
"_data_/templates/dataview/List installed plugins.md",
"Test.md",
"Projects/Testerz/Home.md",
"Projects/Testerz/Tasks.md",
"Projects/Testerz/References.md",
"Projects/Testerz/Notes/All Notes.md",
"Projects/Testerz/Notes",
"Projects/Testerz/Meetings",
"Projects/Testerz",
"Projects/test/Notes",
"Projects/test/Meetings",
"Projects/test",
"_data_/media/profile-picture-placeholder.jpg",
"_data_/media/example-image-02.png"
]
Expand Down
3 changes: 1 addition & 2 deletions Vault/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

---


<img align="right" width="500" height="auto" src="xxxx" alt="vault-preview-dashboard">
<img align="right" width="500" height="auto" src="https://user-images.githubusercontent.com/16641866/255501605-d9879f75-a767-4e5c-8981-d26622207220.png" alt="vault-preview-dashboard">


## Table of Contents
Expand Down
4 changes: 2 additions & 2 deletions Vault/Spaces/Trips/Trips Dashboard.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
banner: ""
date_created: 2023-07-08
date_modified: 2023-07-18
date_modified: 2023-07-17
description: List of all travel and trips.
document_type: dashboard
tags: dashboard travel trips
Expand All @@ -15,7 +15,7 @@ List of all travel and trips.

```button
name + Add trip
type note(Spaces/Trips/Entries/untitled trip) template
type note(Spaces/Trips/untitled trip) template
action general/Travel and trip
templater true
class tailwind-button-white
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions Vault/_data_/templates/general/Blank page.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<%*
let title = tp.file.title;
if(title.toLowerCase().includes("untitled")){
title = await tp.system.prompt("Page title");
if(title.length == 0){
title = `untitled page (${tp.date.now("YYYY-MM-DD")})`;
}
} else {
title = await tp.system.prompt("Page title", title);
}
await tp.file.rename(title);
const filePath = tp.file.path(true);
let fileObject = this.app.vault.getAbstractFileByPath(filePath);
let description = await tp.system.prompt("Page description (press enter to skip)");
_%>
---
date_created: <% `${tp.date.now("YYYY-MM-DD")}` %>
date_modified: <% `${tp.date.now("YYYY-MM-DD")}` %>
document_type:
tags:
---
# <% `${title}` %>
**Overview**
Description:: <% `${description}` %>

## Section 1


## Section 2

1 change: 1 addition & 0 deletions Vault/_data_/templates/general/Insert header 1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# <% tp.file.cursor(1) %>
1 change: 1 addition & 0 deletions Vault/_data_/templates/general/Insert header 2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## <% tp.file.cursor(1) %>
1 change: 1 addition & 0 deletions Vault/_data_/templates/general/Insert header 3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
### <% tp.file.cursor(1) %>
1 change: 1 addition & 0 deletions Vault/_data_/templates/general/Insert header 4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#### <% tp.file.cursor(1) %>
1 change: 1 addition & 0 deletions Vault/_data_/templates/general/Insert header 5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
##### <% tp.file.cursor(1) %>
1 change: 1 addition & 0 deletions Vault/_data_/templates/general/Insert header 6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
###### <% tp.file.cursor(1) %>

0 comments on commit bb9f1ab

Please sign in to comment.