Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2018, 10:54 PM   #1
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Location: Cuernavaca, Morelos
Device: Kobo Aura H2O
Question 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.
celiapgt is offline   Reply With Quote
Old 06-16-2018, 11:03 PM   #2
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 2,991
Karma: 1922532
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.
KevinH is offline   Reply With Quote
Old 06-17-2018, 06:57 PM   #3
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Location: Cuernavaca, Morelos
Device: Kobo Aura H2O
Quote:
Originally Posted by KevinH View Post
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.
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.
celiapgt is offline   Reply With Quote
Old 06-17-2018, 08:23 PM   #4
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 2,991
Karma: 1922532
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).
KevinH is offline   Reply With Quote
Old 06-17-2018, 08:56 PM   #5
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 2,991
Karma: 1922532
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.
KevinH is offline   Reply With Quote
Old 06-17-2018, 11:39 PM   #6
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 10,297
Karma: 10563064
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
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.
Confirmed

BR
BetterRed is offline   Reply With Quote
Old 06-18-2018, 11:59 AM   #7
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 2,991
Karma: 1922532
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.
KevinH is offline   Reply With Quote
Old 06-18-2018, 07:30 PM   #8
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 10,297
Karma: 10563064
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
Which spellcheck or search and replace?
spellchecker - IIRC Ctrl+C to copy selected word in list to clipboard was the one I wanted most of all. Can't recall if you added F1 (Ignore), F2 (Add to dict) and F3 (Find), or if they already existed.

BR
BetterRed is offline   Reply With Quote
Old 06-19-2018, 08:41 AM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 18,492
Karma: 95832288
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.
DiapDealer is offline   Reply With Quote
Old 06-23-2018, 12:54 PM   #10
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Location: Cuernavaca, Morelos
Device: Kobo Aura H2O
Quote:
Originally Posted by DiapDealer View Post
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.
Thank you for replying so thoroughly.

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?
celiapgt is offline   Reply With Quote
Old 06-23-2018, 01:51 PM   #11
copyrite
Wizard
copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.
 
copyrite's Avatar
 
Posts: 1,687
Karma: 4849699
Join Date: Sep 2010
Location: Maryland
Device: ...lots! ;) mostly reading on a Kindle Voyage
Quote:
Originally Posted by celiapgt View Post
am I the OP? what is the meaning of this acronym?
Original Poster
copyrite is offline   Reply With Quote
Old 06-28-2018, 10:17 PM   #12
celiapgt
EBook-obsessive gal
celiapgt began at the beginning.
 
celiapgt's Avatar
 
Posts: 8
Karma: 10
Join Date: Mar 2011
Location: Cuernavaca, Morelos
Device: Kobo Aura H2O
Quote:
Originally Posted by copyrite View Post
Original Poster
Thanks, ;D
celiapgt is offline   Reply With Quote
Reply

Tags
interface, plugin development, plugin-development, shortcuts

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 05:57 AM.


MobileRead.com is a privately owned, operated and funded community.