02-21-2023, 11:52 PM | #1 |
Junior Member
Posts: 4
Karma: 381304
Join Date: Feb 2023
Device: none
|
[GUI Plugin] VimStyle
I have created a simple plugin to provide VIM like keyboard shortcuts
The default shortcuts are: J ---> next row K ---> previous row Ctrl+F ---> page down Ctrl+B ---> page up G ---> first row Shift+G ---> last row H ---> left cell in a row L ---> right cell in a row Shift+H or 0 ---> first cell in a row (note: the key is zero, not english O) Shift+L or $ ---> last cell in a row They can be overridden in Preferences->Shortcuts->Vim style: Last edited by BetterRed; 02-24-2023 at 04:29 PM. Reason: Attach new version |
02-22-2023, 02:02 PM | #2 | |
(he/him/his)
Posts: 12,160
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
Quote:
Another navigation that would be useful is one to go to the very first tab or the very last tab of virtual libraries. (I've got a lot of virtual libraries and navigating from Weber to Home is a nuisance, given that Home is no longer visible when I've got the Weber tab open.) Perhaps that would make more sense for the H/L keys?? |
|
Advert | |
|
02-22-2023, 02:07 PM | #3 | |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
02-22-2023, 03:28 PM | #4 | |||
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
The PI doesn't need to be on a menu, be better if it wasn't offered at install time. Quote:
So, on Windows you need to set it to something else, e.g. Ctrl+↑ to match Ctrl+← and Ctrl+→, the defaults for previous and next VL. Quote:
BR |
|||
02-22-2023, 03:56 PM | #5 |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
|
Advert | |
|
02-22-2023, 05:05 PM | #6 | |||
(he/him/his)
Posts: 12,160
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
Quote:
Quote:
Quote:
On this machine, it seems to sort of work?? But gets stuck on some cells (authors, for example) when trying to go left. And a similar problem going right. Overall, I'd say the L/H keys are not working as expected. But others are great! |
|||
02-22-2023, 05:28 PM | #7 |
(he/him/his)
Posts: 12,160
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
Hmmm. I wonder if the cell movement problems are related to custom columns and custom column order? It appears to only move to columns that are default columns (though I admit I no longer remember which the default columns are and which are custom columns, I've been using and tweaking calibre for so long. )
|
02-22-2023, 11:02 PM | #8 | |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
When I hooked up a 'real' library H & L made no sense, they skipped standard columns (e.g. publisher) but landed on a custom column (e.g. #admin_tags) etc. And, they sometimes go the wrong way - i.e. H will go right and L will go left. I can confirm its not due other plugins, Vim Style is the only one installed. @TdM, @CR - do you use the View Manager (VM) plugin, even though its not installed on the Portable install I'm using for tests, the libraries on which H & L misbehave do have the VM settings. BR |
|
02-23-2023, 12:18 AM | #9 | |
(he/him/his)
Posts: 12,160
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
Quote:
|
|
02-23-2023, 10:45 AM | #10 | |||
Junior Member
Posts: 4
Karma: 381304
Join Date: Feb 2023
Device: none
|
Quote:
Quote:
Quote:
1. H/L does'n work. It is caused by customized columns. Now fixed. 2. add key repeat support. 3. when browsing rows, the focus column is keeped. 4. add two action for first/last cell. the complete shortcut keys: J ---> next row K ---> previous row Ctrl+F ---> page down Ctrl+B ---> page up G ---> first row Shift+G ---> last row H ---> left cell in a row L ---> right cell in a row Shift+H, 0 ---> first cell in a row (note: the key is zero, not english O) Shift+L, $ ---> last cell in a row To use it, make sure the keys do not conflict with exist ones. I have test it on 6.4.0/6.13.0 on linux(ubuntu22.04). Last edited by BetterRed; 02-23-2023 at 04:48 PM. Reason: ZIP moved to first post |
|||
02-23-2023, 01:22 PM | #11 |
(he/him/his)
Posts: 12,160
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
I'm downloading the latest, @lakedai, but it would probably be good to edit the original message and upload the new version to that message (makes it easier for new people to find the most recent), and to start adding version numbers to the zip filename.
It seems to work as expected now. BTW, it was initially unclear that Shift+H, 0 was actually two separate ways to accomplish the same movement. I initially read it as a two-key combination. You might want to show it as Shift+H or 0 |
02-23-2023, 03:39 PM | #12 | |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
@lakedai, in order to edit your posts you need to bump your post count above 10; suggest you post some messages in one of the threads in Lounge BR |
|
02-23-2023, 04:44 PM | #13 |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Because the shortcuts are customisable, the plugin might also be useful to people not familiar with the VIM keybindings.
So, I suggest the descriptions in Preferences-> Shortcuts be more descriptive (this is based on what's there, i.e. calibre sorts them) : Code:
Vim: end (last column) Shortcuts: Shift+L, $
Vim: first (first book) Shortcuts: G
Vim: home (first column) Shortcuts: Shift+H, 0
Vim: last (last book) Shortcuts: Shift+G
Vim: left (previous column) Shortcuts: H
Vim: next (next book) Shortcuts: J
Vim: pagedown (page down) Shortcuts: Ctrl+F
Vim: pageup (page up) Shortcuts: Ctrl+B
Vim: prev (previous book) Shortcuts: K
Vim: right (next column) Shortcuts: L
Added: Should the name of the plugin be changed to something like "Navigation Keys"? BR Last edited by BetterRed; 02-23-2023 at 09:35 PM. |
02-23-2023, 08:19 PM | #14 | |
(he/him/his)
Posts: 12,160
Karma: 79742714
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Oasis (Gen3),Paperwhite (Gen10), Voyage, Paperwhite(orig), Fire HD 8
|
Quote:
I'd list both Shift+L and Shift+H shortcuts with the shifted version AFTER the single key version. So: Code:
Vim: first (first column) Shortcuts: G
Vim: home (first column) Shortcuts: 0, Shift+H
Vim: Last column Shortcuts: $, Shift+L
Vim: last (last book) Shortcuts: Shift+G
Vim: left (previous column) Shortcuts: H
Vim: next (next book) Shortcuts: J
Vim: pagedown (page down) Shortcuts: Ctrl+F
Vim: pageup (page up) Shortcuts: Ctrl+B
Vim: prev (previous book) Shortcuts: K
Vim: right (next column) Shortcuts: L
|
|
02-23-2023, 09:53 PM | #15 | |
null operator (he/him)
Posts: 20,570
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Corrected. I'm blaming OneNote OCR :lol:
Quote:
BR |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 492 | 10-25-2022 08:13 AM |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 03:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |