first commit

This commit is contained in:
Bram Adams
2022-12-08 02:28:02 -06:00
commit a17d1c688e
73 changed files with 168738 additions and 0 deletions

96
.obsidian/plugins/quickadd/data.json vendored Normal file
View File

@@ -0,0 +1,96 @@
{
"choices": [
{
"id": "7b164c2a-2d52-47cd-8785-7084c4b085f6",
"name": "Add to Project Scratchpad",
"type": "Macro",
"command": true,
"macroId": "1a5a9861-b1b8-49dc-8d31-54735fa12c29"
},
{
"id": "ac457949-03eb-4bdb-b6c2-b79781d35a8a",
"name": "Create New Project",
"type": "Macro",
"command": true,
"macroId": "b53688cc-61d5-4e31-906a-66915bec0925"
}
],
"macros": [
{
"name": "Add to Project Scratchpad",
"id": "1a5a9861-b1b8-49dc-8d31-54735fa12c29",
"commands": [
{
"name": "quick-add-projects-folder-variables",
"type": "UserScript",
"id": "14bc73f8-8b77-4b89-837d-df4829da8c5d",
"path": "_scripts/quick-add-projects-folder-variables.js",
"settings": {}
},
{
"name": "quick-add-file-filter",
"type": "UserScript",
"id": "877ba274-dc6e-4539-a980-604a29ee5163",
"path": "_scripts/quick-add-file-filter.js",
"settings": {}
},
{
"name": "Capture - Add to Scratchpad",
"type": "NestedChoice",
"id": "4c65d716-1b43-4341-888c-82380e98c55b",
"choice": {
"id": "9a56d0cc-132b-44f6-89c9-b62a00bf824c",
"name": "Capture - Add to Scratchpad",
"type": "Capture",
"command": false,
"appendLink": false,
"captureTo": "{{VALUE:notes}}",
"captureToActiveFile": false,
"createFileIfItDoesntExist": {
"enabled": false,
"createWithTemplate": false,
"template": ""
},
"format": {
"enabled": true,
"format": "{{date}} - {{value}} "
},
"insertAfter": {
"enabled": false,
"after": "",
"insertAtEnd": false,
"createIfNotFound": false,
"createIfNotFoundLocation": "top"
},
"prepend": true,
"task": false,
"openFileInNewTab": {
"enabled": false,
"direction": "vertical",
"focus": true
},
"openFile": false,
"openFileInMode": "default"
}
}
],
"runOnStartup": false
},
{
"name": "Create New Project",
"id": "b53688cc-61d5-4e31-906a-66915bec0925",
"commands": [
{
"name": "quick-add-create-project-folder",
"type": "UserScript",
"id": "b9f1c2c3-3951-44dc-beb8-751eee444e0c",
"path": "_scripts/quick-add-create-project-folder.js",
"settings": {}
}
],
"runOnStartup": false
}
],
"inputPrompt": "single-line",
"devMode": false
}

37501
.obsidian/plugins/quickadd/main.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
{
"id": "quickadd",
"name": "QuickAdd",
"version": "0.7.0",
"minAppVersion": "0.13.19",
"description": "Quickly add new pages or content to your vault.",
"author": "Christian B. B. Houmann",
"authorUrl": "https://bagerbach.com",
"isDesktopOnly": false
}

210
.obsidian/plugins/quickadd/styles.css vendored Normal file
View File

@@ -0,0 +1,210 @@
.configureMacroDiv {
display: grid;
grid-template-rows: 1fr;
min-width: 12rem;
}
.configureMacroDivItem {
display: flex;
align-content: center;
justify-content: space-between;
margin-bottom: 10px;
}
.configureMacroDivItemButton {
display: flex;
align-content: center;
justify-content: center;
margin-bottom: 10px;
}
.macroContainer {
display: grid;
grid-template-rows: repeat(auto-fill, 120px);
grid-gap: 40px;
overflow-y: auto;
max-height: 30em;
padding: 2em;
}
/* Mobile */
@media screen and (max-width: 540px) {
.macroContainer1 {
grid-template-columns: repeat(1, 1fr);
}
.macroContainer2 {
grid-template-columns: repeat(1, 1fr);
}
.macroContainer3 {
grid-template-columns: repeat(1, 1fr);
}
.wideInputPromptInputEl {
width: 20rem;
max-width: 100%;
height: 3rem;
}
}
/* Tablet */
@media screen and (max-width: 540px) and (max-width: 780px) {
.macroContainer1 {
grid-template-columns: repeat(1, 1fr);
}
.macroContainer2 {
grid-template-columns: repeat(2, 1fr);
}
.macroContainer3 {
grid-template-columns: repeat(2, 1fr);
}
.wideInputPromptInputEl {
width: 30rem;
max-width: 100%;
height: 20rem;
}
}
/* Everything else */
@media screen and (min-width: 781px) {
.macroContainer1 {
grid-template-columns: repeat(1, 1fr);
}
.macroContainer2 {
grid-template-columns: repeat(2, 1fr);
}
.macroContainer3 {
grid-template-columns: repeat(2, 1fr);
}
.wideInputPromptInputEl {
width: 40rem;
max-width: 100%;
height: 20rem;
}
}
.addMacroBarContainer {
display: flex;
align-content: center;
justify-content: space-around;
margin-top: 20px;
}
.captureToActiveFileContainer {
display: flex;
align-content: center;
justify-content: space-between;
margin-bottom: 10px;
}
.choiceNameHeader {
text-align: center;
}
.choiceNameHeader:hover {
cursor: pointer;
}
.folderInputContainer {
display: flex;
align-content: center;
justify-content: space-between;
margin-bottom: 8px;
gap: 4px;
}
.selectMacroDropdownContainer {
display: flex;
align-content: center;
justify-content: center;
}
.quickAddModal .modal {
min-width: 35%;
overflow-y: auto;
max-height: 70%;
}
.checkboxRowContainer {
display: grid;
grid-template-rows: auto;
align-content: center;
}
.checkboxRow {
display: flex;
justify-content: space-between;
align-content: center;
}
.checkboxRow .checkbox-container {
flex-shrink: 0;
}
.checkboxRow span {
font-size: 16px;
word-break: break-all;
}
.submitButtonContainer {
display: flex;
align-content: center;
justify-content: center;
}
.chooseFolderWhenCreatingNoteContainer {
display: flex;
align-content: center;
justify-content: space-between;
margin-bottom: 10px;
}
.clickable:hover {
cursor: pointer;
}
.quickAddCommandListItem {
display: flex;
flex: 1 1 auto;
align-items: center;
justify-content: space-between;
}
.quickCommandContainer {
display: flex;
justify-content: flex-end;
align-content: center;
margin-bottom: 1em;
}
.yesNoPromptButtonContainer {
display: flex;
align-items: center;
justify-content: space-around;
margin-top: 2rem;
}
.yesNoPromptParagraph {
text-align: center;
}
.qaFileSuggestionItem {
display: flex;
flex-direction: column;
width: 100%;
}
.qaFileSuggestionItem .suggestion-main-text {
font-weight: bold;
}
.qaFileSuggestionItem .suggestion-sub-text {
font-style: italic;
}