Releases: clarete/hackernews.el
Releases · clarete/hackernews.el
0.7.0
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
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
Change Log
- Fontification of buttons in
hackernews
buffers can now be toggled along withfont-lock-mode
.
0.5.0
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
tonil
. - 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 tonil
to disable visited link tracking altogether. - New faces
hackernews-link-visited
andhackernews-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
andhackernews-button-mark-as-unvisited
bound tor
andR
by default, respectively. - The new command
hackernews-load-visited-links
reloads the visited link information stored inhackernews-visited-links-file
, in case it diverged from what the running Emacs instance knows for whatever reason.
- To stop visually distinguishing links that have been visited, set
- Added support for
bug-reference-mode
in the project'sdir-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
Change Log
hackernews
buffers are now placed in the new major modehackernews-mode
derived fromspecial-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 optionhackernews-default-feed
. - The new command
hackernews-switch-feed
, bound tof
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
, orhackernews-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 tohackernews-link
and now inherits from thelink
face. - The face
hackernews-comment-count-face
was renamed tohackernews-comment-count
. - The face
hackernews-score-face
was renamed tohackernews-score
. - The user option
hackernews-top-story-limit
was renamed tohackernews-items-per-page
. - The keymap variable
hackernews-map
was renamed tohackernews-mode-map
.
- The face
- Replaced
switch-to-buffer
(which reuses the current window) withpop-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 fromhackernews
to the new commandhackernews-reload
. - The default binding of
q
was changed frombury-buffer
toquit-buffer
, which is more common and flexible.
- The default binding of
- The commands
hackernews
andhackernews-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
, andhackernews-comments-format
allow customizing how story items are displayed inhackernews
buffers. - New user option
hackernews-preserve-point
specifying whether to move point after loading more stories in the currenthackernews
buffer. - New custom hooks
hackernews-before-render-hook
,hackernews-after-render-hook
, andhackernews-finalize-hook
are run while populating the currenthackernews
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 optionhackernews-suppress-url-status
tonil
.
- Debugging messages controlled by
- URLs in
hackernews-buffers
are now marked with theshr-url
property for interoperability withshr
andeww
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.