How to remap an existing keybinding in Zathura

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












After reading the man zathurarc for the map command, I still don't know how to remap an existing keybinding. By "remapping", I mean replacing a current keymapping for a given action.



Problem:



<C-Button1> (Control + click) is currently mapped to the synctex backward search, with the following settings in my zathurarc config file:



set dbus-service true # Already the default
set synctex true # Already the default
set synctex-editor-command "gvim --servername GVIMTEX --remote +%line %input"


However, I don't like using the mouse, so I want to map the synctex action to, say <C-s>.



Trials



I tried the following line in my zathurarc:



map <C-s> feedkeys "<C-Button1>"


It doesn't work and shows "open n1>" in the inputbar.



Alternative ideas



I could also map <C-s> to the shortcut_function for synctex, if only I knew what it was...



Complains



I find that there is too few information in the zathura documentation.
For example I would like to know:



  1. how to list all current key bindings (that would help not to override current mappings...)

  2. how to use the feedkeys function, because it is nowhere in my documentation, and I don't know from which version it was available (I have Ubuntu 16.04 and zathura 0.3.5).

  3. what is the shortcut_function used for synctex. Is there one?

Could anyone show me how to use <C-s> instead of <C-Button1>?







share|improve this question
























    up vote
    2
    down vote

    favorite












    After reading the man zathurarc for the map command, I still don't know how to remap an existing keybinding. By "remapping", I mean replacing a current keymapping for a given action.



    Problem:



    <C-Button1> (Control + click) is currently mapped to the synctex backward search, with the following settings in my zathurarc config file:



    set dbus-service true # Already the default
    set synctex true # Already the default
    set synctex-editor-command "gvim --servername GVIMTEX --remote +%line %input"


    However, I don't like using the mouse, so I want to map the synctex action to, say <C-s>.



    Trials



    I tried the following line in my zathurarc:



    map <C-s> feedkeys "<C-Button1>"


    It doesn't work and shows "open n1>" in the inputbar.



    Alternative ideas



    I could also map <C-s> to the shortcut_function for synctex, if only I knew what it was...



    Complains



    I find that there is too few information in the zathura documentation.
    For example I would like to know:



    1. how to list all current key bindings (that would help not to override current mappings...)

    2. how to use the feedkeys function, because it is nowhere in my documentation, and I don't know from which version it was available (I have Ubuntu 16.04 and zathura 0.3.5).

    3. what is the shortcut_function used for synctex. Is there one?

    Could anyone show me how to use <C-s> instead of <C-Button1>?







    share|improve this question






















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      After reading the man zathurarc for the map command, I still don't know how to remap an existing keybinding. By "remapping", I mean replacing a current keymapping for a given action.



      Problem:



      <C-Button1> (Control + click) is currently mapped to the synctex backward search, with the following settings in my zathurarc config file:



      set dbus-service true # Already the default
      set synctex true # Already the default
      set synctex-editor-command "gvim --servername GVIMTEX --remote +%line %input"


      However, I don't like using the mouse, so I want to map the synctex action to, say <C-s>.



      Trials



      I tried the following line in my zathurarc:



      map <C-s> feedkeys "<C-Button1>"


      It doesn't work and shows "open n1>" in the inputbar.



      Alternative ideas



      I could also map <C-s> to the shortcut_function for synctex, if only I knew what it was...



      Complains



      I find that there is too few information in the zathura documentation.
      For example I would like to know:



      1. how to list all current key bindings (that would help not to override current mappings...)

      2. how to use the feedkeys function, because it is nowhere in my documentation, and I don't know from which version it was available (I have Ubuntu 16.04 and zathura 0.3.5).

      3. what is the shortcut_function used for synctex. Is there one?

      Could anyone show me how to use <C-s> instead of <C-Button1>?







      share|improve this question












      After reading the man zathurarc for the map command, I still don't know how to remap an existing keybinding. By "remapping", I mean replacing a current keymapping for a given action.



      Problem:



      <C-Button1> (Control + click) is currently mapped to the synctex backward search, with the following settings in my zathurarc config file:



      set dbus-service true # Already the default
      set synctex true # Already the default
      set synctex-editor-command "gvim --servername GVIMTEX --remote +%line %input"


      However, I don't like using the mouse, so I want to map the synctex action to, say <C-s>.



      Trials



      I tried the following line in my zathurarc:



      map <C-s> feedkeys "<C-Button1>"


      It doesn't work and shows "open n1>" in the inputbar.



      Alternative ideas



      I could also map <C-s> to the shortcut_function for synctex, if only I knew what it was...



      Complains



      I find that there is too few information in the zathura documentation.
      For example I would like to know:



      1. how to list all current key bindings (that would help not to override current mappings...)

      2. how to use the feedkeys function, because it is nowhere in my documentation, and I don't know from which version it was available (I have Ubuntu 16.04 and zathura 0.3.5).

      3. what is the shortcut_function used for synctex. Is there one?

      Could anyone show me how to use <C-s> instead of <C-Button1>?









      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 9 at 17:07









      PlasmaBinturong

      24129




      24129

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f423091%2fhow-to-remap-an-existing-keybinding-in-zathura%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f423091%2fhow-to-remap-an-existing-keybinding-in-zathura%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)