some keybindings for zk-nvim.
This commit is contained in:
		
							parent
							
								
									d1ca19692b
								
							
						
					
					
						commit
						3f420834b6
					
				
					 2 changed files with 27 additions and 1 deletions
				
			
		| 
						 | 
					@ -27,7 +27,7 @@
 | 
				
			||||||
        bl = ''zk list --link-to $@'';
 | 
					        bl = ''zk list --link-to $@'';
 | 
				
			||||||
        i = ''zk edit --interactive'';
 | 
					        i = ''zk edit --interactive'';
 | 
				
			||||||
        unlinked-mentions = ''zk list --mentioned-by $1 --no-linked-by $1'';
 | 
					        unlinked-mentions = ''zk list --mentioned-by $1 --no-linked-by $1'';
 | 
				
			||||||
        wc = ''zk list --format '{{word-count}}\t{{title}}' --sort word-count $@'';
 | 
					        short = ''zk list --format '{{word-count}}\t{{title}}' --limit 20 --sort word-count $@'';
 | 
				
			||||||
        nt = ''zk new --title "''${*:2}" $1'';
 | 
					        nt = ''zk new --title "''${*:2}" $1'';
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -8,5 +8,31 @@
 | 
				
			||||||
    programs.nixvim = {
 | 
					    programs.nixvim = {
 | 
				
			||||||
      plugins.zk.enable = true;
 | 
					      plugins.zk.enable = true;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					    plugins.which-key.settings.spec = [
 | 
				
			||||||
 | 
					      {
 | 
				
			||||||
 | 
					        __unkeyed-1 = "<leader>z";
 | 
				
			||||||
 | 
					        group = "+zk";
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
 | 
					    keymaps = [
 | 
				
			||||||
 | 
					      {
 | 
				
			||||||
 | 
					        action = ":ZkNewFromTitleSelection";
 | 
				
			||||||
 | 
					        key = "<leader>zn";
 | 
				
			||||||
 | 
					        mode = "n";
 | 
				
			||||||
 | 
					        options = {
 | 
				
			||||||
 | 
					          silent = true;
 | 
				
			||||||
 | 
					          desc = "New zk note with title from selection";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					      {
 | 
				
			||||||
 | 
					        action = ":ZkaMatch";
 | 
				
			||||||
 | 
					        key = "<leader>zs";
 | 
				
			||||||
 | 
					        mode = "n";
 | 
				
			||||||
 | 
					        options = {
 | 
				
			||||||
 | 
					          silent = true;
 | 
				
			||||||
 | 
					          desc = "Search zk notes from selection";
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    ];
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue