* doc/README.mouse_menu: deleted

* doc/README.mouse: added
* doc-jp/README.mouse_menu: deleted
* doc-jp/README.mouse: added
From: Fumitoshi UKAI  <ukai@debian.or.jp>
This commit is contained in:
Fumitoshi UKAI
2002-11-25 17:23:42 +00:00
parent 7caf810e20
commit 351581e4df
5 changed files with 135 additions and 78 deletions

View File

@@ -1,3 +1,10 @@
2002-11-26 Fumitoshi UKAI <ukai@debian.or.jp>
* doc/README.mouse_menu: deleted
* doc/README.mouse: added
* doc-jp/README.mouse_menu: deleted
* doc-jp/README.mouse: added
2002-11-26 Fumitoshi UKAI <ukai@debian.or.jp> 2002-11-26 Fumitoshi UKAI <ukai@debian.or.jp>
* map.c (follow_map_menu): MapArea *a is used ifdef MENU_MAP * map.c (follow_map_menu): MapArea *a is used ifdef MENU_MAP
@@ -5137,4 +5144,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1 * release-0-2-1
* import w3m-0.2.1 * import w3m-0.2.1
$Id: ChangeLog,v 1.555 2002/11/25 17:10:48 ukai Exp $ $Id: ChangeLog,v 1.556 2002/11/25 17:23:42 ukai Exp $

66
doc-jp/README.mouse Normal file
View File

@@ -0,0 +1,66 @@
~/.w3m/mouse の形式は、
menu メニューの文字列(デフォルトなし)
lastline 最下行の文字列(デフォルト『≪↑↓』)
button 番号 位置 関数 [引数]
番号: 1…左ボタン
2…中ボタン
3…右ボタン
位置: menu <x1> <x2> … メニュー上でクリック
lastline <x1> <x2> … 最下行でクリック
default … 他の設定が無い時のデフォルト
anchor … アンカー上でクリック
active … アクティブなアンカー上でクリック
tab … タブ上でクリック
<x1> : 左端のカラム位置
<x2> : 右端のカラム位
です。
互換性のために <位置> での menu は省略可能です。
デフォルトの設定(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 "≪↑↓"
button 1 lastline 0 1 BACK
button 1 lastline 2 3 PREV_PAGE
button 1 lastline 4 5 NEXT_PAGE
と同等です。(これまでと同じはず)
・例えば、
button 1 anchor COMMAND "MOVE_MOUSE; GOTO_LINK"
と設定するとアクティブでないアンカー上でも左クリックしただけで、
リンク先に飛びます。(GUI ブラウザと同じ様な動作)
・~/.w3m/menu で
menu Active
func "リンクを表示 (a)" GOTO_LINK "a"
func "新しいタブで表示 (t)" TAB_LINK "t"
func "リンクを保存 (d)" SAVE_LINK "d"
func "外部ブラウザで表示 (m)" EXTERN_LINK "m"
end
の様に設定しておいて、~/.w3m/mouse で
button 3 anchor MENU_MOUSE Active
と設定すると、アンカー上で右クリックしするとアンカー用の
メニューが開きます。
こんな感じで使ってみてください。

View File

@@ -1,30 +0,0 @@
~/.w3m/mouse に以下の様な設定をすると、
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
一番上(タブの横)にマウス用のメニューを表示する様になります。
こんな感じ。
<= => R B [ Bookmarks ][ 坂本浩則のホームページ ] x
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
その範囲にリンクからドラッグすると新しいタブでリンク先を
開きます。(わりあい便利。)
~/.w3m/mouse の形式は、
menu メニューの文字列
button 番号 左端のカラム位置 右端のカラム位置 関数 [引数]
:
1…左ボタン
2…中ボタン
3…右ボタン
です。

61
doc/README.mouse Normal file
View File

@@ -0,0 +1,61 @@
~/.w3m/mouse syntax:
menu <menu string - default empty>
lastline <lastline string - default "<=UpDn">
button <num> <pos> <func> [<arg>]
<num>: 1 : left button
2 : middle button
3 : right button
<pos>: menu <x1> <x2> : click on menu
lastline <x1> <x2> : click on last line
default : default action
anchor : click on anchor
active : click on active anchor
tab : click on tab
<x1>: left column pos
<x2>: right column pos
menu in <pos> 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.

View File

@@ -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 <menu string>
button <num> <left-column-pos> <right-column-pos> <func> [<arg>]
:
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