fix hoard shortcut problem

This commit is contained in:
Ingolf Wagner 2023-05-27 00:13:30 +02:00
parent bc97a8f209
commit ecdbed74dc
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -23,7 +23,7 @@ in
default_namespace = "default"; default_namespace = "default";
config_home_path = "/home/palo/.config/hoard"; config_home_path = "/home/palo/.config/hoard";
trove_path = "/home/palo/.config/hoard/trove.yml"; trove_path = "/home/palo/.config/hoard/trove.yml";
query_prefix = " >"; query_prefix = " >";
primary_color = [ 87 142 87 ]; primary_color = [ 87 142 87 ];
secondary_color = [ 203 184 144 ]; secondary_color = [ 203 184 144 ];
tertiary_color = [ 30 30 30 ]; tertiary_color = [ 30 30 30 ];
@ -32,15 +32,23 @@ in
read_from_current_directory = true; read_from_current_directory = true;
}; };
programs.zsh.initExtra = '' programs.zsh.initExtra = ''
export HOARD_NOBIND=1
source ${hoardSrc}/src/shell/hoard.zsh source ${hoardSrc}/src/shell/hoard.zsh
bindkey '^x' _hoard_list_widget
''; '';
}; };
# use showkey -a
# todo Ctrl-h is equivalent to Ctrl-Backspace (for some reason)
programs.zsh.interactiveShellInit = '' programs.zsh.interactiveShellInit = ''
export HOARD_NOBIND=1
source ${hoardSrc}/src/shell/hoard.zsh source ${hoardSrc}/src/shell/hoard.zsh
bindkey '^x' _hoard_list_widget
''; '';
programs.bash.interactiveShellInit = '' programs.bash.interactiveShellInit = ''
export HOARD_NOBIND=1
source ${hoardSrc}/src/shell/hoard.bash source ${hoardSrc}/src/shell/hoard.bash
bind -x '"\C-x": __hoard_list'
''; '';
} }