Compare commits
	
		
			2 commits
		
	
	
		
			d1ca19692b
			...
			c86b3bac98
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| c86b3bac98 | |||
| 3f420834b6 | 
					 2 changed files with 27 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -27,7 +27,7 @@
 | 
			
		|||
        bl = ''zk list --link-to $@'';
 | 
			
		||||
        i = ''zk edit --interactive'';
 | 
			
		||||
        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'';
 | 
			
		||||
      };
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,32 @@
 | 
			
		|||
  config = lib.mkIf config.user.nvim.enable {
 | 
			
		||||
    programs.nixvim = {
 | 
			
		||||
      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