diff --git a/gh/config.yml b/gh/config.yml index 2c67d30..fe19a0d 100644 --- a/gh/config.yml +++ b/gh/config.yml @@ -9,9 +9,7 @@ prompt: enabled pager: # Aliases allow you to create nicknames for gh commands aliases: - co: > - !(ref="$(gh pr view "$1" --json 'headRefName' --jq '.headRefName')" && git fetch-branch "$ref" && git switch "$ref") - + co: pr checkout prw: pr view -w commit: > !(repo=$(gh repo view --json url --jq .url) && ref="${1-HEAD}" && commit=$(git rev-parse "$ref") && open "${repo}/commit/${commit}") diff --git a/helix/config.toml b/helix/config.toml index 7ae9c7e..31ee982 100644 --- a/helix/config.toml +++ b/helix/config.toml @@ -116,9 +116,11 @@ tabpad = "‒" [keys.normal.space] "*" = [":set-register / %sh{coil fuzzy '%{selection}'}", "global_search"] +"K" = "goto_hover" [keys.select.space] "*" = [":set-register / %sh{coil fuzzy '%{selection}'}", "global_search"] +"K" = "goto_hover" [keys.normal."["] "F" = "@maf;"