After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670964 - Provide keyboard shortcuts for Cont./Dual and Best Fit/Fit Page Width
Provide keyboard shortcuts for Cont./Dual and Best Fit/Fit Page Width
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
2.32.x
Other All
: Normal enhancement
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 619157 653438 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-02-28 11:13 UTC by Pander
Modified: 2015-05-21 08:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add shortcuts for Continuous and Dual modes (1.29 KB, patch)
2014-10-23 21:00 UTC, Yannick Voglaire
committed Details | Review

Description Pander 2012-02-28 11:13:42 UTC
Almost all menu items in Evince have keyboard shortcuts, except:
  View / Continuous
  View / Dual
  View / Best Fit
  View / Fit Page Width

Suggested keyboard shortcuts are (in the same order):
  CTRL+C
  CTRL+D
  CTRL+B
  CTRL+F (because CTRL+P and CTRL+W are already taken)

Please, investigate if newer versions of Evince require more keyboard shortcuts and add these too.

Implementing this would allow users to access more functionality of evince by command-line only.
Comment 1 Pander 2012-02-28 15:46:17 UTC
And please add a keyboard shortcut to navigate to a certain page number. See how gedit this does for CTRL+I. Their implementation is useful when the toolbar is not visible.
Comment 2 Germán Poo-Caamaño 2012-10-05 07:07:50 UTC
(In reply to comment #1)
> And please add a keyboard shortcut to navigate to a certain page number. See
> how gedit this does for CTRL+I. Their implementation is useful when the toolbar
> is not visible.

CTRL+L allows you to navigate to an specific page.  However, it is inconsistent with GEdit.
Comment 3 Joshua N Pritikin 2012-11-01 13:00:04 UTC
Consider using the same keyboard shortcuts at xournal. xournal is awesome.
Comment 4 Joshua N Pritikin 2012-12-25 17:04:24 UTC
How about single-click toolbar buttons for slides (non-continuous, best fit) and documents (continuous, fit width)?
Comment 5 Michael Ash 2013-01-13 13:42:28 UTC
I just hit "Commit" by accident.  Sorry.  

I would appreciate this feature.
Comment 6 Germán Poo-Caamaño 2013-02-17 12:55:41 UTC
*** Bug 653438 has been marked as a duplicate of this bug. ***
Comment 7 Germán Poo-Caamaño 2013-02-17 12:55:47 UTC
*** Bug 619157 has been marked as a duplicate of this bug. ***
Comment 8 Emmanuel Thomé 2013-02-18 21:00:07 UTC
FYI, it is apparently possible to bind arbitrary shortcuts to whatever you want in several ways:

1:

 - Set /org/gnome/desktop/interface/can-change-accels to true in dconf-editor.
 - Hover to the menu item you wish to change the shortcut for.
 - Type your shortcut.
 - Reset /org/gnome/desktop/interface/can-change-accels to its default value (false), or you'll soon find yourself confused with bogus shortucts here and there.

2:

 - edit .config/evince/accels. Uncomment any line you wish, and change the accel text. What you see by default in this file is the set of default shortcuts. You'll notice, by the way, that page-width and best-fit already have shortcuts w and f, without <Ctrl>. You may add one to ViewDual and ViewContinuous if you so wish

By the way, only method 2 will let you install 1-letter shortcuts.

Hth.

E.
Comment 9 Pander 2013-02-21 15:31:35 UTC
Emmanuel, thank but I hope evince will ship with preconfigured shortcuts.
Comment 10 Andy Buckley 2014-05-12 14:42:06 UTC
This was working (and wonderful) for quite some time, but it has disappeared again with an update to evince 3.10.3 (in Ubuntu 14.04) to my great disappointment. But much less useful (IMO) features like "Invert Colours" do get a keybinding now... could at least the Fit Width and Fit Page zoom options get quick shortcuts again, please?

(I'll just mention that at the same time as this regression, pressing the key with + on it stopped working as a "zoom in" key binding: the explicit "+" symbol, i.e. Shift+PlusKey on a standard US/UK keyboard is now needed). While in a sense strictly correct, I think this is a step backward for usability... please let me know if you would like a separate report on this issue.)
Comment 11 Yannick Voglaire 2014-09-16 14:19:22 UTC
There are undocumented and undiscoverable (but very useful) shortcuts for fit width and fit full page ('w' and 'f', respectively).
Could we have shortcuts like 'c' and 'd' to toggle Continuous mode and Single/Double page mode, respectively?
Comment 12 Yannick Voglaire 2014-10-23 21:00:00 UTC
Created attachment 289238 [details] [review]
Add shortcuts for Continuous and Dual modes

Here is a proposed patch adding shortcuts to toggle the Continuous and Dual modes. The shortcuts are 'c' and 'd', in the spirit of 'f' and 'w' for Full Page and Fit Width.
Comment 13 Exile 2015-04-11 16:37:03 UTC
Thank you for the patch, I think I'll try to build evince. I knew about the undocumented, quite useful, 'w' and 'f' shortcuts, but really miss a shortcut for toggling continuous ! I hope this gets added soon. I am using Fedora 21 and the 'can-change-accels' method seems not to work (it does nothing at all, for any application, not just evince), and I have no .config/evince/accels file.
Comment 14 Carlos Garcia Campos 2015-04-12 08:18:23 UTC
Review of attachment 289238 [details] [review]:

I don't see why not. Thanks!
Comment 15 Pander 2015-05-21 08:55:59 UTC
Can all menu items get an underscrore undre the letter for which a shortcut exists? Otherwise most people will never know they exist. If you guys agree, should I create new bug report for that?