06-16-2018, 10:54 PM | #1 |
EBook-obsessive gal
Posts: 39
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
|
Help needed to create a plugin to add more shortcuts
Hello to everyone.
I respectfully ask the help of some nice developer to provide me and the community with a new plugin that can let me bind new shortcuts to several actions in Sigil, such as specific Search&Replace entries, show ClipView in sidebar, show Search&Replace in sidebar, and so on. I am a total wreck at programming a plugin, so I really need someone can be interested in this task and help me. I'm in Ubuntu 18.04 with Sigil 0.9.9 if that matters. Fame and glory are offered as reward, as well as eternal gratitude from me! Last edited by celiapgt; 06-16-2018 at 11:03 PM. |
06-16-2018, 11:03 PM | #2 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Sigil does not support ui plugins. That said, there are key bindings for Search and Replace, and Preview is a dockable pane as are clips.
|
Advert | |
|
06-17-2018, 06:57 PM | #3 |
EBook-obsessive gal
Posts: 39
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
|
No, there are no key bindings for Search&Replace individual entries (as for Clips there are), and you cannot use a keybinding to toggle show the ClipView in sidebar, among other things.
|
06-17-2018, 08:23 PM | #4 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I am confused, I thought you wanted dockable panes for clips and preview. They exist. You can undock them and move them out of the way or remove them completely. You can also do the same with Search and Replace. Also in Search or Replace items there are hard coded keys for easier keyboard accesss based on a previous request from BetterRed (and tab use as well to move between fields).
Either way, Sigil's plugin api is book based and can not control the user interface (ui). |
06-17-2018, 08:56 PM | #5 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I may be remembering wrong ... perhaps BetterRed's request added keys actions to the SpellCheck Menu and not Search and Replace. I committed that change a long time ago and do not remember which.
|
Advert | |
|
06-17-2018, 11:39 PM | #6 |
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
06-18-2018, 11:59 AM | #7 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Which spellcheck or search and replace?
I looked in Sigil ->Preferences->Keyboard Shortcuts and there are already keyboard shortcuts that can be assigned to Find, Find Next, Replace, Replace All, etc. From what I can tell, the only keyboard shortcuts missing are to open the Clips pane itself via a keyboard shortcut, but there are keyboard shortcuts you can assign for individual clips. Last edited by KevinH; 06-18-2018 at 12:29 PM. |
06-18-2018, 07:30 PM | #8 |
null operator (he/him)
Posts: 20,567
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
06-19-2018, 08:41 AM | #9 |
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm pretty sure the OP is looking for a Keyboard shortcut to show/hide the Clips widget. If you look under the View menu, you can see that Clips is really the only one without a Keyboard show/hide toggle.
And I think the other wish is to be able to assign shortcuts to individual Saved Searches (similar to how clips 1-20 have customizable shortcuts). Unfortunately, neither can be accomplished via Sigil's plugin framework (as Kevin mentioned). And the Find/Replace widget is not relocatable ... period. It is where it is, and no plugin will change it. |
06-23-2018, 12:54 PM | #10 | |
EBook-obsessive gal
Posts: 39
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
|
Quote:
Exactly as you said, DiapDealer. No problem with the Find/Replace position, it is just a minor customization to me. The important part are the addition of extra shortcuts that I request. Now I am pretty clear that the plugin framework is not capable for such a task, but I do respectfully ask KevinH or who else is the developer to add that functionality in the next release of the software. By the way, I was unable to find the features request list in GitHub, so I add this petition here. When you occasionally work with Sigil, mouse gestures/clicks are OK, but when I work very often with ebooks and Sigil, search/replace are a frequent task and shortcuts are more user-friendly than ever. Thus, please take my suggestion into account. Just a question to DiapDealer: am I the OP? what is the meaning of this acronym? |
|
06-23-2018, 01:51 PM | #11 |
Wizard
Posts: 1,814
Karma: 4985051
Join Date: Sep 2010
Location: Maryland
Device: ...lots! ;) mostly reading on a Kindle Voyage
|
|
06-28-2018, 10:17 PM | #12 |
EBook-obsessive gal
Posts: 39
Karma: 10
Join Date: Mar 2011
Location: La ciudad de la eterna primavera
Device: Kobo Clara HD
|
|
Tags |
interface, plugin development, plugin-development, shortcuts |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
An idea for a plugin - your opinions and help very welcome and needed! | TAtanasoska | Plugins | 1 | 11-15-2014 10:49 PM |
Create area for plugin images in config directory | DoctorOhh | Plugins | 19 | 12-15-2010 12:28 PM |
Request Create Library Shortcuts on LCD screen | ckole | enTourage Archive | 4 | 05-20-2010 09:48 AM |
DR1000 DR1000S: How to create file shortcuts using a full path? | godel10 | iRex | 12 | 03-20-2010 12:12 AM |
How do I Create a Python Plugin? | Sydney's Mom | Plugins | 25 | 01-27-2010 06:26 AM |