Skip to content

Add keyboard bindings #174

Open
Open

Description

@anasayubi

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

Activity

  1. cschreib commented on Jul 18, 2018

    @cschreib

    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.

  2. wujastyk commented on Nov 15, 2021

    @wujastyk

    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.

  3. alainpannetier commented on Feb 28, 2024

    @alainpannetier

    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.

  4. nbuwe commented on Apr 8, 2026

    @nbuwe

    Latest Mint release and ~/.config/xreader/accels is still overwritten (if it exists) each time xreader runs.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions