cheeaun / hackerweb

A simply readable Hacker News web app

Home Page:http://hackerwebapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Direct link to content in left pane

captn3m0 opened this issue · comments

commented

The older (single pane) version of hnmobile used to open links by default. And it offered a second link to the comments. I'd like that sort of behavior in the new version.

Possible ideas:

  1. Same as previous version. Title links to content. "n comments" links to comments
  2. Create a small url icon/text which links to the content.
  3. Offer a forced way to visit the iphone version

Opening the comments first feels weird, because as a reader I have no context for the comments.

One question, do you open the links in a new tab or just load it in the current tab, when using the single-pane hnmobile (on iPad)?

commented

Usually both, since the safari cache was good enough not to cause a refresh on the back button.

But in most cases, I'd open it on a new tab. If you know someone else who uses this on ipad, please ask there opinions as well.

If it is implemented as a normal link (<a href="http://external/">), it would respond to a long hold, and would give me an option to open in new tab. You could still intercept a touch event to open it in the side window.

You know what would be awesome? Using either two-finger touch/swipe for the third action. The following would be my preferences

a) View comments in right pane - tap
b) Open link in new tab - tap
c) Open link in right pane - swipe/two finger touch

This way, if I click on a link, I shift to the content, and on closing that, I reach the comments, which I can read in context now. In the rare case I want to open it in right pane, I have a fallback as well.

Sorry for giving such a long answer when you asked a simple question. I'd be willing to work on this (a/b/c).