w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

README.mouse (1363B)


      1 ~/.w3m/mouse syntax:
      2 
      3 menu <menu string - default empty>
      4 lastline <lastline string - default "<=UpDn">
      5 button <num> <pos> <func> [<arg>]
      6 
      7 <num>:   1 : left button
      8          2 : middle button
      9          3 : right button
     10 
     11 <pos>:	menu <x1> <x2>		: click on menu
     12 	lastline <x1> <x2>	: click on last line
     13 	default			: default action
     14 	anchor			: click on anchor
     15 	active			: click on active anchor
     16 	tab			: click on tab
     17 
     18 <x1>: left column pos 
     19 <x2>: right column pos
     20 
     21 menu in <pos> can be omited for backward compatibility.
     22 
     23 default configuration (in func.c)
     24 
     25 
     26 button	1 default	MOVE_MOUSE
     27 button	2 default	BACK
     28 button	3 default	MENU_MOUSE
     29 
     30 button	1 active	GOTO_LINK
     31 
     32 button	1 tab		TAB_MOUSE
     33 button	2 tab		CLOSE_TAB_MOUSE
     34 
     35 lastline	"<=UpDn"
     36 button	1 lastline 0 1	BACK
     37 button	1 lastline 2 3	PREV_PAGE
     38 button	1 lastline 4 5	NEXT_PAGE
     39 
     40 For example
     41  
     42 - In ~/.w3m/mouse
     43 
     44    button 1 anchor COMMAND "MOVE_MOUSE; GOTO_LINK"
     45 
     46  you can jump to link by left click on non-active anchor.
     47 
     48 - In ~/.w3m/menu
     49 
     50   menu Active
     51    func   "Display LInk       (a)"        GOTO_LINK       "a"
     52    func   "Open in new tag    (t)"        TAB_LINK        "t"
     53    func   "Save link          (d)"        SAVE_LINK       "d"
     54    func   "External browser   (m)"        EXTERN_LINK     "m"
     55   end
     56 
     57   and ~/.w3m/mouse
     58 
     59    button  3 anchor	MENU_MOUSE	Active
     60 
     61   then you can open menu by right click on anchor.