diff options
author | fox <[email protected]> | 2021-05-28 22:02:34 +0300 |
---|---|---|
committer | fox <[email protected]> | 2021-05-28 22:02:34 +0300 |
commit | 367cdf0aafa1a5516634cf96981349b1e4249c14 (patch) | |
tree | b4fcccf1eacb979de933713e1fe19c39ae4b6a0f | |
parent | 12116f6abb2d322fb1a4d4f27683561a3b331a41 (diff) | |
parent | 946e00a01fd4f8e884b92b6a8cee53dd6c50e187 (diff) |
Merge pull request 'Update googlereaderkeys plugin for next/prev unread feed & and add README' (#1) from Athanasius/ttrss-googlereaderkeys:master into master
Reviewed-on: https://git.tt-rss.org/fox/ttrss-googlereaderkeys/pulls/1
-rw-r--r-- | README.md | 56 | ||||
-rw-r--r-- | init.php | 2 |
2 files changed, 58 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..c66806f --- /dev/null +++ b/README.md @@ -0,0 +1,56 @@ +# Google Reader Keys +This is a Tiny Tiny RSS plugin to have keyboard shortcuts in the style +of the long-since defunct Google Reader, but with extra tweaks for later +Tiny Tiny RSS functionality. + +## Installation +Assuming that you're using the recommended Docker Compose setup and that +the current directory is where this `README.md` and the `init.php` are, then +the easiest way to install the plugin is the following docker commands. + + +```sh +$ docker exec ttrss-docker_app_1 /bin/mkdir /var/www/html/tt-rss/plugins.local/googlereaderkeys +$ docker cp init.php ttrss-docker_app_1:/var/www/html/tt-rss/plugins.local/googlereaderkeys +$ docker exec ttrss-docker_app_1 /bin/chown -R app:app /var/www/html/tt-rss/plugins.local/googlereaderkeys +$ docker exec ttrss-docker_app_1 /bin/chmod -R og+rX /var/www/html/tt-rss/plugins.local/googlereaderkeys +``` + +If you're not using the Docker Compose setup then you'll have to execute +the non-Docker equivalent commands. The key thing is to: + +1. Make a directory for this plugin, called `googlereaderkeys` (not + anything else, it has to match up with the class name in + init.php) inside your `plugins.local` directory. +1. Copy the `init.php` file from here into that new directory. +1. Ensure the owner and permissions are such that your web server + can access the directory and file. + +Now if you reload tt-rss in your browser and check the Plugins part of +Preferences you should have a "googlereaderkeys" entry that you can +activate. + +## Shortcuts +Assuming this document is up to date, then the changed/added shortcuts +are: + +| Key | Function | +| :-------- | :------------------------------- | +| j | next_article_noscroll | +| k | prev_article_noscroll | +| J | next_unread_feed | +| K | prev_unread_feed | +| N | next_feed | +| P | prev_feed | +| v | open_in_new_window | +| r | feed_refresh | +| m | toggle_unread | +| o | toggle_expand | +| Enter | toggle_expand | +| ? | help_dialog | +| Space | next_article | +| Up | article_scroll_up | +| Down | article_scroll_down | + +If in doubt check the `init.php` file, it should be as obvious as this +table. @@ -18,6 +18,8 @@ class GoogleReaderKeys extends Plugin { $hotkeys["j"] = "next_article_noscroll"; $hotkeys["k"] = "prev_article_noscroll"; + $hotkeys["J"] = "next_unread_feed"; + $hotkeys["K"] = "prev_unread_feed"; $hotkeys["N"] = "next_feed"; $hotkeys["P"] = "prev_feed"; $hotkeys["v"] = "open_in_new_window"; |