11-15-2023, 02:36 PM | #16 |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
So they must be universally unique across all menu items.
Good to know. I can incorporate those changes into the next release. Thanks for explaining that. |
11-15-2023, 02:49 PM | #17 |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Okay, just pushed your change to Sigil master.
|
Advert | |
|
11-15-2023, 04:29 PM | #18 |
Enthusiast
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Hi,
i'm sorry if this wasn't defined clearly. In SIGIL, i want to switch primarily between * Book browser * Code view (i _am_ aware of Ctrl+PgUp/Dn to switch open files there) * Preview with some keyboard shortcut(s). And yes, i mean those 3 panels and not any others, because i use those the most. I read through "Keyboard shortcuts" Names in the Preferences, and while there are many without a shortcut, there are apparently none for my purpose, if i read them right. So methinks some new Name(d fuction)s are possibly needed to do this. Or, maybe those functions are already existing, because Sigil has to focus on the panel indicated by a Mouseclick. The chosen shortcut is left to the user. This is NOT an issue of the operating system used, NOR any other Program than Sigil. Thank you for your patience for this rant... |
11-15-2023, 04:35 PM | #19 | ||
Enthusiast
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Hi
Quote:
Quote:
I tried to clarify in a later post. |
||
11-15-2023, 04:55 PM | #20 | ||
Enthusiast
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Quote:
Quote:
If the ToggleView functions would then focus on an toggled-visible Book browser or Preview, i'd be halfway there. Much more practical would be just _one_ shortcut to focus on the open file in Codeview. |
||
Advert | |
|
11-15-2023, 08:33 PM | #21 | |||
null operator (he/him)
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
As I explored possibilities for the OP's request I happened to notice the missing accelerators … and thought I'd mention it. It pre-dates Windows, and its a 'thing' on some (most ?) Linux UI desktop kits. It originates from IBM's Common User Access 'standards' developed during the late 1970's and early 1980s. Quote:
I've had late-boomer and millennial IT pro's react similarly… particularly to sequences like Winkey+T, Winkey+I, Winkey+Tab etc. Quote:
BR Last edited by BetterRed; 11-15-2023 at 09:33 PM. |
|||
11-16-2023, 09:30 AM | #22 | |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Quote:
Is it possible to add a status change: "Current window: …" when the user applies the Shift-Tab shortcut? |
|
11-16-2023, 12:30 PM | #23 |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
The Shift-Tab shortcut is handled internally to Qt as Qt set the dynamic tab order for each Window and Among Windows.
|
11-16-2023, 01:34 PM | #24 | |
Enthusiast
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Hi,
Quote:
Plus, copy styled text from a TOC to paste into a chapter file via Pageedit. I'm quite content with the switch to Pageedit from the builtin Wysiwig editor. Well done, sirs, and i deem it usable! Last edited by recook; 11-16-2023 at 02:31 PM. |
|
11-16-2023, 01:51 PM | #25 |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Okay, for people who know how to build their own from our github Sigil master:
I have just now pushed to master the ability to use keyboard shortcuts (that you must assign in Sigil's Keyboard Preferences) to move focus directly to another major QDockWidget. This includes: BookBrowser, CodeView, Preview, TableOfContents, and the ClipsWindow. Find and Replace already has a keyboard shortcut to launch it, and the ValidationResultsView is typically run only when needed. In addition, I have added a message to MainWindow Status Message area to indicate where focus has changed. For those who prefer Accelerators, I appended these actions as menu items at the very end of the View menu. In Keyboard Preferences see: - Focus on BookBrowser - Focus on Clips Window - Focus on CodeView - Focus on Preview - Focus on Table Of Contents It is up to you to find and set the shortcuts to these to get things to work. Feedback on this potential new feature would be useful. Translation .ts files will not be updated until things are final and this new feature is found to be useful. Hope this helps. |
11-16-2023, 02:46 PM | #26 |
Enthusiast
Posts: 32
Karma: 10
Join Date: Aug 2018
Device: kobo Nia
|
Hi,
heartfelt thanks, sir! That sounds exactly like what i wanted! After Code:
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../Sigil-master Code:
make |
11-16-2023, 03:12 PM | #27 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
I built a new version of Sigil with the last commit and... it's great!
Indeed, these five main sub-windows are the most important elements of Sigil's interface, the ones we navigate most often. Once you've assigned keyboard shortcuts, you can get used to it very quickly, and it's especially important that you can 'escape' from CodeView, which most often took 'control' of the cursor. VERY much! As I use Sigil practically every day, I have become accustomed to its minor imperfections. That's why I usually read every post in the Sigil section on MR carefully, because often fresh users can articulate their needs better and suddenly it turns out that it can be even better! Such easy jumping between windows is a real convenience for me to work without taking my hand off the keyboard. |
11-16-2023, 03:35 PM | #28 | |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Glad to hear you find it useful.
Setting the focus properly took me over 5 straight hours of trying different approaches since none of the QDockWidgets or TabManager are "normal" widgets. All hold other internal widgets (treeviews, webengine, QPlainTextEdits, etc). At first I could find nothing that ended up duplicating what a simple shift-tab or a simple mouse click could accomplish until I drilled down into each QDockWidget to see which internal element really needed focus set on. I will rebuild the base.ts file tomorrow so translators can get started. Quote:
|
|
11-16-2023, 03:49 PM | #29 |
Guru
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Just add a dot after "Focus changed to Preview window" to make it consistent.
|
11-16-2023, 03:51 PM | #30 |
Sigil Developer
Posts: 7,651
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Good point. Will do.
Are you happy with the other new strings? |
Tags |
book view, code view, focus, keyboard shortcuts, preview |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Book-details panels and keyboard focus | BetterRed | Library Management | 3 | 05-12-2023 03:22 AM |
Keyboard Shortcuts request | David Kudler | Sigil | 2 | 08-07-2020 06:09 PM |
feature request - Shortcuts for Plugins | Camelot | Sigil | 12 | 12-28-2015 04:50 AM |
keyboard shortcuts | vikischeldrup | Library Management | 4 | 08-23-2013 04:55 AM |
feature request - switch templates | kgn | Calibre | 8 | 07-23-2010 09:17 AM |