Skip to content

Releases: clarete/hackernews.el

0.7.0

13 Jan 22:00
v0.7.0
38ad768
Compare
Choose a tag to compare

Change Log

  • Fixed broken UI in Emacs 24.3 releases.
  • Improved robustness of loading/saving visited links file.
  • Added support for the user option read-extended-command-predicate, new in Emacs 28.

0.6.1

19 Jan 21:37
v0.6.1
c9c2bb0
Compare
Choose a tag to compare

Change Log

  • HTML entities like & in story titles are now decoded.
  • Completion prompts can now be customized in Emacs 28 via minibuffer-default-prompt-format.

0.6.0

19 Jan 21:46
v0.6.0
aec9979
Compare
Choose a tag to compare

Change Log

  • Fontification of buttons in hackernews buffers can now be toggled along with font-lock-mode.

0.5.0

19 Jan 22:20
916c3da
Compare
Choose a tag to compare

Change Log

  • Discontinued support for Emacs 23 and the discontinued package archive Marmalade.
  • Visited links are now marked and fontified as such by default.
    • To stop visually distinguishing links that have been visited, set hackernews-show-visited-links to nil.
    • The history of visited links is stored in the file hackernews-visited-links-file, which defaults to ~/.emacs.d/hackernews/visited-links.el and is updated when Emacs is killed. Set this user option to nil to disable visited link tracking altogether.
    • New faces hackernews-link-visited and hackernews-comment-count-visited for visited story and comment count links, respectively.
    • Links can be marked or unmarked as visited with the new commands hackernews-button-mark-as-visited and hackernews-button-mark-as-unvisited bound to r and R by default, respectively.
    • The new command hackernews-load-visited-links reloads the visited link information stored in hackernews-visited-links-file, in case it diverged from what the running Emacs instance knows for whatever reason.
  • Added support for bug-reference-mode in the project's dir-locals-file.
  • Added support for native JSON parsing in Emacs 27.
  • The hackernews-link face no longer defaults to a green foreground.
  • New user option hackernews-internal-browser-function for specifying how to browse URLs within Emacs.
  • Fixed a bug where hackernews-title-format was not heeded.

0.4.0

19 Jan 23:13
v0.4.0
22a15dc
Compare
Choose a tag to compare

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.