Skip to content

0.4.0

Compare
Choose a tag to compare
@basil-conto basil-conto released this 19 Jan 23:13
· 117 commits to master since this release
v0.4.0
22a15dc

Change Log

  • hackernews buffers are now placed in the new major mode hackernews-mode derived from special-mode.
  • Links in hackernews buffers are now implemented as text buttons.
    • The commands for navigating between story or comment links now accept an optional numeric prefix specifying how many links to skip.
    • They also display the target link's URL in the echo area on arrival, as in eww.
  • Added support for browsing multiple Hacker News feeds.
    • Each feed type uses its own buffer so multiple feed types can be browsed simultaneously.
    • The default feed browsed by the hackernews command can now be customized via the new user option hackernews-default-feed.
    • The new command hackernews-switch-feed, bound to f by default, prompts with completion for another feed to browse.
    • A specific feed can be browsed with one of the new commands hackernews-top-stores, hackernews-new-stories, hackernews-best-stories, hackernews-ask-stories, hackernews-show-stories, or hackernews-job-stories.
  • Several faces, user options, and variables were renamed. The old names are still defined as obsolete aliases of the new names for now.
    • The face hackernews-link-face was renamed to hackernews-link and now inherits from the link face.
    • The face hackernews-comment-count-face was renamed to hackernews-comment-count.
    • The face hackernews-score-face was renamed to hackernews-score.
    • The user option hackernews-top-story-limit was renamed to hackernews-items-per-page.
    • The keymap variable hackernews-map was renamed to hackernews-mode-map.
  • Replaced switch-to-buffer (which reuses the current window) with pop-to-buffer (which defaults to using another window), as the latter is less intrusive and more customizable.
  • Some default key bindings in hackernews buffers were changed, although the new behavior should be almost identical to the old.
    • The default binding of g was changed from hackernews to the new command hackernews-reload.
    • The default binding of q was changed from bury-buffer to quit-buffer, which is more common and flexible.
  • The commands hackernews and hackernews-load-more-stories now accept an optional numeric prefix for specifying the number of stories to retrieve.
  • New user options hackernews-item-format, hackernews-score-format, hackernews-title-format, and hackernews-comments-format allow customizing how story items are displayed in hackernews buffers.
  • New user option hackernews-preserve-point specifying whether to move point after loading more stories in the current hackernews buffer.
  • New custom hooks hackernews-before-render-hook, hackernews-after-render-hook, and hackernews-finalize-hook are run while populating the current hackernews buffer.
  • A progress reporter is now displayed in the echo area while retrieving stories.
    • Debugging messages controlled by url-show-status are now suppressed by default when retrieving stories, so as not to obstruct the progress reporter. To unsuppress them, set the new user option hackernews-suppress-url-status to nil.
  • URLs in hackernews-buffers are now marked with the shr-url property for interoperability with shr and eww commands, such as downloading the URL at point.
  • Obsolete Hacker News URLs of the form /comments/ID are no longer supported.
  • Fixed a bug where comment counts were underestimated.