Add more personal obsidian configs
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -38,8 +38,27 @@ in
|
||||
|
||||
corePlugins = [
|
||||
"bookmarks"
|
||||
{
|
||||
name = "canvas";
|
||||
options = {
|
||||
newFileLocation = "folder";
|
||||
newFileFolderPath = "Inbox";
|
||||
defaultWheelBehavior = "zoom";
|
||||
};
|
||||
}
|
||||
"canvas"
|
||||
"command-palette"
|
||||
{
|
||||
name = "command-palette";
|
||||
options = {
|
||||
pinned = [
|
||||
"file-explorer:new-file"
|
||||
"canvas:new-file"
|
||||
"obsidian-excalidraw-plugin:excalidraw-autocreate-on-current"
|
||||
"obsidian-kanban:create-new-kanban-board"
|
||||
"obsidian-read-it-later:save-clipboard-to-notice"
|
||||
];
|
||||
};
|
||||
}
|
||||
"editor-status"
|
||||
"file-explorer"
|
||||
"global-search"
|
||||
@@ -53,10 +72,34 @@ in
|
||||
"tag-pane"
|
||||
];
|
||||
|
||||
plugins = [
|
||||
communityPlugins = [
|
||||
{
|
||||
pkg = import ./plugins/better-word-count { inherit pkgs; };
|
||||
options = {
|
||||
statusBar = [
|
||||
{
|
||||
suffix = " words";
|
||||
metric = {
|
||||
type = 0;
|
||||
counter = 0;
|
||||
};
|
||||
}
|
||||
];
|
||||
altBar = [
|
||||
{
|
||||
suffix = " files";
|
||||
metric = {
|
||||
type = 2;
|
||||
counter = 6;
|
||||
};
|
||||
}
|
||||
];
|
||||
countComments = true; # Inverse
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/custom-sort { inherit pkgs; };
|
||||
extraFiles."data.json".source = (pkgs.formats.json { }).generate "data.json" {
|
||||
options = {
|
||||
suspended = false;
|
||||
statusBarEntryEnabled = false;
|
||||
notificationsEnabled = false;
|
||||
@@ -68,7 +111,7 @@ in
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/dataview { inherit pkgs; };
|
||||
extraFiles."data.json".source = (pkgs.formats.json { }).generate "data.json" {
|
||||
options = {
|
||||
enableDataviewJs = true;
|
||||
enableInlineDataviewJs = true;
|
||||
warnOnEmptyResult = false;
|
||||
@@ -78,7 +121,7 @@ in
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/excalidraw { inherit pkgs; };
|
||||
extraFiles."data.json".source = (pkgs.formats.json { }).generate "data.json" {
|
||||
options = {
|
||||
folder = "Inbox";
|
||||
templateFilePath = "Templates";
|
||||
scriptFolderPath = "Scripts";
|
||||
@@ -99,9 +142,16 @@ in
|
||||
showNewVersionNotification = false;
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/folder-note { inherit pkgs; };
|
||||
options = {
|
||||
folderNoteHide = false;
|
||||
folderNoteStrInit = "";
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/kanban { inherit pkgs; };
|
||||
extraFiles."data.json".source = (pkgs.formats.json { }).generate "data.json" {
|
||||
options = {
|
||||
move-tags = true;
|
||||
move-dates = true;
|
||||
date-display-format = "DD/MM/YYYY";
|
||||
@@ -113,9 +163,18 @@ in
|
||||
show-board-settings = false;
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/languagetool { inherit pkgs; };
|
||||
options = {
|
||||
shouldAutoCheck = true;
|
||||
pickyMode = true;
|
||||
staticLanguage = "auto";
|
||||
englishVariety = "en-US";
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/linter { inherit pkgs; };
|
||||
extraFiles."data.json".source = (pkgs.formats.json { }).generate "data.json" {
|
||||
options = {
|
||||
lintOnSave = true;
|
||||
displayChanged = false;
|
||||
lintOnFileChange = true;
|
||||
@@ -258,23 +317,175 @@ in
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/map-view { inherit pkgs; };
|
||||
options = {
|
||||
"markerIconRules" = [
|
||||
{
|
||||
"ruleName" = "default";
|
||||
"preset" = true;
|
||||
"iconDetails" = {
|
||||
"prefix" = "fas";
|
||||
"icon" = "fa-circle";
|
||||
"markerColor" = "blue";
|
||||
};
|
||||
}
|
||||
{
|
||||
"ruleName" = "#restaurant";
|
||||
"preset" = false;
|
||||
"iconDetails" = {
|
||||
"prefix" = "fas";
|
||||
"icon" = "fa-utensils";
|
||||
"markerColor" = "red";
|
||||
};
|
||||
}
|
||||
{
|
||||
"ruleName" = "#bar";
|
||||
"preset" = false;
|
||||
"iconDetails" = {
|
||||
"prefix" = "fas";
|
||||
"icon" = "fa-martini-glass";
|
||||
"markerColor" = "purple";
|
||||
};
|
||||
}
|
||||
{
|
||||
"ruleName" = "#coffee";
|
||||
"preset" = false;
|
||||
"iconDetails" = {
|
||||
"prefix" = "fas";
|
||||
"icon" = "fa-mug-hot";
|
||||
"markerColor" = "purple";
|
||||
};
|
||||
}
|
||||
{
|
||||
"ruleName" = "#culture";
|
||||
"preset" = false;
|
||||
"iconDetails" = {
|
||||
"prefix" = "fas";
|
||||
"icon" = "fa-building-columns";
|
||||
"markerColor" = "black";
|
||||
};
|
||||
}
|
||||
{
|
||||
"ruleName" = "#shopping";
|
||||
"preset" = false;
|
||||
"iconDetails" = {
|
||||
"prefix" = "fas";
|
||||
"icon" = "fa-shopping-bag";
|
||||
"markerColor" = "yellow";
|
||||
};
|
||||
}
|
||||
{
|
||||
"ruleName" = "#entertainment";
|
||||
"preset" = false;
|
||||
"iconDetails" = {
|
||||
"prefix" = "fas";
|
||||
"icon" = "fa-microphone";
|
||||
"markerColor" = "pink";
|
||||
};
|
||||
}
|
||||
{
|
||||
"ruleName" = "#nature";
|
||||
"preset" = false;
|
||||
"iconDetails" = {
|
||||
"prefix" = "fas";
|
||||
"icon" = "fa-tree";
|
||||
"markerColor" = "green";
|
||||
};
|
||||
}
|
||||
];
|
||||
"searchProvider" = "google";
|
||||
"geocodingApiMethod" = "path";
|
||||
"geocodingApiPath" = hmConfig.sops.secrets."google/geocoding".path;
|
||||
"useGooglePlaces" = true;
|
||||
"letZoomBeyondMax" = true;
|
||||
"showGeolinkPreview" = true;
|
||||
"newNotePath" = "Inbox";
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/minimal-settings { inherit pkgs; };
|
||||
extraFiles."data.json".source = (pkgs.formats.json { }).generate "data.json" {
|
||||
options = {
|
||||
editorFont = "var(--font-monospace)";
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/outliner { inherit pkgs; };
|
||||
extraFiles."data.json".source = (pkgs.formats.json { }).generate "data.json" {
|
||||
options = {
|
||||
styleLists = false;
|
||||
stickCursor = "never";
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/read-it-later { inherit pkgs; };
|
||||
options = {
|
||||
inboxDir = "Inbox";
|
||||
assetsDir = "Inbox/assets";
|
||||
openNewNote = true;
|
||||
youtubeNote = ''
|
||||
## [%videoTitle%](%videoURL%)
|
||||
|
||||
%videoPlayer%
|
||||
'';
|
||||
vimeoNote = ''
|
||||
## [%videoTitle%](%videoURL%)
|
||||
|
||||
%videoPlayer%
|
||||
'';
|
||||
bilibiliNote = ''
|
||||
## [%videoTitle%](%videoURL%)
|
||||
|
||||
%videoPlayer%
|
||||
'';
|
||||
twitterNote = ''
|
||||
## [%tweetAuthorName%](%tweetURL%)
|
||||
|
||||
%tweetContent%
|
||||
'';
|
||||
parsableArticleNote = ''
|
||||
## [%articleTitle%](%articleURL%)
|
||||
|
||||
%articleContent%
|
||||
'';
|
||||
mastodonNote = ''
|
||||
## [%tootAuthorName%](%tootURL%)
|
||||
|
||||
> %tootContent%
|
||||
'';
|
||||
stackExchangeNote = ''
|
||||
## [%questionTitle%](%questionURL%)
|
||||
|
||||
Author: [%authorName%](%authorProfileURL%)
|
||||
|
||||
%questionContent%
|
||||
|
||||
***
|
||||
|
||||
%topAnswer%
|
||||
|
||||
%answers%
|
||||
'';
|
||||
stackExchangeAnswer = ''
|
||||
Answered by: [%authorName%](%authorProfileURL%)
|
||||
|
||||
> %answerContent%
|
||||
'';
|
||||
tikTokNote = ''
|
||||
## [%videoDescription%](%videoURL%)
|
||||
|
||||
%videoPlayer%
|
||||
'';
|
||||
notParsableArticleNote = "[%previewURL%](%articleURL%)";
|
||||
textSnippetNote = "%content%";
|
||||
downloadImagesInArticleDir = true;
|
||||
downloadMastodonMediaAttachmentsInDir = true;
|
||||
downloadStackExchangeAssetsInDir = true;
|
||||
};
|
||||
}
|
||||
(import ./plugins/style-settings { inherit pkgs; })
|
||||
{
|
||||
pkg = import ./plugins/tasks { inherit pkgs; };
|
||||
extraFiles."data.json".source = (pkgs.formats.json { }).generate "data.json" {
|
||||
options = {
|
||||
globalQuery = "short mode";
|
||||
globalFilter = "#todo";
|
||||
removeGlobalFilter = true;
|
||||
@@ -419,6 +630,12 @@ in
|
||||
};
|
||||
};
|
||||
}
|
||||
{
|
||||
pkg = import ./plugins/url-into-selection { inherit pkgs; };
|
||||
options = {
|
||||
nothingSelected = 2;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
cssSnippets = [ ./snippets/file-explorer-separators.css ];
|
||||
@@ -449,7 +666,7 @@ in
|
||||
key = "T";
|
||||
}
|
||||
];
|
||||
"advanced-cursors:add-cursor-above" = [
|
||||
"editor:add-cursor-above" = [
|
||||
{
|
||||
modifiers = [
|
||||
"Mod"
|
||||
@@ -458,7 +675,7 @@ in
|
||||
key = "ArrowUp";
|
||||
}
|
||||
];
|
||||
"advanced-cursors:add-cursor-below" = [
|
||||
"editor:add-cursor-below" = [
|
||||
{
|
||||
modifiers = [
|
||||
"Mod"
|
||||
@@ -467,6 +684,8 @@ in
|
||||
key = "ArrowDown";
|
||||
}
|
||||
];
|
||||
"obsidian-outliner:move-list-item-up" = [ ];
|
||||
"obsidian-outliner:move-list-item-down" = [ ];
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -477,6 +696,8 @@ in
|
||||
}) hmConfig.programs.obsidian.vaults;
|
||||
};
|
||||
|
||||
sops.secrets."google/geocoding" = { };
|
||||
|
||||
home.persistence."/cache${userConfig.home}".directories = [ ".config/obsidian" ];
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user