Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keyboard bindings #174

Open
anasayubi opened this issue Sep 30, 2017 · 3 comments
Open

Add keyboard bindings #174

anasayubi opened this issue Sep 30, 2017 · 3 comments

Comments

@anasayubi
Copy link

Hello,
Thank you for this useful software. I've been using Mint for some time and I use this software at least every day!
I've actually been trying to replicate my vim environment everywhere as I go, especially the keyboard bindings. Is it possible to add customizations to keyboard shortcuts within the application?

Thanks

@cschreib
Copy link

cschreib commented Jul 18, 2018

You can change them by manually editing the ~/.config/xreader/accels file. Just locate the action you want to re-map, uncomment the line by removing the ;, and change the value of the keyboard shortcut. <Primary> is the Ctrl key, <Shift> is the Shift key.

For example I wanted to change "Find previous" from Ctrl+Shift+G to Shift+F3, so I changed the line:

; (gtk_accel_path "<Actions>/MenuActions/EditFindPrevious" "<Primary><Shift>g")

into:

(gtk_accel_path "<Actions>/MenuActions/EditFindPrevious" "<Shift>F3")

After you have made the changes and saved the file, they will be applied to any new xreader window.

@wujastyk
Copy link

But even using the accels file, for example, to change GoNextPage & GoPreviousPage to Right and Left, respectively, these keystrokes (or the default ones) don't work if the display isn't showing Full Page. The minute you expand the display to, say, full width, the next and previous page keys don't work.

@alainpannetier
Copy link

The changes in ~/.config/xreader/accels are very short lived. A new version of the file is dumped each time Xreader is closed.
Ths dump should only happen if no existing file is detected.
In effect shortcuts are not customisable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants