mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
chore[client]: enable obsidian omnisearch keybind
This commit is contained in:
parent
41240db5c9
commit
baf7580e99
2 changed files with 154 additions and 128 deletions
|
|
@ -14530,142 +14530,155 @@ This service changes the screen hue at night. I am not sure if that really does
|
||||||
|
|
||||||
#+begin_src nix-ts :tangle modules/home/common/obsidian.nix
|
#+begin_src nix-ts :tangle modules/home/common/obsidian.nix
|
||||||
{ lib, config, pkgs, nixosConfig ? config, ... }:
|
{ lib, config, pkgs, nixosConfig ? config, ... }:
|
||||||
let
|
let
|
||||||
moduleName = "obsidian";
|
moduleName = "obsidian";
|
||||||
inherit (nixosConfig.repo.secrets.common.obsidian) userIgnoreFilters;
|
inherit (nixosConfig.repo.secrets.common.obsidian) userIgnoreFilters;
|
||||||
name = "Main";
|
name = "Main";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} with settings";
|
options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} with settings";
|
||||||
config = lib.mkIf config.swarselmodules.${moduleName} {
|
config = lib.mkIf config.swarselmodules.${moduleName} {
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/app.json".force = true;
|
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/app.json".force = true;
|
||||||
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/appearance.json".force = true;
|
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/appearance.json".force = true;
|
||||||
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/core-plugins.json".force = true;
|
"${config.programs.obsidian.vaults.${name}.target}/.obsidian/core-plugins.json".force = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.obsidian =
|
programs.obsidian =
|
||||||
{
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.obsidian;
|
package = pkgs.obsidian;
|
||||||
defaultSettings = {
|
defaultSettings = {
|
||||||
app = {
|
app = {
|
||||||
attachmentFolderPath = "attachments";
|
attachmentFolderPath = "attachments";
|
||||||
alwaysUpdateLinks = true;
|
alwaysUpdateLinks = true;
|
||||||
spellcheck = false;
|
spellcheck = false;
|
||||||
inherit userIgnoreFilters;
|
inherit userIgnoreFilters;
|
||||||
vimMode = false;
|
vimMode = false;
|
||||||
newFileLocation = "current";
|
newFileLocation = "current";
|
||||||
};
|
|
||||||
corePlugins = [
|
|
||||||
"backlink"
|
|
||||||
"bookmarks"
|
|
||||||
"canvas"
|
|
||||||
"command-palette"
|
|
||||||
"daily-notes"
|
|
||||||
"editor-status"
|
|
||||||
"file-explorer"
|
|
||||||
"file-recovery"
|
|
||||||
"global-search"
|
|
||||||
"graph"
|
|
||||||
"note-composer"
|
|
||||||
"outgoing-link"
|
|
||||||
"outline"
|
|
||||||
"page-preview"
|
|
||||||
"properties"
|
|
||||||
"slides"
|
|
||||||
"switcher"
|
|
||||||
"tag-pane"
|
|
||||||
"templates"
|
|
||||||
"word-count"
|
|
||||||
];
|
|
||||||
communityPlugins = with pkgs.swarsel-nix; [
|
|
||||||
advanced-tables
|
|
||||||
calendar
|
|
||||||
file-hider
|
|
||||||
linter
|
|
||||||
omnisearch
|
|
||||||
sort-and-permute-lines
|
|
||||||
tag-wrangler
|
|
||||||
tray
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
vaults = {
|
hotkeys = {
|
||||||
${name} = {
|
"graph:open" = [ ];
|
||||||
target = "./Obsidian/${name}";
|
"omnisearch:show-modal" = [
|
||||||
settings = {
|
{
|
||||||
appearance = {
|
modifiers = [
|
||||||
baseFontSize = lib.mkForce 19;
|
"Mod"
|
||||||
};
|
|
||||||
communityPlugins = with pkgs.swarsel-nix; [
|
|
||||||
{
|
|
||||||
pkg = advanced-tables;
|
|
||||||
enable = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
pkg = calendar;
|
|
||||||
enable = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
pkg = sort-and-permute-lines;
|
|
||||||
enable = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
pkg = tag-wrangler;
|
|
||||||
enable = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
pkg = tray;
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
launchOnStartup = false;
|
|
||||||
hideOnLaunch = true;
|
|
||||||
runInBackground = true;
|
|
||||||
hideTaskbarIcon = false;
|
|
||||||
createTrayIcon = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
pkg = file-hider;
|
|
||||||
enable = true;
|
|
||||||
settings =
|
|
||||||
{
|
|
||||||
hidden = true;
|
|
||||||
hiddenList = [
|
|
||||||
"attachments"
|
|
||||||
"images"
|
|
||||||
"ltximg"
|
|
||||||
"logseq"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
pkg = linter;
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
auto-correct-common-misspellings = {
|
|
||||||
skip-words-with-multiple-capitals = true;
|
|
||||||
};
|
|
||||||
convert-bullet-list-markers = {
|
|
||||||
enabled = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
{
|
|
||||||
pkg = omnisearch;
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
hideExcluded = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
|
key = "S";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
"editor:save-file" = [ ];
|
||||||
|
"editor:delete-paragraph" = [ ];
|
||||||
|
};
|
||||||
|
corePlugins = [
|
||||||
|
"backlink"
|
||||||
|
"bookmarks"
|
||||||
|
"canvas"
|
||||||
|
"command-palette"
|
||||||
|
"daily-notes"
|
||||||
|
"editor-status"
|
||||||
|
"file-explorer"
|
||||||
|
"file-recovery"
|
||||||
|
"global-search"
|
||||||
|
"graph"
|
||||||
|
"note-composer"
|
||||||
|
"outgoing-link"
|
||||||
|
"outline"
|
||||||
|
"page-preview"
|
||||||
|
"properties"
|
||||||
|
"slides"
|
||||||
|
"switcher"
|
||||||
|
"tag-pane"
|
||||||
|
"templates"
|
||||||
|
"word-count"
|
||||||
|
];
|
||||||
|
communityPlugins = with pkgs.swarsel-nix; [
|
||||||
|
advanced-tables
|
||||||
|
calendar
|
||||||
|
file-hider
|
||||||
|
linter
|
||||||
|
omnisearch
|
||||||
|
sort-and-permute-lines
|
||||||
|
tag-wrangler
|
||||||
|
tray
|
||||||
|
];
|
||||||
|
};
|
||||||
|
vaults = {
|
||||||
|
${name} = {
|
||||||
|
target = "./Obsidian/${name}";
|
||||||
|
settings = {
|
||||||
|
appearance = {
|
||||||
|
baseFontSize = lib.mkForce 19;
|
||||||
};
|
};
|
||||||
|
communityPlugins = with pkgs.swarsel-nix; [
|
||||||
|
{
|
||||||
|
pkg = advanced-tables;
|
||||||
|
enable = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pkg = calendar;
|
||||||
|
enable = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pkg = sort-and-permute-lines;
|
||||||
|
enable = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pkg = tag-wrangler;
|
||||||
|
enable = true;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pkg = tray;
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
launchOnStartup = false;
|
||||||
|
hideOnLaunch = true;
|
||||||
|
runInBackground = true;
|
||||||
|
hideTaskbarIcon = false;
|
||||||
|
createTrayIcon = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pkg = file-hider;
|
||||||
|
enable = true;
|
||||||
|
settings =
|
||||||
|
{
|
||||||
|
hidden = true;
|
||||||
|
hiddenList = [
|
||||||
|
"attachments"
|
||||||
|
"images"
|
||||||
|
"ltximg"
|
||||||
|
"logseq"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pkg = linter;
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
auto-correct-common-misspellings = {
|
||||||
|
skip-words-with-multiple-capitals = true;
|
||||||
|
};
|
||||||
|
convert-bullet-list-markers = {
|
||||||
|
enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
pkg = omnisearch;
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
hideExcluded = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** Anki
|
**** Anki
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,19 @@ in
|
||||||
vimMode = false;
|
vimMode = false;
|
||||||
newFileLocation = "current";
|
newFileLocation = "current";
|
||||||
};
|
};
|
||||||
|
hotkeys = {
|
||||||
|
"graph:open" = [ ];
|
||||||
|
"omnisearch:show-modal" = [
|
||||||
|
{
|
||||||
|
modifiers = [
|
||||||
|
"Mod"
|
||||||
|
];
|
||||||
|
key = "S";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
"editor:save-file" = [ ];
|
||||||
|
"editor:delete-paragraph" = [ ];
|
||||||
|
};
|
||||||
corePlugins = [
|
corePlugins = [
|
||||||
"backlink"
|
"backlink"
|
||||||
"bookmarks"
|
"bookmarks"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue