diff --git a/gh/config.yml b/gh/config.yml index fe19a0d..2c67d30 100644 --- a/gh/config.yml +++ b/gh/config.yml @@ -9,7 +9,9 @@ prompt: enabled pager: # Aliases allow you to create nicknames for gh commands aliases: - co: pr checkout + co: > + !(ref="$(gh pr view "$1" --json 'headRefName' --jq '.headRefName')" && git fetch-branch "$ref" && git switch "$ref") + 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 31ee982..7ae9c7e 100644 --- a/helix/config.toml +++ b/helix/config.toml @@ -116,11 +116,9 @@ 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;"