Pebble-RSS-Reader icon indicating copy to clipboard operation
Pebble-RSS-Reader copied to clipboard

In list of articles, title of highlighted article should autoscroll, so user can see full headline.

Open Wowfunhappy opened this issue 5 years ago • 5 comments

In the list of articles, nearly every headline is too long and gets cut off. To mitigate this, the title of the currently-highlighted article should automatically scroll left-to-right, a la an old-school marquee tag.

This would need to be done in C.

Evernote's Pebble app had this functionality, and its developer shared the code in a blog post. https://damian.fyi/2015/01/22/scroll_pebble_menus/. It should be relatively easy to reuse this implementation.

Wowfunhappy avatar Sep 18 '19 20:09 Wowfunhappy

I'll work on this.

pauleeeeee avatar Feb 08 '20 02:02 pauleeeeee

Edit: Oh, you edited your post, so maybe you figured all of this out yourself! ^_^

Hey so I am comfortable with C but I have never really worked on a Pebble JS app. I looked through your code and my question is: where would the C code go? The purpose of using Pebble JS is so that you can transpile JavaScript to C.

Not quite! To oversimplify, this repository basically contains two things:

  1. Javascript code that I wrote which runs on a phone. It downloads and processes RSS feeds, and sends it to the Pebble.
  2. PebbleJS C code written by Meiguro at Pebble, which receives information sent by the phone and displays it on the Pebble.

So, nothing gets transpiled—the Javascript code is run as Javascript on your phone. (As an aside, Javascript was likely chosen because it's the only language you can use on an iPhone without going through the iOS App Store.)

Ergo, to add menu scrolling, you need to edit the PebbleJS C code. Almost all of this code is in src/simply/, and I'm pretty sure the particular file you need to edit is simply_menu.c.

Thank you so much for looking into this!

Wowfunhappy avatar Feb 08 '20 02:02 Wowfunhappy

@pauleeeeee I just pushed out a small commit to get things ready for you—article titles are no longer split into titles and subtitles in the article select menu before display.

Wowfunhappy avatar Feb 08 '20 03:02 Wowfunhappy

Hey @pauleeeeee did you ever get a moment to look at this?

Wowfunhappy avatar Mar 09 '20 13:03 Wowfunhappy

Hey - sorry for my delay here. I looked a few times... and again just now... gotta say its a bit above my head :(. I am a hobbyist at best. This may not be the right job for me! I will keep my eye on it and if my skills allow me to I will make the change. Sorry! It's a great app!!

pauleeeeee avatar Mar 09 '20 13:03 pauleeeeee