mousefunc option patch

0 views
Skip to first unread message

Eric Arnold

unread,
Jan 1, 2010, 4:01:22 PM1/1/10
to vim...@vim.org
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.
+
+

mousefunc.zip

Bram Moolenaar

unread,
Jan 6, 2010, 11:41:49 AM1/6/10
to Eric Arnold, vim...@vim.org

Eric Arnold wrote:

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 -- Br...@Moolenaar.net -- 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 ///

Reply all
Reply to author
Forward
0 new messages