meiji163 / gh-notify

GitHub CLI extension to display GitHub notifications
The Unlicense
209 stars 21 forks source link

`ctrl-b` doesn't work on issues #55

Closed rEnr3n closed 1 year ago

rEnr3n commented 1 year ago
  1. Run gh notify
  2. Press ctrl-b on an issue

Nothing happens. It works as expected for releases.

LangLangBart commented 1 year ago

should do the same as above

open https://github.com/meiji163/gh-notify/issues/55


---

- does this python solution work for you
  - Ref: [StackOverflow: Shell script to open a URL](https://stackoverflow.com/questions/38147620/shell-script-to-open-a-url) (1/Jul/16)

```sh
python -m webbrowser "https://github.com/meiji163/gh-notify/issues/55"
url="https://github.com/meiji163/gh-notify/issues/55"

if uname | grep -q Darwin; then
    open "$url"
elif uname | grep -q Linux; then
    xdg-open "$url"
else
    start "$url"
fi

thanks for reporting

rEnr3n commented 1 year ago

I'm using linux. All of the commands you suggested work except for the open command. AFAIK, it's only available in macos. It doesn't exist on a linux system; xdg-open does.

LangLangBart commented 1 year ago

I pushed a fix, it would be helpful to leave a comment if it solved the problem for you

rEnr3n commented 1 year ago

Confirmed working.