decors / fish-ghq

ghq completion and keybinding for fish shell
MIT License
108 stars 26 forks source link

Distinct paths by awk #15

Open tomocrafter opened 1 year ago

tomocrafter commented 1 year ago

since ghq may generate multiple paths if gitconfig has couple definitions like

[ghq]
    root = ~/Repositories
[ghq "https://git.xxx.xxx"]
    root = ~/Repositories/Work/git.xxx.xxx

so this PR makes it unique when passing paths to fuzzy finders (I also try to find the option to distinct on fuzzy finders but fzf doesn't support it https://github.com/junegunn/fzf/issues/270 therefore I made this changes)