summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Aristote <quentin@aristote.fr>2021-11-20 12:08:24 +0100
committerQuentin Aristote <quentin@aristote.fr>2021-11-20 12:08:24 +0100
commit6594c46bccf1c0b3053030151143f26e8b4a7cc2 (patch)
treeb9143e005235ef99fcde134d72c5a14147d335b4
parenta6a484d12791ec9b3fb1f2bcb3345715d68235db (diff)
add shortcuts for movement commands
-rw-r--r--README.org18
-rw-r--r--local/bibli-paris/bibli-paris.el2
-rw-r--r--packages.el5
3 files changed, 16 insertions, 9 deletions
diff --git a/README.org b/README.org
index 8bc6d1b..0774d63 100644
--- a/README.org
+++ b/README.org
@@ -27,13 +27,15 @@ The following commands are available.
| Command | Shortcut | Description |
|---------------------------------+----------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
-| ~bibli-paris/mode~ | ~SPC mb~ | Enable the shortcuts described in this table. |
-| ~bibli-paris/import-from-csv~ | ~SPC mi~ | Import entries from the CSV file downloaded on https://bibliotheques.paris.fr/. The first argument is the path to the CSV file, and the second and third (optional) arguments are the tags and state to set the imported entries to. |
-| ~bibli-paris/sort~ | ~SPC ms~ | Sort the entries by their quotes. |
-| ~bibli-paris/update-entry~ | ~SPC mu~ | Asynchronously update the availability status and quote of the entry at point. |
-| ~bibli-paris/update-entries~ | ~SPC mU~ | Asynchronously update all the availabity status and quotes of all entries in parallel. |
-| ~bibli-paris/archive-all-read~ | ~SPC mA~ | Archive all entries in the ~DONE~ state. |
-| ~bibli-paris/number-of-entries~ | ~SPC m?~ | Display the number of entries in the current buffer. |
+| ~bibli-paris/mode~ | ~SPC mb~ | Enable the shortcuts described in this table. |
+| ~bibli-paris/import-from-csv~ | ~SPC mi~ | Import entries from the CSV file downloaded on https://bibliotheques.paris.fr/. The first argument is the path to the CSV file, and the second and third (optional) arguments are the tags and state to set the imported entries to. |
+| ~bibli-paris/sort~ | ~SPC ms~ | Sort the entries by their quotes. |
+| ~bibli-paris/update-entry~ | ~SPC mu~ | Asynchronously update the availability status and quote of the entry at point. |
+| ~bibli-paris/update-entries~ | ~SPC mU~ | Asynchronously update all the availabity status and quotes of all entries in parallel. |
+| ~bibli-paris/archive-all-read~ | ~SPC mA~ | Archive all entries in the ~DONE~ state. |
+| ~bibli-paris/number-of-entries~ | ~SPC m?~ | Display the number of entries in the current buffer. |
+| ~bibli-paris/previous-entry~ | ~SPC mk~ | Move the cursor to and put forward the previous entry. |
+| ~bibli-paris/next-entry~ | ~SPC mj~ | Move the cursor to and put forward the next entry. |
* Customization
@@ -43,4 +45,4 @@ The following variables may be customized.
|------------------------------------------+---------+--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ~bibli-paris/default-library~ | string | ~75013 - Jean-Pierre Melville~ | The library from which to fetch updates. |
| ~bibli-paris/max-asynchronous-processes~ | integer | ~500~ | The maximum number of asynchronous requests that should be launched in parallel. The default value was determined experimentally to be the maximum allowed by Emacs. |
-| ~bibli-paris/default-path-to-csv | string | ~~/Downloads/Export.csv~ | The default path of a CSV file to import. |
+| ~bibli-paris/default-path-to-csv~ | string | ~~/Downloads/Export.csv~ | The default path of a CSV file to import. |
diff --git a/local/bibli-paris/bibli-paris.el b/local/bibli-paris/bibli-paris.el
index bbab2b2..5083885 100644
--- a/local/bibli-paris/bibli-paris.el
+++ b/local/bibli-paris/bibli-paris.el
@@ -416,10 +416,12 @@ STATE (string)."
(defun bibli-paris/previous-entry ()
"Move to and put forward the previous entry."
+ (interactive)
(bibli-paris/change-entry 'outline-get-last-sibling))
(defun bibli-paris/next-entry ()
"Move to and put forward the next entry."
+ (interactive)
(bibli-paris/change-entry 'outline-get-next-sibling))
diff --git a/packages.el b/packages.el
index 9081fd3..1262aac 100644
--- a/packages.el
+++ b/packages.el
@@ -15,5 +15,8 @@
"mu" 'bibli-paris/update-entry
"mU" 'bibli-paris/update-entries
"mA" 'bibli-paris/archive-all-read
- "mi" 'bibli-paris/import-from-csv))
+ "mi" 'bibli-paris/import-from-csv
+ "mk" 'bibli-paris/previous-entry
+ "mj" 'bibli-paris/next-entry
+ ))
))