This commit is contained in:
Hadi 2024-06-27 18:32:17 +02:00
parent cd7b35389e
commit ae6818ed65
3 changed files with 39 additions and 35 deletions

View File

@ -13,9 +13,9 @@ function getList(){
content=$1 content=$1
name=$2 name=$2
list_start=$(echo "$content" | sed "/$name = \[/!d;=;Q") list_start=$(echo "$content" | sed "/$name = \[/!d;=;Q")
list=$(echo "$content" | tail +$list_start) list=$(echo "$content" | tail +"$list_start")
list_end=$(echo "$list" | sed '/\]/!d;=;Q') list_end=$(echo "$list" | sed '/\]/!d;=;Q')
list=$(echo "$list" | head -n$list_end) list=$(echo "$list" | head -n"$list_end")
echo "$list" echo "$list"
} }
@ -45,8 +45,7 @@ echo "| Description | Keybinding | Command |" >> "$KEYBINDINGS_FILE"
echo "| -- | -- | -- |" >>"$KEYBINDINGS_FILE" echo "| -- | -- | -- |" >>"$KEYBINDINGS_FILE"
echo "| Switch Workspace | SUPER + {Number} | workspace {Number} |" >>"$KEYBINDINGS_FILE" echo "| Switch Workspace | SUPER + {Number} | workspace {Number} |" >>"$KEYBINDINGS_FILE"
echo "| Move app to Workspace | SUPER SHIFT + {Number} | movetoworkspace {Number} |" >>"$KEYBINDINGS_FILE" echo "| Move app to Workspace | SUPER SHIFT + {Number} | movetoworkspace {Number} |" >>"$KEYBINDINGS_FILE"
echo "$keybindings" | while read line echo "$keybindings" | while read line; do
do
comment=$(echo "$line" | cut -d\# -f2) comment=$(echo "$line" | cut -d\# -f2)
line=$(echo "$line" | cut -d\# -f1) line=$(echo "$line" | cut -d\# -f1)
line=${line:1:${#line}-3} line=${line:1:${#line}-3}

View File

@ -2,8 +2,15 @@
programs.nixvim.plugins.obsidian = { programs.nixvim.plugins.obsidian = {
enable = config.var.obsidian; enable = config.var.obsidian;
settings = { settings = {
dir = "~/nextcloud/Notes"; completion = {
min_chars = 2;
nvim_cmp = true;
};
disable_frontmatter = true; disable_frontmatter = true;
workspaces = [{
name = "note";
path = "~/nextcloud/Notes";
}];
}; };
}; };
} }

View File

@ -2,6 +2,8 @@
home.packages = with pkgs; [ bat ripgrep tldr ]; home.packages = with pkgs; [ bat ripgrep tldr ];
home.sessionPath = [ "$HOME/go/bin" ];
programs.zsh = { programs.zsh = {
enable = true; enable = true;
enableCompletion = true; enableCompletion = true;
@ -27,10 +29,6 @@
size = 1000000; size = 1000000;
}; };
home.sessionPath = [
"$HOME/go/bin"
];
profileExtra = lib.optionalString (config.home.sessionPath != [ ]) '' profileExtra = lib.optionalString (config.home.sessionPath != [ ]) ''
export PATH="$PATH''${PATH:+:}${ export PATH="$PATH''${PATH:+:}${
lib.concatStringsSep ":" config.home.sessionPath lib.concatStringsSep ":" config.home.sessionPath