From 351581e4df74bce7f0b6c51b60946a5ef84bcf8a Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 25 Nov 2002 17:23:42 +0000 Subject: * doc/README.mouse_menu: deleted * doc/README.mouse: added * doc-jp/README.mouse_menu: deleted * doc-jp/README.mouse: added From: Fumitoshi UKAI --- doc/README.mouse | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ doc/README.mouse_menu | 47 --------------------------------------- 2 files changed, 61 insertions(+), 47 deletions(-) create mode 100644 doc/README.mouse delete mode 100644 doc/README.mouse_menu (limited to 'doc') diff --git a/doc/README.mouse b/doc/README.mouse new file mode 100644 index 0000000..a604b85 --- /dev/null +++ b/doc/README.mouse @@ -0,0 +1,61 @@ +~/.w3m/mouse syntax: + +menu +lastline +button [] + +: 1 : left button + 2 : middle button + 3 : right button + +: menu : click on menu + lastline : click on last line + default : default action + anchor : click on anchor + active : click on active anchor + tab : click on tab + +: left column pos +: right column pos + +menu in can be omited for backward compatibility. + +default configuration (in func.c) + + +button 1 default MOVE_MOUSE +button 2 default BACK +button 3 default MENU_MOUSE + +button 1 active GOTO_LINK + +button 1 tab TAB_MOUSE +button 2 tab CLOSE_TAB_MOUSE + +lastline "<=UpDn" +button 1 lastline 0 1 BACK +button 1 lastline 2 3 PREV_PAGE +button 1 lastline 4 5 NEXT_PAGE + +For example + +- In ~/.w3m/mouse + + button 1 anchor COMMAND "MOVE_MOUSE; GOTO_LINK" + + you can jump to link by left click on non-active anchor. + +- In ~/.w3m/menu + + menu Active + func "Display LInk (a)" GOTO_LINK "a" + func "Open in new tag (t)" TAB_LINK "t" + func "Save link (d)" SAVE_LINK "d" + func "External browser (m)" EXTERN_LINK "m" + end + + and ~/.w3m/mouse + + button 3 anchor MENU_MOUSE Active + + then you can open menu by right click on anchor. diff --git a/doc/README.mouse_menu b/doc/README.mouse_menu deleted file mode 100644 index e3319cc..0000000 --- a/doc/README.mouse_menu +++ /dev/null @@ -1,47 +0,0 @@ -You configure in ~/.w3m/mouse as follows: - -menu "<= => R B" -button 1 0 1 PREV -button 1 3 4 NEXT -button 1 6 7 RELOAD -button 1 8 8 ADD_BOOKMARK -button 3 8 8 COMMAND "NEW_TAB; BOOKMARK; DELETE_PREVBUF" -button 3 0 4 SELECT_MENU -button 2 0 9 CLOSE_TAB - -Then, w3m will display menu for mouse on top of line, next to tab. -Like this: - -<= => R B [ Bookmarks ][ 坂本浩則のホームページ ] x -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -You can open URL in new tab if you drag URL to the region of mouse menu. - -~/.w3m/mouse syntax: - -menu - -button [] - : - 1 : left button - 2 : middle button - 3 : right button - -So, above example means - -menu "<= => R B" - # menu string is "<= => R B" -button 1 0 1 PREV - # On "<=" (column 0 1), left button click, go to prev buffer -button 1 3 4 NEXT - # On "=>" (column 3 4), left button click, go to next buffer -button 1 6 7 RELOAD - # On "R " (column 6 7), left button click, reload -button 1 8 8 ADD_BOOKMARK - # On "B" (column 8), left button click, add bookmark -button 3 8 8 COMMAND "NEW_TAB; BOOKMARK; DELETE_PREVBUF" - # On "B" (column 8), right button click, open bookmark in new tab -button 3 0 4 SELECT_MENU - # On "<= =>" (column 0 4), right button click, select menu -button 2 0 9 CLOSE_TAB - # On "<= => R B" (column 0 9), middle button click, close tab -- cgit v1.2.3