summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2021-05-28 22:02:34 +0300
committerfox <[email protected]>2021-05-28 22:02:34 +0300
commit367cdf0aafa1a5516634cf96981349b1e4249c14 (patch)
treeb4fcccf1eacb979de933713e1fe19c39ae4b6a0f
parent12116f6abb2d322fb1a4d4f27683561a3b331a41 (diff)
parent946e00a01fd4f8e884b92b6a8cee53dd6c50e187 (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.md56
-rw-r--r--init.php2
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.
diff --git a/init.php b/init.php
index 9361584..ce92234 100644
--- a/init.php
+++ b/init.php
@@ -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";