All notable changes to this project will be documented in this file
@headline-max-chars
changed to@hackernews-max-chars
to keep variable naming consistent.
@hackernews-period
option to have a custom period for the cycle of the 30 headlines.
- Scripts completely restructured,
variables.sh
now contains important variables that are sourced to the scripts that use them.
- Fixed some bugs regarding run-shell, xdg-open and i3wm.
- Scroll keybinds off by default. They are enabled through the tmux user option
@hackernews-scroll
. Reason for this is that they were too weird to use, and I feel like the plugin works best as a passive headline shower, instead of using it to scroll through them. - Updated README.md accordingly.
- Removed
vars.conf
and moved all vars to tmux user options. - Updated README.md accordingly.
- Support for text post links.
browser
variable now doesn't need to be set to something. If empty, attempts to open up website in system's default browser.
- [FILE] headlines.conf - stores a cache of all headlines and links for 2 hours. Not to be edited. File doesn't initially exist, but gets created.
news.sh
behavior. Now usesheadlines.conf
to show headlines for two hours after it's modified. Done to reduce HTTP requests and have a more consistent display.urls.sh
behavior. Now usesheadlines.conf
to pass URLs, so as to keep the URLs consistent with the headlines.
headline
variable fromvars.conf
file.
- Changed default link hotkey to
Prefix + h
instead ofPrefix + C-h
, since C-h is a kinda iffy key with some terminals (seen as backspace).
news.sh
now doesn't make an HTTP request if not needed - Most tmux users have the statusbar refresh rate at 1 second, so as to have a nice clock, but making an HTTP request every second is just wrong. The current headline is now stored invars.conf
, and only if the index changes, does the script make an HTTP request.- Fixed variable lookup to prevent errors.
- Checks for the current browser. If it doesn't exist, the binding is not set
- New variables in
vars.conf
for customization of browser and headline width. - [FILE] browser.sh - returns the browser specified in
vars.conf
.
- Literally added a single character in
hackernews.tmux
to make theC-h
keybind work properly.
- [FILE] urls.sh - reutrns the URL to the current story.
- [FILE] compute_index.sh - moved code into here to make it more DRY and organized.
- Keybind
<C-h>
to opening a new tmux window with the currect link onw3m
. - Some comments in main script (hackernews.tmux).
- Planned Features section in README.md
- [FILE] inc.sh - script to increment the offset in vars.conf, so as to go to the next headline.
- [FILE] dec.sh - script to decrement the offset in vars.conf, so as to go to the previous headline.
- Keybinds to trigger the two scripts above,
Prefix + <
andPrefix + >
respectively. - Dates on this change log.
- Keybinds and Planned Features sections in README.
- Formatting for files in this change log.
- [FILE] hackernews.tmux - with basic functionality, replaces an instance of
#{headline}
in status-right, and replaces it with an execution call of news.sh - [FILE] news.sh - produces a different headline from the Hackernews frontpage, over the course of two hours -- that is, it changes headline every 4 minutes.
- [FILE] vars.conf - for now useless, but will contain some variables for customization of the headline field
- [FILE] .gitignore - to ignore .swp files
- [FILE] CHANGELOG.md - to keep a changelong
- README.md Installation, Usage, Formatting, Credits and TODO sections