Loading ...
Sorry, an error occurred while loading the content.
 

mousefunc option patch

Expand Messages
  • Eric Arnold
    This will allow scripts to use the statusline and tabline as button click areas. + * mousefunction * * mfn * + mousefunc mfn string (default empty) +
    Message 1 of 2 , Jan 1 1:01 PM
      This will allow scripts to use the statusline and tabline as button click areas.


      + *'mousefunction'* *'mfn'*
      + 'mousefunc' 'mfn' string (default empty)
      + global
      + {not in Vi}
      + When nonempty, this option calls the given function when a mouse click
      + is detected. It expects the function to accept these arguments,
      + >
      + MouseFunc( mouse_row, mouse_col, key )
      + <
      + This will deliver mouse clicks on the statusline and tabline, and
      + areas of the screen with no text. It does not deliver mouse clicks on
      + the command line area. The function should return 0 to consume the
      + mouse click, or 1 to pass it on transparently.
      +
      +

      --
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
    • Bram Moolenaar
      ... Besides a lot of details that need to be fixed: What would be a useful application for this functionality? -- How many light bulbs does it take to change a
      Message 2 of 2 , Jan 6 8:41 AM
        Eric Arnold wrote:

        > This will allow scripts to use the statusline and tabline as button click areas.
        >
        >
        > + *'mousefunction'* *'mfn'*
        > + 'mousefunc' 'mfn' string (default empty)
        > + global
        > + {not in Vi}
        > + When nonempty, this option calls the given function when a mouse click
        > + is detected. It expects the function to accept these arguments,
        > + >
        > + MouseFunc( mouse_row, mouse_col, key )
        > + <
        > + This will deliver mouse clicks on the statusline and tabline, and
        > + areas of the screen with no text. It does not deliver mouse clicks on
        > + the command line area. The function should return 0 to consume the
        > + mouse click, or 1 to pass it on transparently.
        > +
        > +

        Besides a lot of details that need to be fixed: What would be a useful
        application for this functionality?

        --
        How many light bulbs does it take to change a person?

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ download, build and distribute -- http://www.A-A-P.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
      Your message has been successfully submitted and would be delivered to recipients shortly.