captn3m0 / hackertray

:information_source: HackerTray is a minimalist Hacker News app for Linux

Home Page:https://github.com/captn3m0/hackertray

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to tackle comments?

captn3m0 opened this issue · comments

commented

My initial idea was to use a "right click" on any menuitem to open the comments link instead of the main url. However, it doesn't seem to be possible to capture right-click on a menu item.

Another way around is to have a "comments" sub-menu, just above the separator, which gives the same list as root, except that it links to the comments on clicking.

And yet another way would be to just ignore the comment links alltogether and let hackertray remain as it is.

So to ask, which way should I proceed?

Or perhaps open both the link and comments? It is less likely that someone doesn't want to read the comments on Hackernews.

commented

What about having a "Comments" check option (below the separator) that enables/disables whether comment link is opened as well or not? If its ticked, we open both links, otherwise just one.

That sounds pretty reasonable. While you're at it, perhaps add the option to only open the comments when a meta key is pressed.

commented

Wow! Nice idea. Meta key sounds the perfect way to do it. Thanks.

Would something like this work with check/uncheck:
image

commented

@valgaze That's exactly what I mentioned in my comment above

@captn3m0 Right- is it smart to style menu items w/ colors?

commented

No, I don't think so. That would make it stand out.

commented

I've pushed a basic comments feature to 1.9.1. Please upgrade to get it (instructions in README).

@omeid I haven't been able to figure out how to get Meta key status in python+gtk. All I've seen is how to catch a keypress in a gtk Window. Do you have any idea on how to proceed for that?

commented

I have some other ideas about how to better handle comments, but since a basic version is already available, I'm closing this.